icol 0.10.0__tar.gz → 0.10.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: icol
3
- Version: 0.10.0
3
+ Version: 0.10.1
4
4
  Summary: Iterative Correlation Learning implementation
5
5
  Author-email: Simon Teshuva <simon.teshuva@gmail.com>
6
6
  License: MIT
@@ -131,7 +131,7 @@ class LOGISTIC_ADALASSO:
131
131
  nonancols = np.isnan(X).sum(axis=0)==0
132
132
  noinfcols = np.isinf(X).sum(axis=0)==0
133
133
  valcols = np.logical_and(nonancols, noinfcols)
134
- if self.gamma <= 1e-10:
134
+ if np.abs(self.gamma) <= 1e-10:
135
135
  beta_hat = np.ones(X.shape[1])
136
136
  w_hat = np.ones(X.shape[1])
137
137
  X_star_star = X.copy()
@@ -171,7 +171,6 @@ class LOGISTIC_ADALASSO:
171
171
  self.model.coef_ = self.coef_
172
172
 
173
173
  return self
174
-
175
174
 
176
175
  def _count_nnz(self, coef):
177
176
  return int(np.sum(
@@ -179,9 +178,7 @@ class LOGISTIC_ADALASSO:
179
178
  ))
180
179
 
181
180
  def __str__(self):
182
- params = self.get_params()
183
- params_str = ", ".join(f"{k}={params[k]!r}" for k in sorted(params))
184
- return f"LogisticLasso({params_str})"
181
+ return f"Logistic{0}Lasso".format("Ada" if np.abs(self.gamma)<=1e-10 else '')
185
182
 
186
183
  def decision_function(self, X):
187
184
  return np.dot(X, self.model.coef_.ravel())
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: icol
3
- Version: 0.10.0
3
+ Version: 0.10.1
4
4
  Summary: Iterative Correlation Learning implementation
5
5
  Author-email: Simon Teshuva <simon.teshuva@gmail.com>
6
6
  License: MIT
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "icol"
3
- version = "0.10.0"
3
+ version = "0.10.1"
4
4
  description = "Iterative Correlation Learning implementation"
5
5
  authors = [
6
6
  { name = "Simon Teshuva", email = "simon.teshuva@gmail.com" }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes