morphomapping.MM.plot_feature_importance

morphomapping.MM.plot_feature_importance#

MM.plot_feature_importance(features, path, base_width=10, base_height=6)#

Plots the ten most important features and returns a pyplot. Needs the ten top features and their importances as parameters.

Parameters:
  • features – DataFrame returned by function feature_importance

  • path (str) – path to dict where plot should be saved

  • base_width (int) – width of plot

  • base_height (int) – height of plot

Return type:

Show plot