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

use features factory in notebooks #4269

Merged
merged 9 commits into from May 8, 2018

Conversation

@vinx13
Copy link
Member

@vinx13 vinx13 commented May 1, 2018

[WIP]

" \n",
" gmm_est=GMM(num_components)\n",
" gmm_est.set_features(features)\n",
" gmm_est.set_features(features(X.T))\n",

This comment has been minimized.

@karlnapf

karlnapf May 1, 2018
Member

can you use put here?

This comment has been minimized.

@vinx13

vinx13 May 2, 2018
Author Member

actually we can't, GMM is a CDistrubition, where 'features' is not registered

This comment has been minimized.

"outputs": [],
"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",

This comment has been minimized.

@karlnapf

karlnapf May 1, 2018
Member

for the sake of minimal changes, i would not delete this and do inline below, but rather replace the line with the factory

@@ -551,9 +527,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {

This comment has been minimized.

@karlnapf

karlnapf May 1, 2018
Member

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

@@ -590,7 +564,7 @@
" * pull model likelihood out of sample\n",
" * 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",

This comment has been minimized.

@karlnapf

karlnapf May 1, 2018
Member

not sure about this

@@ -1,1078 +1,1041 @@
{
"cells": [

This comment has been minimized.

@karlnapf

karlnapf May 1, 2018
Member

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

@vinx13 vinx13 force-pushed the vinx13:doc/update-notebook branch from 65c2c25 to 3d9d608 May 5, 2018
@karlnapf
Copy link
Member

@karlnapf karlnapf commented May 8, 2018

Great!
This all looks good to me.
Before I merge, did you run all the notebooks? They run without errors?

@karlnapf karlnapf merged commit cceeb31 into shogun-toolbox:develop May 8, 2018
1 of 2 checks passed
1 of 2 checks passed
continuous-integration/travis-ci/pr The Travis CI build failed
Details
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
ktiefe added a commit to ktiefe/shogun that referenced this pull request Jul 30, 2019
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.