Skip to content

MATLAB code for simultaneous classification of a set objects when there are label restrictions

Notifications You must be signed in to change notification settings

LucyKuncheva/Restricted-Set-Classification

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Restricted-Set-Classification

MATLAB code for simultaneous classification of a set objects when there are label restrictions

What is restricted set classification?

More can be found here

Have you ever wondered how a team filming a documentary about a group of wild animals recognise each individual animal in the group? The animals are so alike that it is nearly impossible to tell them apart! An automatic classifier will likely make a lot of mistakes. But if you try to recognise the animals from a single photo, you have extra information! There can only be one of each in the group. In other words, if your classifier returns two Georges, you know that it is wrong. Can we improve the accuracy by taking the extra information on board?

Given is a set of objects S, each coming from one of c classes. Each object has been classified already, and the classifier returns estimates of the posterior probabilities P ( object | class 1 ), ... P ( object | class c ) . The MATLAB code calculates a label for each individual object under the restriction that there are at most k(i) objects from class i.

Code

  • rsc.m The restricted set classification function. Four methods are implemented to create a match between objects and labels:

    • (1) The Hungarian algorithm,
    • (2) A greedy algorithm,
    • (3) Sampling from the distribution of the posterior probabilities, and
    • (4) The Naive algorithm where the classifier labels each point based on the posterior probability and regardless of the restrictions.
  • assignment_hungarian A function that implement the Hungarian algorithm (Written by Alex Melin, 30 June 2006). This function is used within rsc.m.

  • TestRSC.m A script that tests rsc.m on an example from the paper: Kuncheva L. I., J. J. Rodríguez and A. S. Jackson, Restricted Set Classification: Who is there?, Pattern Recognition, 63, 2017, 158–170. p. 161 [pdf here]


About

MATLAB code for simultaneous classification of a set objects when there are label restrictions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages