Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement sample weight #324

Open
wants to merge 25 commits into
base: master
Choose a base branch
from

Conversation

jasmainak
Copy link
Member

@peterfoley do you mind if we borrow code from your fork for pyglmnet? :-)

Probably won't get merged soon but I wanted to open a PR so that it's on our radar.

peterfoley and others added 25 commits January 23, 2019 09:18
also log a warning if GLM.fit() doesn't converge
messages now identify the params that caused assertions to fail

some assertions are only expected to pass for reg_lambda=0.0
where the true model can be reconstructed almost perfectly

Needed to increase the required loss trace improvement threshold
from 1e-7 to 1e-3 to deal with occasional noise in cdfast steps
beta is updated by GLM._prox, which invalidates the cached z
the only place that uses _cdfast immediately invalidates the cache
to match package style

Disabled flake8 checks:
  W504 conflicts with W503-type style used in the package
  W605 conflicts with latex code in Sphinx docstrings
ensure _logL calls use z argument by name
use scipy.special.comb instead of removed scipy.misc.comb
@peterfoley
Copy link
Contributor

Feel free to pull in anything useful! Do it soon, though - I’m leaving 605 shortly and my peterfoley605 account and that fork may disappear.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants