pima indian diabetes dataset solutions

Solutions on MaxInterview for pima indian diabetes dataset solutions by the best coders in the world

showing results for - "pima indian diabetes dataset solutions"
Annabelle
22 Sep 2017
1coeff = list(diabetesCheck.coef_[0])labels = list(trainData.columns)features = pd.DataFrame()features['Features'] = labelsfeatures['importance'] = coefffeatures.sort_values(by=['importance'], ascending=True, inplace=True)features['positive'] = features['importance'] > 0features.set_index('Features', inplace=True)features.importance.plot(kind='barh', figsize=(11, 6),color = features.positive.map({True: 'blue', False: 'red'}))plt.xlabel('Importance')
Kiara
08 Mar 2020
1import pandas as pdimport numpy as npimport seaborn as snsimport matplotlib.pyplot as plt% matplotlib inlinefrom sklearn.linear_model import LogisticRegressionfrom sklearn.externals import joblib