-
Notifications
You must be signed in to change notification settings - Fork 15
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
IncrementalKSTest fail #297
Comments
Hi @Tiffany-TW, Thank you for being interested in using Frouros library! I've attempted to reproduce the issue using all Python versions compatible with version 0.6.1 (Python 3.{8, 9, 10, 11}), and in each case, there was no error when executing the code. I suspect that the issue may be related to the compatibility of your numpy or scipy version with the ones specified in 0.6.1 version. Please provide the Python version you are using and the versions of all packages in your environment. You can obtain this information using the Thank you! |
Hi @jaime-cespedes-sisniega, |
Hi @Tiffany-TW, I have attempted to replicate the reported error with Python 3.9, numpy==1.24.3, and scipy==1.10.1, but everything appears to be functioning correctly on my end. Could you please perform the following steps to help me further investigate the issue?
Thank you! |
Hi @jaime-cespedes-sisniega, |
Hi @jaime-cespedes-sisniega, float64 Since the IKS test works fine in the virtual environment, I am really curious about the reason that leads to the initial problem. Do you have any idea? Thank you^^ |
Hi @Tiffany-TW, I'm glad it works for you using a virtual environment! I'm not sure about the real reason for the problem. But it seems that it is not related to frouros, maybe there are some conflicts with other versions of other packages that you have in the original environment, but this is all speculation. |
Describe the bug
Hi there,
Thank you so much for developing this facinating package for detecting drifts. It not only contains various kinds of algorithms but also easy to be integrated into the machine learning workflow. Unfortunately, the IKS test does not work even when I run the example code provided by frouros. The error shows the following message:
**TypeError: Invalid call to pythranized function `_compute_outer_prob_inside_method(int, int, int32, int)'
Candidates are:
It seems that there is a problem with the data type of the inputs of the function
compute_outer_prob_inside_method
.I have modified the script by using
np.int64(var_int32)
. And it works. However, I am not sure whether the modification will lead to incorrect results.I am looking forward to your quick response. Thank you!
Steps/Code to Reproduce
the example code provided by frouros
from frouros.detectors.data_drift import IncrementalKSTest
import numpy as np
np.random.seed(seed=31)
X = np.random.normal(loc=0, scale=1, size=100)
Y = np.random.normal(loc=1, scale=1, size=100)
detector = IncrementalKSTest(window_size=10)
_ = detector.fit(X=X)
for sample in Y:
test, _ = detector.update(value=sample)
if test is not None:
print(test.statistic, test.p_value)
Expected Results
No error is thrown
Actual Results
TypeError: Invalid call to pythranized function `_compute_outer_prob_inside_method(int, int, int32, int)'
Candidates are:
Versions
The text was updated successfully, but these errors were encountered: