Skip to content

Commit f0f9668

Browse files
MechCoderlarsmans
authored andcommitted
FIX: Fix the imputation example
1 parent d3c16a6 commit f0f9668

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/imputation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848

4949
# Estimate the score without the lines containing missing values
5050
X_filtered = X_full[~missing_samples, :]
51-
y_filtered = y_full[~missing_samples, :]
51+
y_filtered = y_full[~missing_samples]
5252
estimator = RandomForestRegressor(random_state=0, n_estimators=100)
5353
score = cross_val_score(estimator, X_filtered, y_filtered).mean()
5454
print("Score without the samples containing missing values = %.2f" % score)

0 commit comments

Comments
 (0)