We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3c16a6 commit f0f9668Copy full SHA for f0f9668
examples/imputation.py
@@ -48,7 +48,7 @@
48
49
# Estimate the score without the lines containing missing values
50
X_filtered = X_full[~missing_samples, :]
51
-y_filtered = y_full[~missing_samples, :]
+y_filtered = y_full[~missing_samples]
52
estimator = RandomForestRegressor(random_state=0, n_estimators=100)
53
score = cross_val_score(estimator, X_filtered, y_filtered).mean()
54
print("Score without the samples containing missing values = %.2f" % score)
0 commit comments