Navigation Menu

Skip to content

hgshrs/cross_validation_with_ipython_cluslter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

A library for cross_val_score() and GridSearchCV() (in scikit-learn) with IPython cluster.

For the usage, see cross_validation.py.

For the details of IPython cluster, you can refer http://ipython.org/ipython-doc/dev/parallel/ and http://qiita.com/chokkan/items/750cc12fb19314636eb7 (in Japanese).

In [1]: run cross_validation
#### Cross validation (sklearn.cross_validation.LeaveOneOut(n=150)) ####
## without ipython_cluster (n_jobs=-1)
	CV socres: 0.980000
	elapsed_time: 0.338331 sec
## with ipython_cluster
	CV socres: 0.980000
	elapsed_time: 0.116183 sec

#### Cross validation (sklearn.cross_validation.LeaveOneOut(n=150)) with grid_search (sklearn.cross_validation.LeaveOneOut(n=149)) ####
## without ipython_cluster (n_jobs=-1)
	CV socres: 0.980000
	elapsed_time: 5.717641 sec
## with ipython_cluster
	CV socres: 0.980000
	elapsed_time: 2.754487 sec
## with ipython_cluster in grid_search
	CV socres: 0.980000
	elapsed_time: 5.590090 sec
## with ipython_cluster in nested cv
	CV socres: 0.980000
	elapsed_time: 5.570679 sec

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages