AnFreTh/NAMpy

ERROR: 'NoneType' object has no attribute 'copy'

Closed this issue · 1 comments

Hey, when I run the 'regression' code in the examples, I get the following error:

line 181, in _assign_datasets
val_data = self.val_data.copy()
AttributeError: 'NoneType' object has no attribute 'copy'

As with the example, I didn't specify 'val_data' when loading the NAM model, but the code doesn't seem to handle the default value of None correctly.
Can you give a workable solution? This is very important to me. Thanks!

Hey, thanks for noticing!
Fixed the error and pushed it. Reinstalling should solve the issue.