Skip to content

Conversation

@vene
Copy link
Member

@vene vene commented Apr 1, 2011

I created a branch with all of the NMF code except for CRO hierarchical clustering, which is slow and impractical at the moment.

vene and others added 30 commits November 30, 2010 18:16
Sparseness is now measured by linearising
the arrays.
Renamed some terms, improved some tests
nndsvd instead of fast_svd
sparseness instead of sparsity (discuss)
@vene
Copy link
Member Author

vene commented Apr 2, 2011

Is it OK if I do it like this and leave the tests unchanged for now?

On Sat, Apr 2, 2011 at 7:06 PM, GaelVaroquaux
[email protected]
wrote:

Name it, but at the end of the module, do:

class NMF(ProjectedGradientNMF):
   pass

So that people can use such a default NMF without worrying about the implementation.

Reply to this email directly or view it on GitHub:
#123 (comment)

@vene
Copy link
Member Author

vene commented Apr 2, 2011

I renamed it to ProjectedGradientNMF and made a empty class
NMF(ProjectedGradientNMF) wrapper. Is it ok if I leave the doc
pointing to NMF?

When the MultiplicativeUpdateNMF will be added, the doc will have
common parts (theory, initialization) and implementation-specific
parts. The point is that most of what is right now in the doc is
general.

The question is, should I push this?

On Sat, Apr 2, 2011 at 7:29 PM, Vlad Niculae [email protected] wrote:

Is it OK if I do it like this and leave the tests unchanged for now?

On Sat, Apr 2, 2011 at 7:06 PM, GaelVaroquaux
[email protected]
wrote:

Name it, but at the end of the module, do:

class NMF(ProjectedGradientNMF):
   pass

So that people can use such a default NMF without worrying about the implementation.

Reply to this email directly or view it on GitHub:
#123 (comment)

@GaelVaroquaux
Copy link
Member

Is it ok if I leave the doc pointing to NMF?

Yes.

The question is, should I push this?

Push it to your branch.

@vene
Copy link
Member Author

vene commented Apr 2, 2011

Also, should I put my name as author at the top of the file, and the
others in comments before the ProjectedGradientNMF class? I am saying
this because the file is now much larger than their original code, and
I am responsible for it.

On Sat, Apr 2, 2011 at 7:52 PM, GaelVaroquaux
[email protected]
wrote:

Is it ok if I leave the doc pointing to NMF?

Yes.

The question is, should I push this?

Push it to your branch.

Reply to this email directly or view it on GitHub:
#123 (comment)

@GaelVaroquaux
Copy link
Member

Yes, you should add your name to the authors list, keeping the original authors in addition.

@agramfort
Copy link
Member

+1 for merge

to be done : write a MultiplicativeUpdateNMF based on the code in benchmarks.

are we good?

@vene
Copy link
Member Author

vene commented Apr 2, 2011

Hi,
Let me check if my doc breaks when merged with the new multiple plot
feature. It'll take around 5 min.

On Sun, Apr 3, 2011 at 12:29 AM, agramfort
[email protected]
wrote:

+1 for merge

to be done : write a MultiplicativeUpdateNMF based on the code in benchmarks.

are we good?

Reply to this email directly or view it on GitHub:
#123 (comment)

@vene
Copy link
Member Author

vene commented Apr 2, 2011

It doesn't break, everything looks good. It does make an extra copy of
an image, I think I can fix that.
Should I include the plot of the PCA components in the doc for
comparison, or should I leave that in the example, and only show NMF
components in the doc?

On Sun, Apr 3, 2011 at 12:46 AM, Vlad Niculae [email protected] wrote:

Hi,
Let me check if my doc breaks when merged with the new multiple plot
feature. It'll take around 5 min.

On Sun, Apr 3, 2011 at 12:29 AM, agramfort
[email protected]
wrote:

+1 for merge

to be done : write a MultiplicativeUpdateNMF based on the code in benchmarks.

are we good?

Reply to this email directly or view it on GitHub:
#123 (comment)

@GaelVaroquaux
Copy link
Member

Should I include the plot of the PCA components in the doc for comparison

Please do that. It will probably be useful for people to get a better understanding of the differences.

Also, I am wondering if the imshows wouldn't look better in this specific example with "interpolation='nearest'".

@ogrisel
Copy link
Member

ogrisel commented Apr 2, 2011

+1 for interpolation='nearest'

@GaelVaroquaux
Copy link
Member

By the way, it's late here, and I need to do some urgent things with regards to the administrating the GSOC, so I won't be able to merge this tonight, and tomorrow I am leaving on conference.

Alex, or Olivier, can you make sure that the merge happens.

After the merge, it would be great to rationalize the shape of components_ across the codebase, and create a 'decomposition' sub-package.

@vene
Copy link
Member Author

vene commented Apr 2, 2011

Also about the images: Would it be more useful or more confusing to
invert the NMF components before displaying?

On Sun, Apr 3, 2011 at 1:04 AM, ogrisel
[email protected]
wrote:

+1 for interpolation='nearest'

Reply to this email directly or view it on GitHub:
#123 (comment)

@GaelVaroquaux
Copy link
Member

Not sure. I guess I am -0 for inversion, unless both PCA and NMF get inverted.

@vene
Copy link
Member Author

vene commented Apr 2, 2011

Pushed, hope the plots look good. I don't really understand yet how to
tweak the distances between subplots etc.

On Sun, Apr 3, 2011 at 1:11 AM, GaelVaroquaux
[email protected]
wrote:

Not sure. I guess I am -0 for inversion, unless both PCA and NMF get inverted.

Reply to this email directly or view it on GitHub:
#123 (comment)

@GaelVaroquaux
Copy link
Member

Use 'pl.subplots_adjust'

@ogrisel ogrisel merged commit 0b8aa44 into scikit-learn:master Apr 3, 2011
@ogrisel
Copy link
Member

ogrisel commented Apr 3, 2011

Ok this is merged. Thanks again for your contribution Vlad. Would you like to work on the decomposition package refactoring and the components_ shape consistency issues next?

@agramfort
Copy link
Member

@vene : you have now commit rights on the main branch. If you're willing to do what olivier suggests please do it in a pull request anyway. Welcome to the crew ! :)

@vene
Copy link
Member Author

vene commented Apr 3, 2011

Thank you, wow! I am honored!

I will take care of the decomposition package and consistency issue
next, like olivier suggested. I can begin later today, I think.
I will start a topic for my GSoC application to discuss when you will
have the time.

Best,
Vlad

On Sun, Apr 3, 2011 at 4:35 AM, agramfort
[email protected]
wrote:

@vene : you have now commit rights on the main branch. If you're willing to do what olivier suggests please do it in a pull request anyway. Welcome to the crew ! :)

Reply to this email directly or view it on GitHub:
#123 (comment)

gbolmier added a commit to gbolmier/scikit-learn that referenced this pull request May 29, 2020
# More detailed explanatory text, if necessary. Wrap it to about 72
# characters or so. In some contexts, the first line is treated as the
# subject of the commit and the rest of the text as the body. The
# blank line separating the summary from the body is critical (unless
# you omit the body entirely); various tools like `log`, `shortlog`
# and `rebase` can get confused if you run the two together.

# Explain the problem that this commit is solving. Focus on why you
# are making this change as opposed to how (the code explains that).
# Are there side effects or other unintuitive consequences of this
# change? Here's the place to explain them.

# Further paragraphs come after blank lines.

#  - Bullet points are okay, too

#  - Typically a hyphen or asterisk is used for the bullet, preceded
#    by a single space, with blank lines in between, but conventions
#    vary here

# If you use an issue tracker, put references to them at the bottom,
# like this:

# Resolves: scikit-learn#123
# See also: scikit-learn#456, scikit-learn#789
gbolmier added a commit to gbolmier/scikit-learn that referenced this pull request May 30, 2020
# More detailed explanatory text, if necessary. Wrap it to about 72
# characters or so. In some contexts, the first line is treated as the
# subject of the commit and the rest of the text as the body. The
# blank line separating the summary from the body is critical (unless
# you omit the body entirely); various tools like `log`, `shortlog`
# and `rebase` can get confused if you run the two together.

# Explain the problem that this commit is solving. Focus on why you
# are making this change as opposed to how (the code explains that).
# Are there side effects or other unintuitive consequences of this
# change? Here's the place to explain them.

# Further paragraphs come after blank lines.

#  - Bullet points are okay, too

#  - Typically a hyphen or asterisk is used for the bullet, preceded
#    by a single space, with blank lines in between, but conventions
#    vary here

# If you use an issue tracker, put references to them at the bottom,
# like this:

# Resolves: scikit-learn#123
# See also: scikit-learn#456, scikit-learn#789
gbolmier added a commit to gbolmier/scikit-learn that referenced this pull request Aug 9, 2020
# More detailed explanatory text, if necessary. Wrap it to about 72
# characters or so. In some contexts, the first line is treated as the
# subject of the commit and the rest of the text as the body. The
# blank line separating the summary from the body is critical (unless
# you omit the body entirely); various tools like `log`, `shortlog`
# and `rebase` can get confused if you run the two together.

# Explain the problem that this commit is solving. Focus on why you
# are making this change as opposed to how (the code explains that).
# Are there side effects or other unintuitive consequences of this
# change? Here's the place to explain them.

# Further paragraphs come after blank lines.

#  - Bullet points are okay, too

#  - Typically a hyphen or asterisk is used for the bullet, preceded
#    by a single space, with blank lines in between, but conventions
#    vary here

# If you use an issue tracker, put references to them at the bottom,
# like this:

# Resolves: scikit-learn#123
# See also: scikit-learn#456, scikit-learn#789
gbolmier added a commit to gbolmier/scikit-learn that referenced this pull request Aug 9, 2020
# More detailed explanatory text, if necessary. Wrap it to about 72
# characters or so. In some contexts, the first line is treated as the
# subject of the commit and the rest of the text as the body. The
# blank line separating the summary from the body is critical (unless
# you omit the body entirely); various tools like `log`, `shortlog`
# and `rebase` can get confused if you run the two together.

# Explain the problem that this commit is solving. Focus on why you
# are making this change as opposed to how (the code explains that).
# Are there side effects or other unintuitive consequences of this
# change? Here's the place to explain them.

# Further paragraphs come after blank lines.

#  - Bullet points are okay, too

#  - Typically a hyphen or asterisk is used for the bullet, preceded
#    by a single space, with blank lines in between, but conventions
#    vary here

# If you use an issue tracker, put references to them at the bottom,
# like this:

# Resolves: scikit-learn#123
# See also: scikit-learn#456, scikit-learn#789
gbolmier added a commit to gbolmier/scikit-learn that referenced this pull request Aug 9, 2020
# More detailed explanatory text, if necessary. Wrap it to about 72
# characters or so. In some contexts, the first line is treated as the
# subject of the commit and the rest of the text as the body. The
# blank line separating the summary from the body is critical (unless
# you omit the body entirely); various tools like `log`, `shortlog`
# and `rebase` can get confused if you run the two together.

# Explain the problem that this commit is solving. Focus on why you
# are making this change as opposed to how (the code explains that).
# Are there side effects or other unintuitive consequences of this
# change? Here's the place to explain them.

# Further paragraphs come after blank lines.

#  - Bullet points are okay, too

#  - Typically a hyphen or asterisk is used for the bullet, preceded
#    by a single space, with blank lines in between, but conventions
#    vary here

# If you use an issue tracker, put references to them at the bottom,
# like this:

# Resolves: scikit-learn#123
# See also: scikit-learn#456, scikit-learn#789
Arham-jawad896 added a commit to Arham-jawad896/scikit-learn that referenced this pull request Dec 8, 2025
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.

7 participants