This repository was archived by the owner on Jul 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 57
Commit c26acfb
LogitNet weights (#34)
* expose max_features to users
* off by one in def of nx vs ne for max_features
* init needed for use in batchlearner
* max_features in class init
* tests check number of nonzero coefs
* want less than or equals
* remove unnecessary max_features arg
* use sample weights during fit of lognet, not just cv
* want weights in score calc too
* simplified weights logic
* test with sparse matrix1 parent 3f8b4a2 commit c26acfb
3 files changed
+34
-2
lines changedWhitespace-only changes.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
266 | 266 | | |
267 | 267 | | |
268 | 268 | | |
269 | + | ||
270 | + | ||
271 | + | ||
272 | + | ||
273 | + | ||
274 | + | ||
275 | + | ||
276 | + | ||
277 | + | ||
269 | 278 | | |
270 | 279 | | |
271 | 280 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | - | ||
12 | - | ||
11 | + | ||
12 | + | ||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
215 | + | ||
216 | + | ||
217 | + | ||
218 | + | ||
219 | + | ||
220 | + | ||
221 | + | ||
222 | + | ||
223 | + | ||
224 | + | ||
225 | + | ||
226 | + | ||
227 | + | ||
228 | + | ||
229 | + | ||
230 | + | ||
231 | + | ||
232 | + | ||
233 | + | ||
234 | + | ||
235 | + | ||
236 | + | ||
237 | + | ||
215 | 238 | | |
216 | 239 | | |
217 | 240 | | |
| |||
0 commit comments