I have started Data Science on my own and was looking at evaluation metrics. I came across this measure of Accuracy with the equation $$ \frac{1}{p}\sum_{i=1}^{p}\frac{\vert Y_i \cap Z_i \vert}{\vert Y_i \cup Z_i \vert}$$. I particularly want to know if $Y= \{0,0,1,1,0\}$ and $Z=\{1,0,1,0,0\}$. For the second case where the elements in the set are not equal for example if $Y= \{0,0,1,1,0\}$ and $Z=\{1,0,1\}$, then what would be $ Y_i \cap Z_i$ , $ Y_i \cup Z_i$ , $\vert Y_i \cap Z_i \vert$ and $\vert Y_i \cup Z_i \vert$. I know the set operations of union and intersection but here i am confused in the context of Multi Label classification. Thanks
2025-01-13 02:16:56.1736734616
Multi Label Classification: Union of two Binary Sets
108 Views Asked by Aslan https://math.techqa.club/user/aslan/detail At
1
There are 1 best solutions below
Related Questions in DATA-ANALYSIS
- Is the sum of all cross-correlation samples representative of target existence likelihood?
- How to infer information from a cumulative frequency graph, and what it means practically
- Extrapolate data points from a series of averages
- Distance between unequal-dimension vectors (and data)?
- Runge-Kutta (Fehlberg) with multiple time dependant variables and adaptive time steps
- Mean of values ${1 \over m} {\sum_{i=1}^m {s_i \over t_i}}$ vs. Value of sums ${\sum_{i=1}^m {s_i} \over \sum_{i=1}^m {t_i}}$, What is the relation?
- Create a modal line or benchmark
- What is the order of this algorithm?
- Penalty function of multi-peak fit?
- What would be a good algorithm to determine the busiest servers by cpu usage
Related Questions in DATA-MINING
- Distance between unequal-dimension vectors (and data)?
- Find repeated attribute patterns in collection of objects
- why use a small learning rate in gradient descent
- What is the meaning of the y-axis on graph that show's "difference"?
- How to calculate conditional probability for real data
- Number of clusters in $k$-means clustering for higher-dimensional data.
- Optimization of English Braille: Using the fewest dots
- What is KL-Divergence? Why Do I need it? How do I use it?
- Expected Optimism 0-1 Loss with 0-1 Response
- Multi Label Classification: Union of two Binary Sets
Trending Questions
- Induction on the number of equations
- How to convince a math teacher of this simple and obvious fact?
- Refuting the Anti-Cantor Cranks
- Find $E[XY|Y+Z=1 ]$
- Determine the adjoint of $\tilde Q(x)$ for $\tilde Q(x)u:=(Qu)(x)$ where $Q:U→L^2(Ω,ℝ^d$ is a Hilbert-Schmidt operator and $U$ is a Hilbert space
- Why does this innovative method of subtraction from a third grader always work?
- What are the Implications of having VΩ as a model for a theory?
- How do we know that the number $1$ is not equal to the number $-1$?
- Defining a Galois Field based on primitive element versus polynomial?
- Is computer science a branch of mathematics?
- Can't find the relationship between two columns of numbers. Please Help
- Is there a bijection of $\mathbb{R}^n$ with itself such that the forward map is connected but the inverse is not?
- Identification of a quadrilateral as a trapezoid, rectangle, or square
- A community project: prove (or disprove) that $\sum_{n\geq 1}\frac{\sin(2^n)}{n}$ is convergent
- Alternative way of expressing a quantied statement with "Some"
Popular # Hahtags
real-analysis
calculus
linear-algebra
probability
abstract-algebra
integration
sequences-and-series
combinatorics
general-topology
matrices
functional-analysis
complex-analysis
geometry
group-theory
algebra-precalculus
probability-theory
ordinary-differential-equations
limits
analysis
number-theory
measure-theory
elementary-number-theory
statistics
multivariable-calculus
functions
derivatives
discrete-mathematics
differential-geometry
inequality
trigonometry
Popular Questions
- How many squares actually ARE in this picture? Is this a trick question with no right answer?
- What is the difference between independent and mutually exclusive events?
- Visually stunning math concepts which are easy to explain
- taylor series of $\ln(1+x)$?
- Determine if vectors are linearly independent
- What does it mean to have a determinant equal to zero?
- How to find mean and median from histogram
- Difference between "≈", "≃", and "≅"
- Easy way of memorizing values of sine, cosine, and tangent
- How to calculate the intersection of two planes?
- What does "∈" mean?
- If you roll a fair six sided die twice, what's the probability that you get the same number both times?
- Probability of getting exactly 2 heads in 3 coins tossed with order not important?
- Fourier transform for dummies
- Limit of $(1+ x/n)^n$ when $n$ tends to infinity
It seems to be a confusion of two common representations for a classification in multi-label classification.
Your example seems to deal with five labels (also called classes), so lets name labels $A,B,C,D$ and $E$. Lets say that a particular object $x$ is classified with only labels $C$ and $D$. The two common representations for a classification are:
You provided the Example-Based Accuracy equation in the set representation, which is defined as: $$ \frac{|Y\cap Z|}{|Y\cup Z|}, $$ except that your definition makes an average over $p$ samples. But your $Y$ and $Z$ are represented in the one-hot representation, which is incompatible with this accuracy definition.
There is also a definition for Example-Based Accuracy in the one-hot representation: $$ \frac{\sum_{i=1}^n Y_i\cdot Z_i}{\sum_{i=1}^n Y_i + \sum_{i=1}^n Z_i - \sum_{i=1}^n Y_i\cdot Z_i}, $$ where $n$ is the number of possible labels (5 in your example).