B-SOID icon indicating copy to clipboard operation
B-SOID copied to clipboard

Error when trying to EXTRACT AND EMBED FEATURES

Open runqiL opened this issue 9 months ago • 0 comments

Hi!

I'm running b-soid on my DLC outputs. I followed the instructions through every step. But when trying to extract features, I encountered this error, could you help me figure out what went wrong?

Thank you so much!

ValueError: window must be non-negative Traceback: File "/Users/RunqiL/opt/anaconda3/envs/bsoid_v2/lib/python3.8/site-packages/streamlit/script_runner.py", line 332, in _run_script exec(code, module.dict) File "/Users/RunqiL/B-SOID/bsoid_app.py", line 46, in extractor.main() File "/Users/RunqiL/B-SOID/bsoid_app/extract_features.py", line 192, in main self.compute() File "/Users/RunqiL/B-SOID/bsoid_app/extract_features.py", line 84, in compute disp_boxcar.append(boxcar_center(disp_r[:, l], window)) File "/Users/RunqiL/B-SOID/bsoid_app/bsoid_utilities/likelihoodprocessing.py", line 16, in boxcar_center moving_avg = np.array(a1.rolling(window=n, min_periods=1, center=True).mean()) File "/Users/RunqiL/opt/anaconda3/envs/bsoid_v2/lib/python3.8/site-packages/pandas/core/generic.py", line 10543, in rolling return Rolling( File "/Users/RunqiL/opt/anaconda3/envs/bsoid_v2/lib/python3.8/site-packages/pandas/core/window/rolling.py", line 169, in init self.validate() File "/Users/RunqiL/opt/anaconda3/envs/bsoid_v2/lib/python3.8/site-packages/pandas/core/window/rolling.py", line 1965, in validate raise ValueError("window must be non-negative")

runqiL avatar Sep 19 '23 02:09 runqiL