Skip to content

fixed bug with mean calculation in fisher linear discriminant#11

Open
steevelaquitaine wants to merge 1 commit intomasterfrom
getsvm-fix
Open

fixed bug with mean calculation in fisher linear discriminant#11
steevelaquitaine wants to merge 1 commit intomasterfrom
getsvm-fix

Conversation

@steevelaquitaine
Copy link
Collaborator

When a class only has two instances and is used in leave-one-out. Only
one instance (x1, 1 by N dimensional vector) is used for training
fisher linear discriminant. Fisher linear discriminant needs the mean
instance coordinates to calculate the classifier weights. The bug is
that mean(x1), the average coordinates (a scalar) is wrong in that
case, but mean(x1,1) the average instance coordinates is correct.

When a class only has two instances and is used in leave-one-out. Only
one instance (x1, 1 by N dimensional vector) is used for training
fisher linear discriminant. Fisher linear discriminant needs the mean
instance coordinates to calculate the classifier weights. The bug is
that mean(x1), the average coordinates (a scalar) is wrong in that
case, but mean(x1,1) the average instance coordinates is correct.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants