mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-06 10:14:17 +08:00
Update basic_maths.py (#1517)
* Update basic_maths.py Add Doctests. * Update basic_maths.py * Add a space to fix the doctest
This commit is contained in:

committed by
Christian Clauss

parent
4880e5479a
commit
f8e97aa597
@ -90,7 +90,7 @@ class Perceptron:
|
||||
>>> data = [[2.0149, 0.6192, 10.9263]]
|
||||
>>> targets = [-1]
|
||||
>>> perceptron = Perceptron(data,targets)
|
||||
>>> perceptron.training() # doctest:+ELLIPSIS
|
||||
>>> perceptron.training() # doctest: +ELLIPSIS
|
||||
('\\nEpoch:\\n', ...)
|
||||
...
|
||||
>>> perceptron.sort([-0.6508, 0.1097, 4.0009]) # doctest: +ELLIPSIS
|
||||
|
Reference in New Issue
Block a user