- Supervised Learning Teacher provides labeled examples
- Unsupervised Learning
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const machine = Machine( | |
{ | |
id: 'giftcard-code-states', | |
initial: 'NULL', | |
context: { | |
balance: 0, | |
}, | |
states: { | |
NULL: { | |
on: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require('fs'); | |
const path = require('path'); | |
const serviceDirectories = [ | |
'services/auth', | |
'services/email', | |
'services/golive', | |
'services/logger', | |
'services/payouts', | |
'services/points', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Javac related task to generate classpath for linter | |
task generateClasspath { | |
description 'Generate classpath file for Javac linter' | |
ext.destFile = file("$buildDir/classpath.txt") | |
outputs.file destFile | |
doLast { | |
def classpathString = sourceSets.main.runtimeClasspath.collect{ it.absolutePath }.join(File.pathSeparator) | |
if (!destFile.parentFile.exists()) { | |
destFile.parentFile.mkdirs() | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
FILES=*/*.py | |
for filename in $FILES; do | |
for other in $FILES; do | |
if [ "$filename" != "$other" ] | |
then | |
cmp -s "$filename" "$other" | |
retval=$? | |
if [ $retval -eq 0 ] | |
then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Assignment 1</title> | |
</head> | |
<body> | |
<!-- change the link in the href to your post --> | |
<a href="http://csns.calstatela.edu/department/cs/forum/topic/view?id=4507427">Link to the forum</a> | |
</body> | |
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
import csv as csv | |
import numpy as np | |
from sklearn import tree | |
from sklearn.externals.six import StringIO | |
import pydot |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
public class BiddingGameEngineSimple | |
{ | |
static int player1 = 100; | |
static int player2 = 100; | |
static int draw = 0; | |
public static void main(String[] args) { | |
Scanner in = new Scanner(System.in); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class BinaryDigit | |
{ | |
private int digit; | |
public BinaryDigit(int digit) | |
{ | |
this.digit = digit; | |
} | |
public String getBinaryString() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
// change the class name to be AI_YourLastName | |
public class AI_Template { | |
// Feel free to create method to support your logic | |
static int calculate_bid(int player, int pos, int[] first_moves, | |
int[] second_moves) { | |
// simplify the information to myMoney, and enemyMoney | |
int[] info = calculateMoney(player, first_moves, second_moves); |
NewerOlder