Skip to content

Commit d91f0bb

Browse files
author
Dominik Waurenschk
committed
fix examples
1 parent 9645f75 commit d91f0bb

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

examples/plot_mpg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
plt.show()
5252

5353
# Calculate the variance
54-
mpg_V_IJ_unbiased = fci.random_forest_error(mpg_forest, mpg_X_train,
54+
mpg_V_IJ_unbiased = fci.random_forest_error(mpg_forest, mpg_X_train.shape,
5555
mpg_X_test)
5656

5757
# Plot error bars for predicted MPG using unbiased variance

examples/plot_mpg_svr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
plt.show()
5353

5454
# Calculate the variance
55-
mpg_V_IJ_unbiased = fci.random_forest_error(mpg_bagger, mpg_X_train, mpg_X_test)
55+
mpg_V_IJ_unbiased = fci.random_forest_error(mpg_bagger, mpg_X_train.shape, mpg_X_test)
5656

5757
# Plot error bars for predicted MPG using unbiased variance
5858
plt.errorbar(mpg_y_test, mpg_y_hat, yerr=np.sqrt(mpg_V_IJ_unbiased), fmt="o")

examples/plot_spam.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
plt.legend()
4545

4646
# Calculate the variance
47-
spam_V_IJ_unbiased = fci.random_forest_error(spam_RFC, spam_X_train,
47+
spam_V_IJ_unbiased = fci.random_forest_error(spam_RFC, spam_X_train.shape,
4848
spam_X_test)
4949

5050
# Plot forest prediction for emails and standard deviation for estimates

0 commit comments

Comments
 (0)