DataCanvasIO / HyperTS

A Full-Pipeline Automated Time Series (AutoTS) Analysis Toolkit.
https://hyperts.readthedocs.io
Apache License 2.0
260 stars 27 forks source link

TypeError: ufunc 'isnan' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe'' #94

Closed kelvin-ksl closed 1 year ago

kelvin-ksl commented 1 year ago

05-04 20:09:07 E hypernets.e._experiment.py 106 - ExperimentID:[HyperTS_de1045f0eeffff25abcbae84d1758aed] - None: ufunc 'isnan' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''.

How resolve?

zhangxjohn commented 1 year ago

I can not understand your descirption. Can you give me more detials?

kelvin-ksl commented 1 year ago

I'm using 2 datasets, one for training and the other for testing, I follow example 14 (anomaly_detection_experiment) but in the temporal_train_test_split section I put the following syntax:

train_data = train_user2 test_data = df

other than that the code is identical to the example

*Error occurs in make_experiment

zhangxjohn commented 1 year ago

Ok, please first check the data format of train_dataand test_data , 'anomaly'should not in their columns. In addition, what is the train_user2?

zhangxjohn commented 1 year ago

If you do not fix the code in the section temporal_train_test_split, anyError occurs?

kelvin-ksl commented 1 year ago

I'm assigning the anomaly column to the ground_truth variable as shown in the example.

train_user2 is my training data, in it I didn't remove the anomaly column.

kelvin-ksl commented 1 year ago

no error occurs before , only in the make experience section.

If you wish, I can share the notebook with the data I am using, I will only ask for your email to send it.

zhangxjohn commented 1 year ago

I am open, you can.

kelvin-ksl commented 1 year ago

sent.

zhangxjohn commented 1 year ago

Attention, my email is: zhangxjohn@yeah.net