Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
debakarr
GitHub Repository: debakarr/machinelearning
Path: blob/master/Part 10 - Model Selection And Boosting/XGBoost/__pycache__/xgboost.cpython-36.pyc
1339 views
3

�lX��@spddlZddljZddlZejd�Zej	dd�dd�fj
Zej	dd�dfj
Zddl
mZmZe�Zejedd�df�edd�df<e�Zejedd�df�edd�df<edgd�Zeje�j�Zedd�dd�fZdd	lmZeeed
dd�\ZZZZddlmZe�Zejee�eje�Z dd
l!m"Z"e"ee �Z#ddlm$Z$e$eeedd�Z%e%j&�e%j'�dS)�NzChurn_Modelling.csv��
)�LabelEncoder�
OneHotEncoder��)Zcategorical_features)�train_test_splitg�������?)Z	test_sizeZrandom_state)�
XGBClassifier)�confusion_matrix)�cross_val_score�
)Z	estimator�X�y�cv)(�numpy�np�matplotlib.pyplot�pyplot�plt�pandas�pdZread_csvZdatasetZiloc�valuesr
rZsklearn.preprocessingrrZlabelencoder_X_1Z
fit_transformZlabelencoder_X_2Z
onehotencoderZtoarrayZsklearn.model_selectionrZX_trainZX_testZy_trainZy_testZxgboostr	�
classifierZfitZpredictZy_predZsklearn.metricsr
�cmrZ
accuracies�mean�std�rr�x/home/baka/Project/Machine Learning A-Z/github/machinelearning/Part 10 - Model Selection And Boosting/XGBoost/xgboost.py�<module>s2

""