MCPcopy Create free account
hub / github.com/subbarayudu-j/TheAlgorithms-Python / __init__

Method __init__

machine_learning/perceptron.py:18–26  ·  view source on GitHub ↗
(self, sample, exit, learn_rate=0.01, epoch_number=1000, bias=-1)

Source from the content-addressed store, hash-verified

16
17class Perceptron:
18 def __init__(self, sample, exit, learn_rate=0.01, epoch_number=1000, bias=-1):
19 self.sample = sample
20 self.exit = exit
21 self.learn_rate = learn_rate
22 self.epoch_number = epoch_number
23 self.bias = bias
24 self.number_sample = len(sample)
25 self.col_sample = len(sample[0])
26 self.weight = []
27
28 def trannig(self):
29 for sample in self.sample:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected