1. Learn
  2. /
  3. Courses
  4. /
  5. Explainable AI in Python

Connected

Exercise

Permutation importance for MLPClassifier

Your task is to use permutation importance to identify which features are most impactful in predicting heart disease with an MLPClassifier.

X containing the features and y containing the labels have been pre-loaded for you. matplotlib.pyplot has been imported as plt.

Instructions

100 XP
  • Compute the permutation importance with 10 repeats using a random_state of 1.
  • Plot feature importances with a bar plot.