You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
java.lang.IllegalArgumentException: Field y doesn't exist
at smile.data.type.StructType.indexOf(StructType.java:103)
at smile.data.formula.Variable$1.<init>(Variable.java:80)
at smile.data.formula.Variable.bind(Variable.java:78)
at smile.data.formula.Formula.bind(Formula.java:360)
at smile.data.formula.Formula.x(Formula.java:497)
at smile.data.formula.Formula.matrix(Formula.java:546)
at smile.regression.LinearModel.predict(LinearModel.java:358)
at models.TestSmileRegression.test_formula_OLS(TestSmileRegression.java:22)
Input data
In the snippet ^
Additional context
Sample code throws in ver 3.1.0, but works fine in 2.6.0
The text was updated successfully, but these errors were encountered:
Hi! The code and test update look good. Unfortunately I can't fully test at the moment because of firewall/source code restrictions at my company. I can easily test if you make a release. Thanks for looking into it so quickly!
Describe the bug
LinearModel.predict requires DataFrame that contains the predicted variable. This likely affects other models as well.
Expected behavior
Predict should work with explanatory variables only.
Actual behavior
Predict throws when predicted variable is not included in the DataFrame.
Code snippet
Exception
Input data
In the snippet ^
Additional context
The text was updated successfully, but these errors were encountered: