输入包含NaN,无穷大或值太大而导致dtype('float32')错误

时间:2019-12-14 06:22:01

标签: python deep-learning valueerror

我怎么解决这个ValueError

X_train, X_test, y_train, y_test = train_test_split(X, y, test_size = 0.30,random_state=10)

classifier.fit(X_train, y_train) 

输出:

ValueError: Input contains NaN, infinity or a value too large for dtype('float32').

0 个答案:

没有答案