src/main/java/Alergia.java
public void runAlergia(List<List<String>> data, ModelType type, double eps, OptimizeFor optim){
        // automatic epsilon computation
        if(eps == -1){
            int denominator = 0;
            for(List<String> d : data)
                denominator += d.size()- 1;
            eps = 10. / denominator;
        }

        compatibilityChecker = new HoeffdingCompatibilityChecker(eps);
        modelType = type;
        optimizeFor = optim;

        constructFPTA(data);
        runMainAlergiaLoop();
    }
/**
     * Runs the Alergia passive learning algorithm.
     * @param data input data
     * @param type model type
     * @param eps epsilon value for HoeffdingCompatibilityChecker
     * @param optim optimization method
     */
Runs the Alergia passive learning algorithm.
@param data input data
@param type model type
@param eps epsilon value for HoeffdingCompatibilityChecker
@param optim optimization method
Runs the Alergia passive learning algorithm . @param data input data @param type model type @param eps epsilon value for HoeffdingCompatibilityChecker @param optim optimization method
public void runAlergia(List<List<String>> data, ModelType type, double eps, OptimizeFor optim){
        if(eps == -1){
            int denominator = 0;
            for(List<String> d : data)
                denominator += d.size()- 1;
            eps = 10. / denominator;
        }
        compatibilityChecker = new HoeffdingCompatibilityChecker(eps);
        modelType = type;
        optimizeFor = optim;
        constructFPTA(data);
        runMainAlergiaLoop();
    }
public void runAlergia ( List < List < String > > data , ModelType type , double eps , OptimizeFor optim ) { if ( eps == - 1 ) { int denominator = 0 ; for ( List < String > d : data ) denominator += d . size ( ) - 1 ; eps = 10. / denominator ; } compatibilityChecker = new HoeffdingCompatibilityChecker ( eps ) ; modelType = type ; optimizeFor = optim ; constructFPTA ( data ) ; runMainAlergiaLoop ( ) ; }
Runs the Alergia passive learning algorithm.
Runs the Alergia passive learning algorithm .
// automatic epsilon computation