icol 0.9.5__py3-none-any.whl → 0.9.7__py3-none-any.whl

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.
icol/logistic_icol.py CHANGED
@@ -117,16 +117,12 @@ class LOGISTIC_LASSO:
117
117
  "tol": self.tol,
118
118
  "eps_nnz": self.eps_nnz,
119
119
  "random_state": self.random_state,
120
- "penalty": "l1",
121
- "l1_ratio": 1,
122
- "fit_intercept": False,
123
120
  'clp': self.clp
124
121
  }
125
122
 
126
- def __repr__(self):
127
- params = self.get_params()
128
- params_str = ", ".join(f"{k}={params[k]!r}" for k in sorted(params))
129
- return f"LogisticLasso({params_str})"
123
+ def __repr__(self, prec=3):
124
+ coef = self.model.coef_.ravel()
125
+ return ''.join([('+' if c > 0 else '') + sci(c, sig=prec) + '(' + self.feature_names[i] + ')' for i, c in enumerate(coef) if (np.abs(coef[i]) > self.eps_nnz)])
130
126
 
131
127
  def fit(self, X, y, d, feature_names=None, verbose=False):
132
128
  self.feature_names = ['X_{0}'.format(i) for i in range(X.shape[1])] if feature_names is None else feature_names
@@ -152,9 +148,10 @@ class LOGISTIC_LASSO:
152
148
  np.abs(np.ravel(coef)) > self.eps_nnz
153
149
  ))
154
150
 
155
- def __str__(self, prec=3):
156
- coef = self.model.coef_.ravel()
157
- return ''.join([('+' if c > 0 else '') + sci(c, sig=prec) + '(' + self.feature_names[i] + ')' for i, c in enumerate(coef) if (np.abs(coef[i]) > self.eps_nnz)])
151
+ def __str__(self):
152
+ params = self.get_params()
153
+ params_str = ", ".join(f"{k}={params[k]!r}" for k in sorted(params))
154
+ return f"LogisticLasso({params_str})"
158
155
 
159
156
  def decision_function(self, X):
160
157
  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.9.5
3
+ Version: 0.9.7
4
4
  Summary: Iterative Correlation Learning implementation
5
5
  Author-email: Simon Teshuva <simon.teshuva@gmail.com>
6
6
  License: MIT
@@ -0,0 +1,9 @@
1
+ icol/__init__.py,sha256=nnhJPjnFCpho8OB-5q-Mq8J91EeCV_o3KVO-lLC8tQY,173
2
+ icol/feature_expansion.py,sha256=frWmfvneP1lFxMm-b_oVoRT2zvLk2WpqBM1Pzpb2rJQ,12520
3
+ icol/icol.py,sha256=uZihshYZydEL4gU32CWVtx5CsTr-fuypZER5gwLSaPU,29228
4
+ icol/logistic_icol.py,sha256=-Oav9jNrGDworWTTxbwHSZ8W3sb9Z6QQf2x9Lxd1iDU,15224
5
+ icol-0.9.7.dist-info/LICENSE,sha256=aD00NFSvGfojy-IWFmtKpeSg262O0dWzmsfXAaT0xuk,1070
6
+ icol-0.9.7.dist-info/METADATA,sha256=ruwHV80RRNA25Xmo8uo_As7brKHsjmmsnLOR8jz0sAo,1977
7
+ icol-0.9.7.dist-info/WHEEL,sha256=WnJ8fYhv8N4SYVK2lLYNI6N0kVATA7b0piVUNvqIIJE,91
8
+ icol-0.9.7.dist-info/top_level.txt,sha256=OKisIKQUWtt2x-hxR53qbTr2AR3kdeRfTChIdmn2sDY,5
9
+ icol-0.9.7.dist-info/RECORD,,
@@ -1,9 +0,0 @@
1
- icol/__init__.py,sha256=nnhJPjnFCpho8OB-5q-Mq8J91EeCV_o3KVO-lLC8tQY,173
2
- icol/feature_expansion.py,sha256=frWmfvneP1lFxMm-b_oVoRT2zvLk2WpqBM1Pzpb2rJQ,12520
3
- icol/icol.py,sha256=uZihshYZydEL4gU32CWVtx5CsTr-fuypZER5gwLSaPU,29228
4
- icol/logistic_icol.py,sha256=zBtjF-MFcUW4Xj3_ekjlpVnm3Vvbm9XucjKAHI6J8tw,15316
5
- icol-0.9.5.dist-info/LICENSE,sha256=aD00NFSvGfojy-IWFmtKpeSg262O0dWzmsfXAaT0xuk,1070
6
- icol-0.9.5.dist-info/METADATA,sha256=uutXeBTHTktw5vLERGNWDji7fQYpwpQjsO7mHmQ3tqE,1977
7
- icol-0.9.5.dist-info/WHEEL,sha256=WnJ8fYhv8N4SYVK2lLYNI6N0kVATA7b0piVUNvqIIJE,91
8
- icol-0.9.5.dist-info/top_level.txt,sha256=OKisIKQUWtt2x-hxR53qbTr2AR3kdeRfTChIdmn2sDY,5
9
- icol-0.9.5.dist-info/RECORD,,
File without changes
File without changes