-
-
Notifications
You must be signed in to change notification settings - Fork 26.2k
Description
These examples take quite a long time to run, and they make our documentation CI fail quite frequently due to timeout. It'd be nice to speed the up a little bit.
To contributors: if you want to work on an example, first have a look at the example, and if you think you're comfortable working on it and have found a potential way to speed-up execution time while preserving the educational message of the example, please mention which one you're working on in the comments below.
Please open a dedicated PR for each individual example you have a found fix for (with a new git branch branched off of main
for each example) to make the review faster.
Please focus on the longest running examples first (e.g. 30s or more). Examples that run in less than 15s are probably fine.
Please also keep in mind that we want to keep the example code as simple as possible for educational reasons while preserving the main points expressed in the text of the example valid and well illustrated by the result of the execution (plots or text outputs).
Finally, we expect that some examples cannot really be accelerated while preserving their educational value (integrity of the message and the simplicity of the code). In this case, we might decide to keep them as they are if they last less than 60s.
To maintainers: I'm running a script which automatically updates the following list with connected PRs and "done" checkboxes, no need to updated them manually.
Examples to Update
- ../examples/linear_model/plot_poisson_regression_non_normal_loss.py: 60.41 sec [MRG] ENH speed up plot_poisson_regression_non_normal_loss.py #21787
- ../examples/impute/plot_missing_values.py: 26.37 sec DOC Accelerate plot_missing_values.py example #21792
- ../examples/miscellaneous/plot_johnson_lindenstrauss_bound.py: 19.42 sec DOC Accelerate plot_johnson_lindenstrauss_bound.py example #21795
- ../examples/linear_model/plot_sgd_early_stopping.py: 91.61 sec ENH Speed up sgdclassifier example plot_sgd_early_stopping.py #21627
- ../examples/kernel_approximation/plot_scalable_poly_kernels.py: 42.52 sec MNT accelerate examples/kernel_approximation/plot_scalable_poly_kernels.py #22903
- ../examples/ensemble/plot_stack_predictors.py: 32.45 sec [MRG] Speed up plot_stack_predictors.py #21726
- ../examples/decomposition/plot_image_denoising.py: 29.42 sec Accelerate plot_image_denoising.py #21799
- ../examples/applications/plot_model_complexity_influence.py: 28.06 sec MNT Accelerate plot_model_complexity_influence.py modifying the SGDClassifier parameters #21963
- ../examples/impute/plot_iterative_imputer_variants_comparison.py: 27.26 sec MNT accelerate plot_iterative_imputer_variants_comparison.py #21748
- ../examples/inspection/plot_partial_dependence.py: 21.99 sec MAINT accelerate plot_partial_dependence.py #21768
- ../examples/neighbors/plot_nca_classification.py: 21.13 sec MNT speed up plot_nca_classification.py #21771
- ../examples/miscellaneous/plot_kernel_ridge_regression.py: 18.07 sec [MRG] Accelerate example plot_kernel_ridge_regression.py #21794 accelerate plot_kernel_ridge_regression.py #21791
- ../examples/linear_model/plot_sparse_logistic_regression_20newsgroups.py: 18.05 sec MNT Speed up plot_sparse_logistic_regression_20newsgroups.py #21773
- ../examples/neural_networks/plot_mnist_filters.py: 76.16 sec Changed layer number and learning rate init to make execution of plot_mnist_filters.py quicker #21647
- ../examples/ensemble/plot_gradient_boosting_quantile.py: 60.39 sec [DOC] Speed up
plot_gradient_boosting_quantile.py
example #21666 - ../examples/semi_supervised/plot_semi_supervised_newsgroups.py: 55.99 sec ENH Improve
plot_semi_supervised_newsgroups.py
example #21673 - ../examples/ensemble/plot_gradient_boosting_early_stopping.py: 51.35 sec MNT accelerate plot_gradient_boosting_early_stopping.py example #21609
- ../examples/manifold/plot_lle_digits.py: 44.89 sec MNT accelerate example plot_lle_digits.py #21736
- ../examples/svm/plot_svm_scale_c.py: 40.61 sec MNT speed up example plot_svm_scale_c.py #21625
- ../examples/cluster/plot_cluster_comparison.py: 39.24 sec Increase execution speed of plot_cluster_comparison.py #21624
- ../examples/compose/plot_digits_pipe.py: 37.29 sec MNT speed up example plot_digits_pipe.py #21728
- ../examples/model_selection/plot_multi_metric_evaluation.py: 32.78 sec Increased speed by adding cv and n_jobs params plot_multi_metric_evaluation.py #21626
- ../examples/ensemble/plot_gradient_boosting_regularization.py: 28.18 sec [MRG] accelerate plot_gradient_boosting_regularization.py example #21598 #21611
- ../examples/applications/plot_face_recognition.py: 24.58 sec MNT Speed up of plot_face_recognition.py example #21725
- ../examples/linear_model/plot_sgd_comparison.py: 24.05 sec DOC Increase execution speed of plot_sgd_comparison #21610
- ../examples/ensemble/plot_ensemble_oob.py: 20.69 sec MNT speed up plot_ensemble_oob.py #21730
- ../examples/feature_selection/plot_select_from_model_diabetes.py: 18.98 sec MNT Speedup example plot_select_from_model_diabetes.py #21738
- ../examples/ensemble/plot_gradient_boosting_categorical.py: 18.68 sec Speed up example on plot_gradient_boosting_categorical.py #21634
- ../examples/manifold/plot_compare_methods.py: 14.77 sec [MRG] Accelerate examples/manifold/plot_compare_methods.py #21635
- ../examples/model_selection/plot_successive_halving_iterations.py: 14.16 sec [MRG] accelerate plot_successive_halving_iterations.py example #21598 #21612
- ../examples/model_selection/plot_randomized_search.py: 253.02 sec [MRG] accelerate plot_randomized_search.py example #21598 #21637
- ../examples/model_selection/plot_permutation_tests_for_classification.py: 39.82 sec Improve speed plot_permutation_tests_for_classification.py #21649
- ../examples/cluster/plot_digits_linkage.py: 39.15 sec [MRG] Speed up plot_digits_linkage.py example #21598 #21678 MNT Accelerate_examples plot_digits_linkage.py #21737
- ../examples/neural_networks/plot_mlp_alpha.py: 34.27 sec ENH Accelerate plot_mlp_alpha.py #21648
- ../examples/preprocessing/plot_discretization_classification.py: 34.11 sec [MRG] Speed up plot_discretization_classification.py #21661
- ../examples/manifold/plot_t_sne_perplexity.py: 24.81 sec [MRG] Accelerate examples/manifold/plot_t_sne_perplexity.py #21636
- ../examples/model_selection/plot_validation_curve.py: 15.32 sec Changed n_jobs parameter to increase speed in plot_validation_curve.py #21638
- ../examples/ensemble/plot_adaboost_multiclass.py: 14.90 sec ENH Improve speed plot_adaboost_multiclass.py #21651
- ../examples/decomposition/plot_pca_vs_fa_model_selection.py: 12.14 sec ENH Impoving execution speed of plot_pca_vs_fa_model_selection.py by … #21671
- ../examples/cluster/plot_birch_vs_minibatchkmeans.py: 11.75 sec Increase speed plot_birch_vs_minibatchkmeans.py #21703
- ../examples/model_selection/plot_learning_curve.py: 10.50 sec Adapted the number of splits in shuffle split to increase speed in plot_learning_curve.py #21628