Skip to content

Commit a680043

Browse files
committed
Merge pull request scikit-learn#5800 from fabioticconi/patch-1
Fixed transformation of test set via RobustScaler in example
2 parents 5c0ea1e + c6f586d commit a680043

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/preprocessing/plot_robust_scaling.py

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

5353
robust_scaler = RobustScaler()
5454
Xtr_r = robust_scaler.fit_transform(X_train)
55-
Xte_r = robust_scaler.fit_transform(X_test)
55+
Xte_r = robust_scaler.transform(X_test)
5656

5757

5858
# Plot data

0 commit comments

Comments
 (0)