I have a dataframe df which has spotify data features. When I run the model using RandomForestClassifier I get the feature important plot but when I run RandomForestRegressor I get only a bar against the popularity. Can someone help?
from yellowbrick.model_selection import FeatureImportances
# Load the classification data set
X = df[features]
y = df.popularity
train_X, test_X, train_y, test_y = train_test_split(X,y, test_size= 0.1, random_state=38)
model = RandomForestClassifier(n_estimators=10)
# model = RandomForestRegressor(n_estimators=10)
viz = FeatureImportances(model)
viz.fit(X, y)
viz.show()