I have a dataset and I am running a linear model.
lm_4 = sm.OLS(y_train,X_train).fit()
print(lm_4.summary())
The parameters are let's say as below:
print(lm_4.params)
const 0.001389
area 0.309894
bathrooms 0.314420
Now to predict:
lm_4.predict(X_test_m1.iloc[[1]])
Now my doubt is how can I export this model or how can i convert this to an equation so that I can use it independently this model anywhere else. What is the exact equation is generated by the model.
Something like:
y = cont * 0.001389 + area * 0.309894 + bathroom*0.3144 + c
I am new to this. Any lead appreciated.