Skip to content

Commit

Permalink
fix: return intercept as float
Browse files Browse the repository at this point in the history
  • Loading branch information
jolars committed Dec 11, 2023
1 parent afe26a5 commit 5e83de1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sortedl1/estimators.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def fit(self, X, y):

result = fit_slope(X, y, lam, alpha, params)

self.intercept_ = result[0]
self.intercept_ = result[0][0]
self.sparse_coef_ = result[1]
self.coef_ = result[1].toarray()
self.lambda_ = result[2]
Expand Down

0 comments on commit 5e83de1

Please sign in to comment.