src/main/java/weka/classifiers/RandomForestUtils.java
public static void setupBaggingClassifiers(IteratedSingleClassifierEnhancer bagging) throws Exception {
        bagging.m_Classifiers = Classifier.makeCopies(bagging.m_Classifier, bagging.m_NumIterations);
    }
public static void setupBaggingClassifiers(IteratedSingleClassifierEnhancer bagging) throws Exception {
        bagging.m_Classifiers = Classifier.makeCopies(bagging.m_Classifier, bagging.m_NumIterations);
    }
public static void setupBaggingClassifiers ( IteratedSingleClassifierEnhancer bagging ) throws Exception { bagging . m_Classifiers = Classifier . makeCopies ( bagging . m_Classifier , bagging . m_NumIterations ) ; }
Sets the classifiers in a bagging.

@param bagging The bag for which to set the classifiers.
@throws Exception If it fails to set the classifiers.
Sets the classifiers in a bagging .