-
See below:
``` python
from sklearn.datasets import make_classification
from sklearn.grid_search import GridSearchCV
from sklearn.tree import DecisionTreeClassifier
from sklearn.cross_validation impor…
ndawe updated
11 years ago
-
The two last lines of this sample break with scikit-learn dev:
```
import numpy as np
from sklearn.covariance import GraphLassoCV
from sklearn.cross_validation import KFold
from sklearn.datasets impo…
-
Full log:
http://nipy.bic.berkeley.edu/builders/sklearn-py2.6-wheezy-sparc/builds/2/steps/shell_3/logs/stdio
and also
http://nipy.bic.berkeley.edu/builders/sklearn-py2.x-sid-sparc/builds/2/steps/shel…
-
add random_state parameter to GridSearchCV to allow reproducibility.
of course it currently may be added via the cv parameter where applicable, but a shortcut would be nice
-
in k-fold cv, choosing n_folds=10 will train on 90% and test on 10% each time.
if you want the opposite behavior, i.e. train on 10% and test on 90%, you need to use LeavePOut with p=int(n*0.9).
i woul…
-
I am on scikit-learn version 0.13-git. Here is the problem: The lambda value entered by hand 0.3 for Lasso performs much better than 0.013 found by LassoCV which utilizes crossvalidation. I used the s…
-
I have already posted the issue in http://stackoverflow.com/questions/14936091/why-does-weka-randomforest-gives-me-a-different-result-than-scikit-randomforestc
So I just copied it here :)
I am getti…
-
When trying to run the nosetests I get the following error:
nosetests sklearn --exe
.............................................................../usr/local/lib/python2.7/dist-packages/sklearn/manif…
-
The consistency brigade just noticed that the number of repetitions / folds in `cross_validation`
as the following names:
- StratifiedKFold and KFold : `k`
- StratifiedShuffleSplit, ShuffleSplit: `n_i…
-
In the exercise in [section on Cross-validation estimators](http://scikit-learn.org/dev/tutorial/statistical_inference/model_selection.html#cross-validated-estimators) one has to find an optimal regul…