Skip to content

Commit cb54293

Browse files
authored
Update rfe_cv.py
1 parent d75bd11 commit cb54293

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎rfe_cv.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def rfe_cv(df, vars_x, var_y, estimator, cv=5, std_scaling=False, figsize=(8,4))
6767

6868
ax1.fill_between(
6969
np.arange(len(v_rank_mean)),
70-
v_rank_mean + v_rank_std/np.sqrt(n_splits),
70+
v_rank_mean + v_rank_std/np.sqrt(n_splits), # stddev of mean as s/sqrt(n) is not right, the true value is higher
7171
v_rank_mean - v_rank_std/np.sqrt(n_splits),
7272
alpha=0.1,
7373
color='b'

0 commit comments

Comments
 (0)