A dummy model, with 3 strategies :
- stratified;
- most_frequent;
- uniform.
The doc is here : http://scikit-learn.org/dev/modules/generated/sklearn.dummy.DummyClassifier.html#sklearn.dummy.DummyClassifier
$ python DummyClassifier.py
Opening the file 'train.csv' and 'test.csv'...
Find the best value for the meta parameter strategy, with 100 run for each...
Searching in the range : ['stratified', 'most_frequent', 'uniform']...
Using the first part (75.00%, 668 passengers) of the training dataset as training,
and the second part (25.00%, 223 passengers) as testing !
For the strategy stratified, learning from the first part of the dataset...
... this value of strategy seems to have a (mean) quality = 52.34%...
For the strategy most_frequent, learning from the first part of the dataset...
... this value of strategy seems to have a (mean) quality = 60.03%...
For the strategy uniform, learning from the first part of the dataset...
... this value of strategy seems to have a (mean) quality = 50.15%...
With trying each of the following strategy (['stratified', 'most_frequent', 'uniform']), each 100 times, the best one is most_frequent. (for a quality = 60.03%)
Creating the Dummy Classifier classifier with best meta parameters.
Learning...
Proportion of perfect fitting for the training dataset = 61.62%
Predicting for the testing dataset
Prediction: wrote in the file csv/Dummy_best.csv.
La soumission du résultat à Kaggle donne ??.??% (pas encore fait).
Espace de recherche
Nombre de tests utilisés pour méta-apprendre
Proportion d’individus utilisés pour méta-apprendre.
La valeur optimale trouvée pour le paramètre strategy
The score for this classifier.