|
__init__(self,
weightFactor=1)
Constructor. |
|
|
|
similarity(self,
obj1,
obj2)
Primary abstract method where, given two objects, should return an
appropriate, non-negative, similarity score between the two. |
|
|
|
buildFeatureDictionary(self,
aString)
Create a dictionary keyed by all the k-mers (k-length substrings)
of aString and N-1 variants of aString, with values equal to the
number of times that k-mer appears in aString. |
|
|
|
weightCalc(self,
stringLen)
This function will determine the weight that a string of length
stringLen (int) should be given |
|
|
|
generateVariantStrings(self,
aString) |
|
|
Inherited from BaseKernel.BaseKernel :
dictionaryDotProduct ,
dictionaryEuclideanDistanceSquared ,
ensureListCapacity ,
getFeatureDictionary ,
normalizeFeatureDictionary ,
outputMatrix ,
prepareFeatureDictionaryList
|