Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SOS: overflow encountered in multiply beta[i] = beta[i] * 2.0 #83

Open
panchami96 opened this issue Apr 26, 2019 · 2 comments
Open

SOS: overflow encountered in multiply beta[i] = beta[i] * 2.0 #83

panchami96 opened this issue Apr 26, 2019 · 2 comments
Assignees
Labels

Comments

@panchami96
Copy link

I am running the following code:

clf_name = 'SOS'

clf_name = 'SOS'
clf = SOS()
clf.fit(X_train)

and got the following warning:
RuntimeWarning: overflow encountered in multiply
beta[i] = beta[i] * 2.0
/opt/anaconda3/lib/python3.6/site-packages/scipy/stats/stats.py:1713: FutureWarning: Using a non-tuple sequence for multidimensional indexing is deprecated; use arr[tuple(seq)] instead of arr[seq]. In the future this will be interpreted as an array index, arr[np.array(seq)], which will result either in an error or a different result.
return np.add.reduce(sorted[indexer] * weights, axis=axis) / sumval
~/proj/myPylib/lib/python3.6/site-packages/pyod/models/base.py:336: RuntimeWarning: invalid value encountered in greater
self.labels_ = (self.decision_scores_ > self.threshold_).astype(

data.zip
I have uploaded the data for X_train here.

My samples have duplicates and when I remove the duplicates the error does not occur. However I need to retain the duplicates.

@yzhao062
Copy link
Owner

Thanks a lot for the note. Will do some investigation. It sounds like a 0 division bug. Maybe add a small constant to duplicated entries for now?

Will update soon.

@yzhao062 yzhao062 self-assigned this Apr 26, 2019
@yzhao062 yzhao062 added the bug label Apr 26, 2019
@Ldoun
Copy link

Ldoun commented Apr 9, 2023

have the same problem too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants