pyod
pyod copied to clipboard
Locally Selective Combination (LSCP) ValueError: x and y must have length at least 2
while use compare_all_models.py file,it comes with the following bug:
raise ValueError('x and y must have length at least 2.') ValueError: x and y must have length at least 2.
Thanks for the note. I will say just rerun it. I tried to reproduce on my end and it went through. if possible, could you share me the code and the screenshot of the message to reproduce? thanks
I just download the last code,and run compare_all_models.py file . Then I meet the error below:
I meet the same problem.
I think this error is only in some data.
Problem acknowledged. Looks like there are some update on the dependent libraries.
as shown https://github.com/yzhao062/pyod/pull/192, just change line 74 to random_state = 42
There are some underlying changes in numpy and sklearn, which cause the issue. A PR will be merged soon.
When I run LSCP on my own data with random_state = 42
, the issue persists.
Yes, I also met this issue. For this error, I fund that the length of local_pseudo_ground_truth and local_train_socres[:,d] were both 1 when calculating pearsonr in LSCP.py.
Has this issue being solved? I am still facing this issue.