Open romajain1 opened 1 month ago
@vc1492a I have just finished up our new test-pipeline. It makes sense to merge the PR https://github.com/vc1492a/PyNomaly/pull/58 first so we can have automated testing active on this PR before merge
@vc1492a I have just finished up our new test-pipeline. It makes sense to merge the PR #58 first so we can have automated testing active on this PR before merge
Thanks @IroNEDR. I have approved #58 and it's ready for a merge.
There is a function for checking missing values in the data. But, for python 3.6+, throws error.
Traceback (most recent call last): File "offline_training.py", line 133, in <module> m = loop.LocalOutlierProbability(real_data, extent=2, n_neighbors=20, use_numba=True, progress_bar=True).fit() File "lib/python3.10/site-packages/PyNomaly/loop.py", line 751, in fit if self.data is not None and self.Validate._missing_values( File "/lib/python3.10/site-packages/PyNomaly/loop.py", line 238, in _missing_values if np.any(np.isnan(obj.data)): File "/lib/python3.10/site-packages/pandas/core/generic.py", line 2102, in __array_ufunc__ return arraylike.array_ufunc(self, ufunc, method, *inputs, **kwargs) File "/lib/python3.10/site-packages/pandas/core/arraylike.py", line 404, in array_ufunc result = mgr.apply(getattr(ufunc, method)) File "/lib/python3.10/site-packages/pandas/core/internals/managers.py", line 352, in apply applied = b.apply(f, **kwargs) File "/lib/python3.10/site-packages/pandas/core/internals/blocks.py", line 366, in apply result = func(self.values, **kwargs) File "/lib/python3.10/site-packages/pandas/core/arrays/categorical.py", line 1665, in __array_ufunc__ raise TypeError( TypeError: Object with dtype category cannot perform the numpy op isnan