-
-
Notifications
You must be signed in to change notification settings - Fork 25.9k
ENH Impoving execution speed of plot_pca_vs_fa_model_selection.py by … #21671
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
ENH Impoving execution speed of plot_pca_vs_fa_model_selection.py by … #21671
Conversation
…dividing by 2 parameters n_samples, n_features, rank
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.
LGTM, thanks for the speed improvement. The conclusions in the text still hold with this dataset.
In the text, I believe that the sentence "Under appropriate circumstances the low rank models are more likely than shrinkage models." is wrong. I should rather be written: "Under appropriate circumstances (choice of the number of components), the held-out data is more likely for low rank models than for shrinkage models.".
This is because the likelihood is a property of the data for a given model rather than a property of a model for given data. Maybe @agramfort or someone else can double check the suggested phrasing above.
@ogrisel I agree with the phrasing you suggest |
@ogrisel @agramfort Should I change this myself in this PR ? |
yes go for it!
… |
Retrieve latest chagement
…dividing by 2 parameters n_samples, n_features, rank
…b.com:Iglesys347/scikit-learn into increase_speed_plot_pca_vs_fa_model_selection
Get letest repo updates
…se_speed_plot_pca_vs_fa_model_selection
@ogrisel @agramfort I applied your suggestions and the pipeline seems good. |
Thx @Iglesys347 |
scikit-learn#21671) * ENH Impoving execution speed of plot_pca_vs_fa_model_selection.py by dividing by 2 parameters n_samples, n_features, rank * Update docstring according to @ogrisel 's comment * ENH Impoving execution speed of plot_pca_vs_fa_model_selection.py by dividing by 2 parameters n_samples, n_features, rank * Update docstring according to @ogrisel 's comment
scikit-learn#21671) * ENH Impoving execution speed of plot_pca_vs_fa_model_selection.py by dividing by 2 parameters n_samples, n_features, rank * Update docstring according to @ogrisel 's comment * ENH Impoving execution speed of plot_pca_vs_fa_model_selection.py by dividing by 2 parameters n_samples, n_features, rank * Update docstring according to @ogrisel 's comment
scikit-learn#21671) * ENH Impoving execution speed of plot_pca_vs_fa_model_selection.py by dividing by 2 parameters n_samples, n_features, rank * Update docstring according to @ogrisel 's comment * ENH Impoving execution speed of plot_pca_vs_fa_model_selection.py by dividing by 2 parameters n_samples, n_features, rank * Update docstring according to @ogrisel 's comment
scikit-learn#21671) * ENH Impoving execution speed of plot_pca_vs_fa_model_selection.py by dividing by 2 parameters n_samples, n_features, rank * Update docstring according to @ogrisel 's comment * ENH Impoving execution speed of plot_pca_vs_fa_model_selection.py by dividing by 2 parameters n_samples, n_features, rank * Update docstring according to @ogrisel 's comment
#21671) * ENH Impoving execution speed of plot_pca_vs_fa_model_selection.py by dividing by 2 parameters n_samples, n_features, rank * Update docstring according to @ogrisel 's comment * ENH Impoving execution speed of plot_pca_vs_fa_model_selection.py by dividing by 2 parameters n_samples, n_features, rank * Update docstring according to @ogrisel 's comment
…dividing by 2 parameters n_samples, n_features, rank
Reference Issues/PRs
References #21598
What does this implement/fix? Explain your changes.
Increase the execution speed of
scikit-learn/examples/decomposition/plot_pca_vs_fa_model_selection.py
by reducing some parameters.Time taken before modification (time taken measured with the
time
unix command):real 1m49,943s
user 4m6,328s
sys 2m52,386s
Time taken after modification:
real 0m14,672s
user 0m23,755s
sys 0m19,608s
Graphs before modification:
Graphs after modification:
Any other comments?