Open Shastransu opened 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').
Hello,How did you solve this problem? I have also encountered this problem. If you have solved it, could you please answer it?
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').