This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
code:perceptron [2015/08/28 10:35] asa |
code:perceptron [2015/08/28 10:36] asa |
||
---|---|---|---|
Line 14: | Line 14: | ||
"""An implementation of the perceptron algorithm. | """An implementation of the perceptron algorithm. | ||
Note that this implementation does not include a bias term""" | Note that this implementation does not include a bias term""" | ||
- | |||
- | attributes = {'max_iterations': 50, | ||
- | 'learning_rate' : 0.2} | ||
def __init__(self, max_iterations=100, learning_rate=0.2) : | def __init__(self, max_iterations=100, learning_rate=0.2) : |