Skip to content
Snippets Groups Projects
Commit b146b12b authored by lukas leufen's avatar lukas leufen
Browse files

Merge branch 'lukas_issue074_bug_ols-force-add-constant' into 'develop'

apply bug fix to dev too

See merge request toar/machinelearningtools!67
parents 6b90f610 7bd84605
No related branches found
No related tags found
3 merge requests!90WIP: new release update,!89Resolve "release branch / CI on gpu",!67apply bug fix to dev too
Pipeline #31745 passed
......@@ -31,7 +31,7 @@ class OrdinaryLeastSquaredModel:
self.y = data_y
def predict(self, data):
data = sm.add_constant(self.reshape_xarray_to_numpy(data))
data = sm.add_constant(self.reshape_xarray_to_numpy(data), has_constant="add")
return np.atleast_2d(self.model.predict(data))
@staticmethod
......
from src.model_modules.linear_model import OrdinaryLeastSquaredModel
class TestOrdinaryLeastSquareModel:
def test_constant_input_variable(self):
pass
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment