emanuele / kaggle_pbr Goto Github PK
View Code? Open in Web Editor NEWMy best submission to the Kaggle competition "Predicting a Biological Response", ranked 17th over 711 teams.
My best submission to the Kaggle competition "Predicting a Biological Response", ranked 17th over 711 teams.
Dear Emanuele,
Thanks for your generosity for making public your code for blending. It is a very good help.
Loading data...
/usr/lib64/python2.7/site-packages/sklearn/cross_validation.py:525: Warning: The least populated class in y has only 1 members, which is too few. The minimum number of labels for any class cannot be less than n_folds=10.
% (min_labels, self.n_folds)), Warning)
Creating train and test sets for blending.
0 RandomForestClassifier(bootstrap=True, class_weight=None, criterion='gini',
max_depth=None, max_features='auto', max_leaf_nodes=None,
min_samples_leaf=1, min_samples_split=2,
min_weight_fraction_leaf=0.0, n_estimators=100, n_jobs=-1,
oob_score=False, random_state=None, verbose=0,
warm_start=False)
Fold 0
Traceback (most recent call last):
File "blend.py", line 77, in
clf.fit(X_train, y_train)
File "/usr/lib64/python2.7/site-packages/sklearn/ensemble/forest.py", line 211, in fit
X = check_array(X, dtype=DTYPE, accept_sparse="csc")
File "/usr/lib64/python2.7/site-packages/sklearn/utils/validation.py", line 392, in check_array
% (n_samples, shape_repr, ensure_min_samples))
Loading data...
/usr/lib64/python2.7/site-packages/sklearn/cross_validation.py:525: Warning: The least populated class in y has only 1 members, which is too few. The minimum number of labels for any class cannot be less than n_folds=10.
% (min_labels, self.n_folds)), Warning)
Creating train and test sets for blending.
0 RandomForestClassifier(bootstrap=True, class_weight=None, criterion='gini',
max_depth=None, max_features='auto', max_leaf_nodes=None,
min_samples_leaf=1, min_samples_split=2,
min_weight_fraction_leaf=0.0, n_estimators=100, n_jobs=-1,
oob_score=False, random_state=None, verbose=0,
warm_start=False)
Fold 0
Traceback (most recent call last):
File "blend.py", line 77, in
clf.fit(X_train, y_train)
File "/usr/lib64/python2.7/site-packages/sklearn/ensemble/forest.py", line 211, in fit
X = check_array(X, dtype=DTYPE, accept_sparse="csc")
File "/usr/lib64/python2.7/site-packages/sklearn/utils/validation.py", line 392, in check_array
% (n_samples, shape_repr, ensure_min_samples))
I am using scikit-learn version 0.17.dev
IN both the case, problem is with the forest.oy, validation.py.When I use random forest and GBM individually from R, I am able to make the predictions but when used through your code, I am failing.
Can you please suggest where is the problem.
Loading data...
Traceback (most recent call last):
File "blend.py", line 61, in
GradientBoostingClassifier(learn_rate=0.05, subsample=0.5, max_depth=6, n_estimators=50)]
I am using scikit-learn version "0.17.dev0"
Thanks
mradul
Can you please explain why not do CV on LR?
Is it possible to be overfit without CV?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.