MATLAB Code for the LDA based One-Shot Similarity Measure
Below please find MATLAB code for computing the One-Shot Similarity score using
LDA as an underlying classifier. Please report any bugs or problems to
hassner@openu.ac.il.
Type "help oss_lda_sA_from_xsn" or "help oss_lda_score" for more information on
each of these functions.
A typical usage would look something like this:
>> sA = oss_lda_sA_from_xsn(XSN);
>> Score1 = oss_lda_score(x1,x2,sA);
>> Score2 = oss_lda_score(x2,x1,sA);
>> Score = (Score1 + Score2)./2;
Score is then the symmetric One-Shot Similarity of the two vectors x1 and x2.
Downloads:
oss_lda_sA_from_xsn.m
oss_lda_score.m
Copyright and disclaimer:
Copyright 2009, Lior Wolf, Tal Hassner, and Yaniv Taigman
The SOFTWARE ("oss_lda_sA_from_xsn.m" and \ or "oss_lda_score.m") is provided
"as is", without any guarantee made as to its suitability or fitness for any particular
use. It may contain bugs, so use of this tool is at your own risk. We take
no responsibility for any damage that may unintentionally be caused through its
use.