-
-
Notifications
You must be signed in to change notification settings - Fork 1k
use features factory in notebooks #4269
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
Conversation
| " \n", | ||
| " gmm_est=GMM(num_components)\n", | ||
| " gmm_est.set_features(features)\n", | ||
| " gmm_est.set_features(features(X.T))\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you use put here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actually we can't, GMM is a CDistrubition, where 'features' is not registered
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok!
| "source": [ | ||
| "def estimate_gmm(X, num_components):\n", | ||
| " # bring data into shogun representation (note that Shogun data is in column vector form, so transpose)\n", | ||
| " features=RealFeatures(X.T)\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for the sake of minimal changes, i would not delete this and do inline below, but rather replace the line with the factory
| { | ||
| "cell_type": "code", | ||
| "execution_count": null, | ||
| "metadata": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in order to avoid all these unrelated changes in the diff, could you first send a PR where do dont change anything, but rather just save the notebook, and then do a second Pr with your changes.
But only do it next time, this one is OK
| " * proper mixture model interface with classical distribution and EM interface (E,M methods)\n", | ||
| " \n", | ||
| " * set_coef dimensiosn check. DImension check in general\n", | ||
| " * put('m_coefficients', _) dimensiosn check. DImension check in general\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure about this
| @@ -1,1078 +1,1041 @@ | |||
| { | |||
| "cells": [ | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as you can see, this diff here is everything. Can you send a separate PR that just stores the nb in the new format and then update this one here to just have your changes? thx
65c2c25 to
3d9d608
Compare
|
Great! |
* Update notebook GMM * Update KMeans notebook * Update KernelDensity notebook * Update Tapkee notebook * Update Classification notebook * Update SVM notebook * Update Regression notebook * Update PCA notebook * Update ica notebooks
[WIP]