Created
May 24, 2019 10:21
-
-
Save spikar/8d44cf8b732f17cd6bf081942a40196a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
import numpy as np | |
from sklearn.ensemble import ExtraTreesClassifier | |
import matplotlib.pyplot as plt | |
data = pd.read_csv("D://Blogs//train.csv") | |
model = ExtraTreesClassifier() | |
model.fit(X,y) | |
print(model.feature_importances_) #use inbuilt class feature_importances of tree based classifiers |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment