/Perceptron

pythonの練習としてパーセプトロンのクラスを作ってみた

Primary LanguagePython

Perceptron

this class is perceptron implemented by python.

usage

  • add weight parameter to constructor
  • add input parameter x1 and x2 do() method.
  • return value of do() method is output "y"

note

  • this class is made by noobie of python.
  • Exceptions, documents, and tests are not properly considered
  • Please send a pull request when you are interested