// Path: src/main/java/RFLogger.java
// public class RFLogger {
// 
//     private String fileName = "./classes/log.properties";
//     private static java.util.logging.Logger logger = null;
//     
//     private static ConsoleHandler consoleHandler;
//     
//     private static SimpleFormatter simpleFormatter;
// 
//     private RFLogger() {
// 
//         // Create the logger.
//         logger = java.util.logging.Logger.getLogger(RFLogger.class.getName());
// 
//         try {
//             java.util.logging.LogManager.getLogManager().readConfiguration(new FileInputStream(fileName));
// 
//         }
//         catch (IOException e) {
//             System.out.println("Unable to configure logging for " + fileName);
// 
//             e.printStackTrace();
// 
//             System.out.println("Resorting to console handler.");
// 
//         
//             //Create consoleHandler.
//             consoleHandler = new ConsoleHandler();
//         
//             //Assigning handler to logger object.
//             logger.addHandler(consoleHandler);
//         
//             //Setting levels to handler and logger.
//             consoleHandler.setLevel(Level.INFO);
//             logger.setLevel(Level.ALL);
//         
//             // Creating SimpleFormatter for human readable format.
//             simpleFormatter = new SimpleFormatter();
// 
//             // Setting formatter to all handlers.
//             consoleHandler.setFormatter(simpleFormatter);
// 
//             // Remove parent handlers in order to respect our formatting only.
//             // logger.setUseParentHandlers(false);
//         }
//     }
//     
//     private static java.util.logging.Logger getLogger() {
//         if(logger == null){
//             new RFLogger();
//         }
//         return logger;
//     }
//     
//     public static void log(Level level, String msg, Throwable thrown){
//         getLogger().log(level, msg, thrown);
//     }
//     
//     public static void log(Level level, String msg){
//         getLogger().log(level, msg);
//     }
// 
// }


import com.kogalur.randomforest.RFLogger;
import java.util.logging.Level;
import java.util.Random;
package com.kogalur.randomforest;




class GenericModelArg {

    protected Random generator;
    protected int trace;
    
    protected int seed;

    protected int        rfCores;

    protected int        blockSize;
    protected int        ntree;
    protected int[]      getTree;
    protected Quantile   quantile;

    protected String mode;

    private EnsembleArg ensembleArg;
    
    
    /** 
    * Sets the seed for the random number generator used by the
    * algorithm.  This must be a negative number.  The seed is a very
    * important parameter if repeatability of the model generated is
    * required.  Generally speaking, growing a model using the same
    * data set, the same model paramaters, and the same seed will
    * result in identical models. When large amounts of missing data
    * are involved, there can be slight variations due to Monte Carlo
    * effects. If the parameter is not set by the user, it can always
    * be recovered with {@link #get_seed}.
    */
    public void set_seed(int seed) {
        this.seed = seed;
        
        if (seed >= 0) {
            if (seed > 0) {
// Path: src/main/java/RFLogger.java
// public class RFLogger {
// 
//     private String fileName = "./classes/log.properties";
//     private static java.util.logging.Logger logger = null;
//     
//     private static ConsoleHandler consoleHandler;
//     
//     private static SimpleFormatter simpleFormatter;
// 
//     private RFLogger() {
// 
//         // Create the logger.
//         logger = java.util.logging.Logger.getLogger(RFLogger.class.getName());
// 
//         try {
//             java.util.logging.LogManager.getLogManager().readConfiguration(new FileInputStream(fileName));
// 
//         }
//         catch (IOException e) {
//             System.out.println("Unable to configure logging for " + fileName);
// 
//             e.printStackTrace();
// 
//             System.out.println("Resorting to console handler.");
// 
//         
//             //Create consoleHandler.
//             consoleHandler = new ConsoleHandler();
//         
//             //Assigning handler to logger object.
//             logger.addHandler(consoleHandler);
//         
//             //Setting levels to handler and logger.
//             consoleHandler.setLevel(Level.INFO);
//             logger.setLevel(Level.ALL);
//         
//             // Creating SimpleFormatter for human readable format.
//             simpleFormatter = new SimpleFormatter();
// 
//             // Setting formatter to all handlers.
//             consoleHandler.setFormatter(simpleFormatter);
// 
//             // Remove parent handlers in order to respect our formatting only.
//             // logger.setUseParentHandlers(false);
//         }
//     }
//     
//     private static java.util.logging.Logger getLogger() {
//         if(logger == null){
//             new RFLogger();
//         }
//         return logger;
//     }
//     
//     public static void log(Level level, String msg, Throwable thrown){
//         getLogger().log(level, msg, thrown);
//     }
//     
//     public static void log(Level level, String msg){
//         getLogger().log(level, msg);
//     }
// 
// }


// Path: src/main/java/GenericModelArg.java
import com.kogalur.randomforest.RFLogger;
import java.util.logging.Level;
import java.util.Random;

package com.kogalur.randomforest;




class GenericModelArg {

    protected Random generator;
    protected int trace;
    
    protected int seed;

    protected int        rfCores;

    protected int        blockSize;
    protected int        ntree;
    protected int[]      getTree;
    protected Quantile   quantile;

    protected String mode;

    private EnsembleArg ensembleArg;
    
    
    /** 
    * Sets the seed for the random number generator used by the
    * algorithm.  This must be a negative number.  The seed is a very
    * important parameter if repeatability of the model generated is
    * required.  Generally speaking, growing a model using the same
    * data set, the same model paramaters, and the same seed will
    * result in identical models. When large amounts of missing data
    * are involved, there can be slight variations due to Monte Carlo
    * effects. If the parameter is not set by the user, it can always
    * be recovered with {@link #get_seed}.
    */
    public void set_seed(int seed) {
        this.seed = seed;
        
        if (seed >= 0) {
            if (seed > 0) {
                RFLogger.log(Level.WARNING, "Invalid value for parameter seed:  " + seed);                