Comments (18)
3822.42 seconds in my machine. Mostly because of Searchlight.
In any case this makes it really painful to build the doc and to the user it
looks as if the example was broken (there is no output whatsoever for one
hour).
OK, the fact that there is no output needs to be changed.
That said, we need real examples on nisl, not only toys. This means that
we will have to cope with long-running doc builds (and yes searchlight is
slow and useless).
from nilearn.
3822.42 seconds in my machine. Mostly because of Searchlight.
On my machine, it takes 2 minutes (without any cache).
In any case this makes it really painful to build the doc and to the user it looks as if the example was broken (there is no output whatsoever for one hour).
Normally, the progression is shown like that:
Job #1, processed 190/1435 voxels(13.24%, 76 seconds remaining)
So there must be another problem...
from nilearn.
Normally, the progression is shown like that:
Job #1, processed 190/1435 voxels(13.24%, 76 seconds remaining)So there must be another problem...
It could be that the output is captured by the gen_rst.py. There is a
'Tee' object that is supposed to sort this out, but... Need investigation
from nilearn.
I'm in the process of changing the Searchlight class API (see PR #65). I'll have a look on this problem at the same time.
from nilearn.
It could be that the output is captured by the gen_rst.py. There is a 'Tee' object that is supposed to sort this out, but...
I remember adressing this problem by outputing the progress in the standard error. Maybe something has been broken since I've done that.
from nilearn.
The reason why there's no output in the console, is because verbose=1 should be passed to Searchlight, which is not the case in plot_simulated_data.py.
from nilearn.
On my machine, with one core only, the searchlight part takes 475s.
from nilearn.
I'm looking into this. It seems to depend on my Python version, maybe it's a problem on my side.
from nilearn.
After some discussion with Gael, adding estimator=svm.SVR(kernel="linear")
to the SearchLight initialization parameters partly solves the problem (this was a bug). The computation time is reduced, and the result is way better.
from nilearn.
thanks @pgervais I'll try it out
from nilearn.
After some discussion with Gael, adding estimator=svm.SVR(kernel="linear") to the SearchLight initialization parameters partly solves the problem (this was a bug). The computation time is reduced, and the result is way better.
Estimated computation time on my machine is ~50 000 seconds.
from nilearn.
Estimated computation time on my machine is ~50 000 seconds.
Are you sure that you are talking about the plot_simulated_data example?
from nilearn.
Are you sure that you are talking about the plot_simulated_data example?
No, I thought that we were talking about plot_haxby_searchlight
...
from nilearn.
The bug is only in plot_simulated_data.py, not plot_haxby_searchlight.py, because one is a regression, and the other a classification task.
from nilearn.
Are you sure that you are talking about the plot_simulated_data example?
No, I thought that we were talking about plot_haxby_searchlight...
So the take home message is that if you put an SVC in a regression pb, it
is very slow, and the same for an SVR in a classification pb. I believe
that it is because of the low explained variance, that makes the
optimization pb hard (probably because of the large number of support
vectors).
from nilearn.
The bug is only in plot_simulated_data.py, not plot_haxby_searchlight.py, because one is a regression, and the other a classification task.
That's what was puzzling me ;)
from nilearn.
THANKS!! works much better now, it went down to 159s which is really reasonable. I promise to have the buildbot working soon.
from nilearn.
THANKS!! works much better now, it went down to 159s which is really
reasonable.
Well, thanks for pointing it out. It was useful.
I promise to have the buildbot working soon.
Great!
G
from nilearn.
Related Issues (20)
- [BUG]: missing values in `Decoder.cv_params_` when `param_grid` is a list of dicts with different keys HOT 1
- [DOC] improve documentation of run_glm HOT 2
- cancel concurrent CI workflows ? HOT 9
- Update examples to use "zscore_sample" `standardize` strategy HOT 2
- rename / refactor plotting specific fixture in conftest.py
- improve handling of temporary files during testing HOT 3
- [DOC] Update and improve examples in nilearn documentation HOT 21
- `'slice_time_ref' not provided` warning, even when provided HOT 1
- [DOC] improve instructions in "Default Mode Network extraction of ADHD dataset" example HOT 2
- [ENH] better error when mask with unmatched affine/shape occur in `intersect_masks` HOT 2
- [BUG] first_level_from_bids confused by "res" filter when looking for confounds.tsv HOT 5
- Failure in pre-release dependencies CI job HOT 1
- test error for order of printed argument with python 3.11 HOT 7
- Update changelog for PRs related to PEP8 compliance
- add make recipe to run all linting tool at once
- Failure on azure: spec 2.7 for architecture x64 did not match any version HOT 6
- Add `LassoCV` as an additional estimator for `Decoder` objects
- Remove mention of license in "header" of *.py file
- [DOC] Inconsistent description of return keys for `fetch_atlas_surf_destrieux` HOT 2
- [ENH] Node labels in view_connectome HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nilearn.