Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7059385
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T04:13:33+00:00 2026-05-28T04:13:33+00:00

There are N different classes that can be observed in my problem and my

  • 0

There are N different classes that can be observed in my problem and my task is to detect which ones occurred at time t (of T frames). I created actualLabels and predictedLabels binary matrices of size NxT. I observed the data and filled actualLabels by hand. actualLabels(n,t) is 1 if the instance at time t involves nth class, otherwise it is 0. This serves as my ground truth data. Then, I run my algorithm on the data and predict the observed classes. The labels are found automatically and stored in predictedLabels.

My question is that how can I compute a success value using these matrices? Is there a popular way to do this?

Example case: Let there be 4 classes and T=5. Let the data be

actualLabels    = 0 0 0 0 1
                  1 1 0 1 0
                  0 1 0 0 1
                  0 0 0 0 1

predictedLabels = 0 0 0 0 1
                  0 0 1 1 0
                  0 1 0 0 0
                  0 1 0 0 0

It seems to be not possible to compute a conventional confusion matrix from multi-class assignment. Instead I computed a distance in each pair. Since I have binary vectors to compare, Hamming distance seems to be nice (similar to edit distance). The problem now is that I can report the distances between predicted and actual label vectors, but not the success percentage.

A confusion matrix conveys lots of information. I would like to see a similar table that helps me to see where the mistakes occur a lot, the overall success, etc.

Details: I have some wav data and I want to do polyphonic pitch tracking. At each time bin, there can be any number of notes played together which forms the labels I want to predict.

Note: There are some metrics for multi-label classification in Wikipedia. I would be happy to learn any other metric or plot.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T04:13:34+00:00Added an answer on May 28, 2026 at 4:13 am

    To measure success, you need to define it. Choose an error tolerance you are willing to accept (perhaps zero), and count how many predictions (have Hamming distances that) fall below it to get your percentage.

    If your training matrices are sparse (mostly zeros), this may be a misleading measure since a model that always predicts the zero matrix will do well. Here you may want to look at precision and recall. These form a natural tradeoff and so it’s usually not possible to maximize both simultaneously. To combine them into a single metric, consider the f-score. Again, if your training data is not sparse, then the simple accuracy percentage is probably best.

    Finally, if you are measuring accuracy in order to select from amongst several possible models (called validation), then beware of reusing your training data for this step. Instead, partition your data into training data, and cross-validation data. The trouble is your models are already biased towards the data they were trained on; just because they do well on that doesn’t mean they will generalize to what they might see in a real application. See the cross-validation wiki entry for more details.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Are there different limitations as to how many connections (sockets) that can be created
There are a lot of different classes that can be used in various ways
I'm sure there are different approaches to this problem, and I can think of
I have a set of classes, each of which can open different types of
I have the following classes: Defect - represents a type of data that can
I frequently find myself writing utility classes that can be re-used throughout my projects.
I am creating a database of structures that can be of different types. Each
So I want a RootViewController that can handle a different view controller for each
Is there any better way to cache up some very large objects, that can
I have two different classes namely Car and Radio . How I can make

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.