Skip to content

Commit

Permalink
allow trained model to get num_iters and objective
Browse files Browse the repository at this point in the history
  • Loading branch information
lijinf2 committed Sep 28, 2023
1 parent 8bed6b0 commit e72f4e9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 4 additions & 0 deletions python/cuml/linear_model/logistic_regression_mg.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,10 @@ class LogisticRegressionMG(MGFitMixin, LogisticRegression):
<float*> &objective32,
<int*> &num_iters)

self.solver_model.objective = objective32

self.solver_model.num_iters = num_iters

self.solver_model._calc_intercept()

self.handle.sync()
2 changes: 0 additions & 2 deletions python/cuml/tests/dask/test_dask_logistic_regression.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
from sklearn.datasets import make_classification
from sklearn.linear_model import LogisticRegression as skLR
from cuml.internals.safe_imports import cpu_only_import
from hypothesis import given
from hypothesis import strategies as st

pd = cpu_only_import("pandas")
np = cpu_only_import("numpy")
Expand Down

0 comments on commit e72f4e9

Please sign in to comment.