From 3455c34601c22679201154bd7169be224a8ba109 Mon Sep 17 00:00:00 2001 From: Pavan Mandava Date: Sun, 10 May 2020 19:14:24 +0200 Subject: [PATCH] Added Structure for Perceptron and Multi-Class Perceptron --- classifier/__init__.py | 0 classifier/linear_model.py | 17 +++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 classifier/__init__.py create mode 100644 classifier/linear_model.py diff --git a/classifier/__init__.py b/classifier/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/classifier/linear_model.py b/classifier/linear_model.py new file mode 100644 index 0000000..99fd07c --- /dev/null +++ b/classifier/linear_model.py @@ -0,0 +1,17 @@ +class Perceptron: + + def __init__(self, label): + self.classifier_label = label + pass + + def fit(self, X, y, weights=None): + pass + + def predict(self, X): + pass + + +class MultiClassPerceptron: + + def __init__(self): + pass