| |
Methods defined here:
- __init__(self, data, numGenes, classSizes, filter)
- Initializes the object.
data is an IntVector containing the microarray data and should be
generated by the dataPackager class. classSizes is an intvector
containing the size of the 2 classes, class 1 and class 2 respectively.
- addUnclassified(self, unclassifiedVector)
- Stores unclassified vector as self.unclassified_data_vector
- classify(self)
- Returns a list of classifications based on the maxscores.
0 means the first class, 1 means the second class.
- compute_ptable(self)
- Stores the counts for the various orderings(in the case of multiple orderings) in their respective class
generates self.ptable which is ordered:
[
ordering1[
class1 [p(1,2,3), p(1,3,2), p(2,1,3), p(2,3,1), p(3,1,2), p(3,2,1)],
class2 [p(1,2,3), p(1,3,2), p(2,1,3), p(2,3,1), p(3,1,2), p(3,2,1)]
]
ordering2 [
....
],
...
]
- convertToDataIndex(self, sample_index, gene_index)
- This translates the sample_index and gene index into a self.data index
- crossValidate(self, k=10)
- Performs k-fold cross validation (k is an integer [2,samplesize])
Returns the Matthews correlation coefficient.(-1.0, 1.0)
- distance(self, v1, v2)
- Returns the square of the euclidian distance between v1 and v2
- getMaxScores(self)
- Returns a list of the top scoring triplets indices
- ptable_entry(self, s1, s2, s3)
- Builds a list that contains the index of matching orderings.
If there is an equality then the list could be longer than 1.
- train(self)
- Runs the c code tst algorithm.
fills the self.maxScore1,2,3 with the triplets.
May have multiple so self.maxScore1[0] is the first element of the
first triplet, self.maxScore1[1] is the first element of the second
triplet, etc.
|