The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

452465 (3) [Avatar] Offline
On p-103, section titled neutral net approach. Running following python code throw error:

>>> nn = OneNeuronRegressor(alpha=100, n_iter=200)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: __init__() should return None, not 'OneNeuronRegressor'

I fixed it by commenting out the following statement in __int__()

return self
hobs (58) [Avatar] Offline
Good catch! Thank you for the debugging and the fix. We'll incorporate your fix into the text and the nlpia package that contains the code examples.