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
I run my code that uses PyFTS as an essential library. However, I got this error:
/usr/local/lib/python3.10/dist-packages/pyFTS/partitioners/partitioner.py:238: UserWarning:
set_ticklabels() should only be used with a fixed number of ticks, i.e. after set_ticks() or using a FixedLocator.
Traceback (most recent call last):
File "/root/python/forecast/pyFTSexample/pyFTSExam.ipynb", line 78, in
model.fit(train)
File "/usr/local/lib/python3.10/dist-packages/pyFTS/common/fts.py", line 384, in fit
self.train(mdata, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/pyFTS/models/yu.py", line 62, in train
tmpdata = self.partitioner.fuzzyfy(ndata, method='maximum', mode='sets')
File "/usr/local/lib/python3.10/dist-packages/pyFTS/partitioners/partitioner.py", line 144, in fuzzyfy
mv = self.fuzzyfy(inst, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/pyFTS/partitioners/partitioner.py", line 157, in fuzzyfy
tmp = self[ix].membership(data)
File "/usr/local/lib/python3.10/dist-packages/pyFTS/partitioners/partitioner.py", line 286, in getitem
if isinstance(item, (int, np.int, np.int8, np.int16, np.int32, np.int64)):
File "/usr/local/lib/python3.10/dist-packages/numpy/init.py", line 324, in getattr
raise AttributeError(former_attrs[attr])
AttributeError: module 'numpy' has no attribute 'int'. np.int was a deprecated alias for the builtin int. To avoid this error in existing code, use int by itself. Doing this will not modify any behavior and is safe. When replacing np.int, you may wish to use e.g. np.int64 or np.int32 to specify the precision. If you wish to review your current use, check the release note link for additional information.
The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations. Did you mean: 'inf'?
Perhaps, the line
if isinstance(item, (int, np.int, np.int8, np.int16, np.int32, np.int64)):
should be:
if isinstance(item, (int, np.int8, np.int16, np.int32, np.int64)):
Does anyone have other solution by chance?
The text was updated successfully, but these errors were encountered:
I run my code that uses PyFTS as an essential library. However, I got this error:
Perhaps, the line
should be:
Does anyone have other solution by chance?
The text was updated successfully, but these errors were encountered: