Column or variable 'm' does not exist #2404
jxwb125646
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When I run a linear regression, my code is as follows:
all_features = df_vaex.column_names[2:96]+df_vaex.column_names[99:173]+df_vaex.column_names[181:]
target = 'excess_ret'
model = LinearRegression()
vaex_model = Predictor(features=all_features, target=target, model=model)
vaex_model.fit(df_train)
When I run the model coefficients, this code is valid:
vaex_model.model.coef_
But when I want to calculate the R-square on the test dataset, I run this code:
vaex_model.transform(df_test)
And now there is an error: "Column or variable 'm' does not exist. Did you mean: 'ms' or 'bm'". But I have checked my dataset and ensure that there is no column or variable named 'm'. Is this the Vaex's bug?
Beta Was this translation helpful? Give feedback.
All reactions