CoreyMSchafer/code_snippets

_save_dispatcher error

Closed this issue · 0 comments

Hello when I run my code at the end I get the following error:
TypeError: _save_dispatcher() got an unexpected keyword argument 'fname'

The error comes from this line of code
np.save(fname="loss_history.txt", X=numpy_loss_history, delimiter=",")

I checked the save funtion and the parameters that it has are:
(file, arr, allow_pickle=True and fix_imports=True)

Any suggestions why the error occurs?
Thanks in advance