accuracy of decision tree is 0.781155015198
precision recall f1-score support
died 0.91 0.78 0.84 236
suivived 0.58 0.80 0.67 93
avg / total 0.81 0.78 0.79 329
accuracy of random forest classifier is 0.784194528875
precision recall f1-score support
died 0.91 0.78 0.84 235
suivived 0.59 0.80 0.68 94
avg / total 0.82 0.78 0.79 329
accuracy of gradient boosting decision tree is 0.790273556231
precision recall f1-score support
died 0.92 0.78 0.84 239
suivived 0.58 0.82 0.68 90
avg / total 0.83 0.79 0.80 329
/Users/ifeng/anaconda2/lib/python2.7/site-packages/pandas/core/generic.py:3295: SettingWithCopyWarning:
A value is trying to be set on a copy of a slice from a DataFrame
See the caveats in the documentation: http://pandas.pydata.org/pandas-docs/stable/indexing.html#indexing-view-versus-copy
self._update_inplace(new_data)
/Users/ifeng/anaconda2/lib/python2.7/site-packages/sklearn/cross_validation.py:44: DeprecationWarning: This module was deprecated in version 0.18 in favor of the model_selection module into which all the refactored classes and functions are moved. Also note that the interface of the new CV iterators are different from that of this module. This module will be removed in 0.20.
"This module will be removed in 0.20.", DeprecationWarning)