Skip to content

[MRG] Restricted Boltzmann Machines: director's cut - #1954

Closed
vene wants to merge 122 commits into
scikit-learn:masterfrom
vene:rbm_gael
Closed

vene wants to merge 122 commits into
scikit-learn:masterfrom
vene:rbm_gael

Conversation

@vene

@vene vene commented May 9, 2013

Copy link
Copy Markdown
Member

This is the new life of PR #1200.

I grabbed @GaelVaroquaux's branch, fixed the random state issue, made most of the API private, changed the example description and added the image to the narrative docs.

Up for debate:

  • I left gibbs, free_energy and pseudo_likelihood as public functions.
  • I feel like, in some places, the tests check the implementation against itself,
    i.e. if sample_bernoulli had some bug, then test_gibbs would pass because it verifies the bug against itself. Could reviewers please take a look at the tests too?

Yann N. Dauphin added 30 commits October 2, 2012 18:12
@GaelVaroquaux

Copy link
Copy Markdown
Member

Just ran this branch under a 'safe casting' numpy installation with no breakage! Good job.

@vene

vene commented Jul 24, 2013

Copy link
Copy Markdown
Member Author

I think this is ready. 93% test coverage. I should check it on python3 though.

@ogrisel

ogrisel commented Jul 24, 2013

Copy link
Copy Markdown
Member

Any good reason not to have 100% coverage?

Comment thread sklearn/utils/_logistic_sigmoid.pyx Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is old Cython syntax (and why ii instead of just i)?

@vene

vene commented Jul 24, 2013

Copy link
Copy Markdown
Member Author

@ogrisel : I just double-checked and all non-covered lines are just if verbose branches

@GaelVaroquaux

Copy link
Copy Markdown
Member

@ogrisel : I just double-checked and all non-covered lines are just if verbose
branches

Run a smoke test with verbose=10 and capturing the output in a stringIO

@amueller

Copy link
Copy Markdown
Member

+1 for merge with optionally doing the verbose test that I suggested above ;)

@vene

vene commented Jul 24, 2013

Copy link
Copy Markdown
Member Author

Both @larsmans and @amueller+@GaelVaroquaux comments are addressed.

Comment thread doc/whats_new.rst

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it is legitimate to add your name as well @vene

@larsmans larsmans closed this in de4b923 Jul 24, 2013
@ogrisel

ogrisel commented Jul 24, 2013

Copy link
Copy Markdown
Member

\o/

@arjoly

arjoly commented Jul 24, 2013

Copy link
Copy Markdown
Member

Congratulation !!!

@syhw

syhw commented Jul 24, 2013

Copy link
Copy Markdown
Contributor

Cool, thanks @vene :)

@IssamLaradji

Copy link
Copy Markdown
Contributor

Fantastic!! Thanks for the conclusion @vene

@mblondel

Copy link
Copy Markdown
Member

Anticipating the future MLP module, I would put the examples in a
neural_network/ folder.

@GaelVaroquaux

Copy link
Copy Markdown
Member

Anticipating the future MLP module, I would put the examples in a neural_network/ folder.

Yes, I agree. I believe that this was an oversight.

@amueller

Copy link
Copy Markdown
Member

well moving examples won't break any ones code, right?

@GaelVaroquaux

Copy link
Copy Markdown
Member

well moving examples won't break any ones code, right?

No. They break links on the Internet, but that's not as bad.

@amueller

Copy link
Copy Markdown
Member

Fair point, let's move them now.

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.