vc1492a / PyNomaly

Anomaly detection using LoOP: Local Outlier Probabilities, a local density based outlier detection method providing an outlier score in the range of [0,1].
Other
305 stars 36 forks source link

numpy arrays as input don't work #10

Closed MichaelSchreier closed 6 years ago

MichaelSchreier commented 6 years ago

Using data = pd.DataFrame(np.random.rand(100, 5)) as the input to LocalOutlierProbability works as expected, however, passing the raw ndarray np.random.rand(100, 5) throws an error: self.points_vector = self.data.reshape(self.data.shape[1:]) ValueError: cannot reshape array of size 500 into shape (5,)

vc1492a commented 6 years ago

@MichaelSchreier thanks for identifying and opening the issue. This bug has been addressed in the dev and will be in the next release.