Python Forum

Full Version: [split] Explain the python code in this definition
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have a vector of real numbers. They are the feature importance in a machine learning experiment. One importance for each sensor.

Obviously, they must add up to 1.

I know how to put the title to a plot and how to label the X and Y axis.

I just do now know how to write the command to plot these in a bar graph.

It does not matter to me which value is on the X axis and which value is on the Y axis.

I just want a visual plot, to select the subset of these values. Say the top 10 most important.

I can do that, but I want the visual display.

Any help appreciated.

Led_Zepplin

Any
What do you mean by this:
Quote:I just want a visual plot, to select the subset of these values. Say the top 10 most important.
Do you want to somehow use the plot as an interface for selecting values, or is the plot for display purposes only and you will provide a different mans for selecting a subset of the values?