You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm looking to use this package for a predict-optimization project using ANFIS. When fitting the model as below, I got a numpy error in the sanfis/helpers.py file.
history = model.fit(train_data=[X_train, y_train], valid_data=[X_valid, y_valid], optimizer=optimizer, loss_function=loss_functions, epochs=200)
Perhaps line 263 of the helpers.py file needs to be modified from: transformed_dataloder.dataset[1][transformed_dataloder.dataset[1].isnan()] = 0.0
into something like: transformed_dataloader.dataset[1][np.isnan(transformed_dataloader.dataset[1])] = 0.0
as 'numpy.ndarray' object has no attribute 'isnan'.
Or can I fix this error without changing this section? Your help is very appreciated.
The text was updated successfully, but these errors were encountered:
Hi, I'm looking to use this package for a predict-optimization project using ANFIS. When fitting the model as below, I got a numpy error in the sanfis/helpers.py file.
history = model.fit(train_data=[X_train, y_train], valid_data=[X_valid, y_valid], optimizer=optimizer, loss_function=loss_functions, epochs=200)
Perhaps line 263 of the helpers.py file needs to be modified from:
transformed_dataloder.dataset[1][transformed_dataloder.dataset[1].isnan()] = 0.0
into something like:
transformed_dataloader.dataset[1][np.isnan(transformed_dataloader.dataset[1])] = 0.0
as 'numpy.ndarray' object has no attribute 'isnan'.
Or can I fix this error without changing this section? Your help is very appreciated.
The text was updated successfully, but these errors were encountered: