Class Winnow

    • Constructor Detail

      • Winnow

        public Winnow​(Pipe dataPipe,
                      double[][] newWeights,
                      double theta,
                      int idim,
                      int jdim)
        Passes along data pipe and weights from WinnowTrainer
        dataPipe - needed for dictionary, labels, feature vectors, etc
        newWeights - weights calculated during training phase
        theta - value used for threshold
        idim - i dimension of weights array
        jdim - j dimension of weights array
    • Method Detail

      • classify

        public Classification classify​(Instance instance)
        Classifies an instance using Winnow's weights
        Specified by:
        classify in class Classifier
        instance - an instance to be classified
        an object containing the classifier's guess