pylablanche / gcForest

Python implementation of deep forest method : gcForest
MIT License
417 stars 193 forks source link

Input contains NaN, infinity or a value too large for dtype('float64'). #22

Open Shastransu opened 5 years ago

Shastransu commented 5 years ago

x_train,x_val,y_train,y_val=train_test_split(input_predictors,output_target,test_size=0.20,random_state=7) from sklearn.metrics import accuracy_score from sklearn.linear_model import LogisticRegression logreg=LogisticRegression() x_train=x_train.astype(np.float64,copy=False) y_train=y_train.astype(np.float64,copy=False)

logreg.fit(x_train,y_train) when i write fit line it is showing: ValueError: Input contains NaN, infinity or a value too large for dtype('float64').

814471489 commented 4 years ago

Hello,How did you solve this problem? I have also encountered this problem. If you have solved it, could you please answer it?