/** * RebuildCC - rebuild a classifier chain 'h_old' to have a new sequence 's_new'. */ protected CC rebuildCC(CC h_old, int s_new[], Instances D) throws Exception { // make a deep copy CC h = (CC)AbstractClassifier.makeCopy(h_old); // rebuild this chain h.rebuildClassifier(s_new,new Instances(D)); return h; }
/** * RebuildCC - rebuild a classifier chain 'h_old' to have a new sequence 's_new'. */ protected CC rebuildCC(CC h_old, int s_new[], Instances D) throws Exception { // make a deep copy CC h = (CC)AbstractClassifier.makeCopy(h_old); // rebuild this chain h.rebuildClassifier(s_new,new Instances(D)); return h; }