缩放变量会产生一些NaN

时间:2018-12-05 20:43:09

标签: scaling

我有这个代码。它运行得很好,但是它确实具有NaN,这在尝试执行SVM时让我头疼。您能否让我知道如何删除NaN?谢谢!

from sklearn.preprocessing import StandardScaler
scaler = StandardScaler().fit(feature_vectors)
scaled_features = scaler.transform(feature_vectors)
scaled_features

0 个答案:

没有答案