mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-05 09:21:13 +08:00
refactor: Indent ... for visual purposes (#7744)
This commit is contained in:

committed by
GitHub

parent
e8915097c4
commit
9bba42eca8
@ -29,15 +29,15 @@ class Perceptron:
|
||||
|
||||
>>> p = Perceptron([], (0, 1, 2))
|
||||
Traceback (most recent call last):
|
||||
...
|
||||
...
|
||||
ValueError: Sample data can not be empty
|
||||
>>> p = Perceptron(([0], 1, 2), [])
|
||||
Traceback (most recent call last):
|
||||
...
|
||||
...
|
||||
ValueError: Target data can not be empty
|
||||
>>> p = Perceptron(([0], 1, 2), (0, 1))
|
||||
Traceback (most recent call last):
|
||||
...
|
||||
...
|
||||
ValueError: Sample data and Target data do not have matching lengths
|
||||
"""
|
||||
self.sample = sample
|
||||
|
Reference in New Issue
Block a user