Skip to content

Commit 0f41de2

Browse files
author
minjk-bl
committed
Fix regression multi enter code
1 parent 8d771ab commit 0f41de2

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

visualpython/js/m_stats/Regression.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -707,10 +707,8 @@ define([
707707
code.appendLine("from IPython.display import display, Markdown");
708708
code.appendLine("from scipy import stats");
709709
code.appendLine("import statsmodels.api as sm");
710-
if (testType === 'multiple') {
711-
if (['stepwise', 'backward', 'forward'].includes(method)) {
712-
code.appendLine("_predict = _result.predict(sm.add_constant(vp_df[_model.exog_names[1:]]))");
713-
}
710+
if (testType === 'multiple' && ['stepwise', 'backward', 'forward'].includes(method)) {
711+
code.appendLine("_predict = _result.predict(sm.add_constant(vp_df[_model.exog_names[1:]]))");
714712
} else {
715713
code.appendLine("_predict = _result.predict(vp_df)");
716714
}

0 commit comments

Comments
 (0)