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
  [split] another problem with code blakeusherremix68 0 394 Dec-23-2024, 11:36 PM
Last Post: blakeusherremix68
  [split] Code help emma1423 1 592 Dec-13-2024, 02:00 PM
Last Post: perfringo
  Can you explain the strings in Python ebn852_pan 3 1,136 May-19-2024, 08:36 AM
Last Post: Pedroski55
  class definition and problem with a method HerrAyas 2 1,424 Apr-01-2024, 03:34 PM
Last Post: HerrAyas
  mutable argument in function definition akbarza 1 1,185 Dec-15-2023, 02:00 PM
Last Post: deanhystad
  error occuring in definition a class akbarza 3 2,181 Nov-26-2023, 09:28 AM
Last Post: Yoriz
  determine parameter type in definition function akbarza 1 1,210 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,762 Dec-19-2022, 05:24 PM
Last Post: kartheekdas
  Explain the python code in this definition Led_Zeppelin 1 1,680 Oct-27-2022, 04:04 AM
Last Post: deanhystad
  Sudoku Solver in Python - Can someone explain this code ? qwemx 6 3,962 Jun-27-2022, 12:46 PM
Last Post: deanhystad

Forum Jump:

User Panel Messages

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