I hereby claim:
- I am anton-cao on github.
- I am antoncao (https://keybase.io/antoncao) on keybase.
- I have a public key ASBK3a-2NYfRDHOZRXGKUZpmawQO_4Vw4pHMv8Fmjp9qUgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
def perceptron(data, labels): | |
""" | |
Pseudo-python for perceptron algorithm | |
""" | |
d, n = data.dims # data is d x n array | |
th = [0] * n # initialize theta to vector of zeros | |
th_0 = 0 | |
while True: | |
done = True | |
for i in range(d): |
''' | |
Python script that copies new key-value pairs from sample_config.json to config.json | |
''' | |
import json | |
sample_file = open('sample_config.json', 'r') | |
sample_contents = json.loads(sample_file.read()) | |
sample_file.close() |