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

Make examples faster #76

Open
rth opened this issue Nov 7, 2020 · 2 comments
Open

Make examples faster #76

rth opened this issue Nov 7, 2020 · 2 comments
Milestone

Comments

@rth
Copy link
Contributor

rth commented Nov 7, 2020

Currently some examples takes quite a while to run, which is problematic as we are running them with sphinx-gallery (documentation CI job) in each commit.

In particular,

  • examples/plot_robust_classification_diabete.py : 40s
  • examples/plot_robust_regression_california_houses.py: 1min
  • examples/plot_clustering.py: 27s

on a recent CPU. In Circle CI building teh documentation takes 18min, mostly due to examples.

It would be good to make them faster, for instance by subsampling the dataset used in the example.

cc @TimotheeMathieu

@TimotheeMathieu
Copy link
Contributor

Ok I'm on it.
A major problem is that I did not implement a stopping criterion in the robust algorithms hence the algo is unnecessarily long. I will think about which criterion to implement and maybe look at examples in scikit learn (i.e. stopping criterion for SGD in sklearn).

@TimotheeMathieu
Copy link
Contributor

Now, Circle CI takes less than 4min. It seems ok to me.

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

No branches or pull requests

2 participants