Skip to content

kokila0602/oneNeuron

Repository files navigation

oneNeuron

oneNeuron/perceptron

git add . && git commit -m "docstring updated" && git push origin main
cp Research\ notebooks/demo.ipyb .

Add URL

Git handbook

Visit W3Schools.com!

Add image

sample image

or plot

Python code

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)

dataset

x1 x2 y
0 0 0
0 1 0
1 0 0
1 1 1

  • point 1
  • point 2
  1. point

About

oneNeuron/perceptron

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published