Python Forum
[split] Explain the python code in this definition
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[split] Explain the python code in this definition
#1
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
Reply
#2
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?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  class definition and problem with a method HerrAyas 2 268 Apr-01-2024, 03:34 PM
Last Post: HerrAyas
  mutable argument in function definition akbarza 1 492 Dec-15-2023, 02:00 PM
Last Post: deanhystad
  error occuring in definition a class akbarza 3 721 Nov-26-2023, 09:28 AM
Last Post: Yoriz
  determine parameter type in definition function akbarza 1 595 Aug-24-2023, 01:46 PM
Last Post: deanhystad
  I am new to python and Could someone please explain how this below code is working? kartheekdas 2 1,019 Dec-19-2022, 05:24 PM
Last Post: kartheekdas
  Explain the python code in this definition Led_Zeppelin 1 1,106 Oct-27-2022, 04:04 AM
Last Post: deanhystad
  Sudoku Solver in Python - Can someone explain this code ? qwemx 6 2,147 Jun-27-2022, 12:46 PM
Last Post: deanhystad
  meaning of -> syntax in function definition DrakeSoft 5 1,977 Apr-09-2022, 07:45 AM
Last Post: DrakeSoft
  Can someone explain this small snippet of code like I am a 5 year old? PythonNPC 3 1,251 Apr-08-2022, 05:54 PM
Last Post: deanhystad
  Could you explain each part of the code? Tsushida 2 1,522 Mar-20-2022, 08:19 AM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020