oneNeuron/perceptron
git add . && git commit -m "docstring updated" && git push origin main
cp Research\ notebooks/demo.ipyb .
def main(data, modelName, plotName, eta, epochs):
df = pd.DataFrame(data)
print(df)
X, y = prepare_data(df)
model = Perceptron(eta=eta, epochs=epochs)
model.fit(X, y)
_ = model.total_loss()
save_model(model, filename=modelName)
save_plot(df, plotName, model)
x1 | x2 | y |
---|---|---|
0 | 0 | 0 |
0 | 1 | 0 |
1 | 0 | 0 |
1 | 1 | 1 |
- point 1
- point 2
- point