Skip to content

Commit dce48f2

Browse files
committed
Removed useless files
Further, GEPMTRv2 was renamed to GEPMTR
1 parent 08db65d commit dce48f2

File tree

11 files changed

+741
-2633
lines changed

11 files changed

+741
-2633
lines changed

src/ensemble/EGEPMTR_B.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import java.util.Random;
33

44
import gep.GEPMTR;
5-
import gep.GEPMTRv2;
65
import mulan.classifier.InvalidDataException;
76
import mulan.classifier.MultiLabelLearnerBase;
87
import mulan.classifier.MultiLabelOutput;
@@ -31,7 +30,7 @@ public class EGEPMTR_B extends MultiLabelLearnerBase {
3130
/**
3231
* Stores the GEPMTR models.
3332
*/
34-
private GEPMTRv2[] ensemble;
33+
private GEPMTR[] ensemble;
3534

3635
/**
3736
* Three types of sampling.
@@ -88,7 +87,7 @@ public EGEPMTR_B(int h, int numberOfIndividuals, int numberGenerations, int numO
8887
this.sampling = sampling;
8988
this.numOfModels = numOfModels;
9089

91-
ensemble = new GEPMTRv2[numOfModels];
90+
ensemble = new GEPMTR[numOfModels];
9291
}
9392

9493
public EGEPMTR_B(int h, int numberOfIndividuals, int numberGenerations, int numOfModels)
@@ -101,7 +100,7 @@ public EGEPMTR_B(int h, int numberOfIndividuals, int numberGenerations, int numO
101100
this.sampling = SamplingMethod.WithReplacement;
102101
this.numOfModels = numOfModels;
103102

104-
ensemble = new GEPMTRv2[numOfModels];
103+
ensemble = new GEPMTR[numOfModels];
105104
}
106105

107106
public void setSeed(long seed){
@@ -143,7 +142,7 @@ protected void buildInternal(MultiLabelInstances mlTrainSet) throws Exception {
143142
sampledTrainingSet = mlTrainSet;
144143
}
145144

146-
ensemble[i] = new GEPMTRv2(h, numberOfIndividuals, numberOfGenerations, seed*i);
145+
ensemble[i] = new GEPMTR(h, numberOfIndividuals, numberOfGenerations, seed*i);
147146

148147
ensemble[i].build(sampledTrainingSet);
149148
}

src/ensemble/EGEPMTR_OTA.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import java.util.concurrent.Executors;
1010
import java.util.concurrent.TimeUnit;
1111

12-
import gep.GEPMTRv2;
12+
import gep.GEPMTR;
1313
import mulan.classifier.InvalidDataException;
1414
import mulan.classifier.MultiLabelLearnerBase;
1515
import mulan.classifier.MultiLabelOutput;
@@ -61,10 +61,10 @@ public class EGEPMTR_OTA extends MultiLabelLearnerBase {
6161
Random rand;
6262

6363
// Full targets regressor
64-
public GEPMTRv2 fullTargetsRegressor;
64+
public GEPMTR fullTargetsRegressor;
6565

6666
// Rest of the ensemble
67-
public GEPMTRv2[] ensemble;
67+
public GEPMTR[] ensemble;
6868

6969

7070
/**
@@ -99,12 +99,12 @@ protected void buildInternal(MultiLabelInstances trainingSet) throws Exception {
9999
numLabels = trainingSet.getNumLabels();
100100
numberOfModels = numLabels + 1;
101101

102-
fullTargetsRegressor = new GEPMTRv2(h, numberGenerations, numberOfIndividuals, seed);
102+
fullTargetsRegressor = new GEPMTR(h, numberGenerations, numberOfIndividuals, seed);
103103
fullTargetsRegressor.build(trainingSet);
104104

105-
ensemble = new GEPMTRv2[numLabels];
105+
ensemble = new GEPMTR[numLabels];
106106
for(int n=0; n<numLabels; n++){
107-
ensemble[n] = new GEPMTRv2(h, numberGenerations, numberOfIndividuals, seed*n);
107+
ensemble[n] = new GEPMTR(h, numberGenerations, numberOfIndividuals, seed*n);
108108
ensemble[n].build(transformInstances(trainingSet, n));
109109
}
110110
}

src/ensemble/EGEPMTR_S.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import java.util.concurrent.Executors;
1010
import java.util.concurrent.TimeUnit;
1111

12-
import gep.GEPMTRv2;
12+
import gep.GEPMTR;
1313
import mulan.classifier.InvalidDataException;
1414
import mulan.classifier.MultiLabelLearnerBase;
1515
import mulan.classifier.MultiLabelOutput;
@@ -67,10 +67,10 @@ public class EGEPMTR_S extends MultiLabelLearnerBase {
6767
int [] votesPerLabel;
6868

6969
// Full targets regressor
70-
public GEPMTRv2 fullTargetsRegressor;
70+
public GEPMTR fullTargetsRegressor;
7171

7272
// Rest of the ensemble
73-
public GEPMTRv2[] ensemble;
73+
public GEPMTR[] ensemble;
7474

7575

7676
/**
@@ -113,14 +113,14 @@ protected void buildInternal(MultiLabelInstances trainingSet) throws Exception {
113113

114114
subsetsMatrix = new byte[numberOfModels-1][numLabels];
115115

116-
fullTargetsRegressor = new GEPMTRv2(h, numberGenerations, numberOfIndividuals, seed);
116+
fullTargetsRegressor = new GEPMTR(h, numberGenerations, numberOfIndividuals, seed);
117117
fullTargetsRegressor.build(trainingSet);
118118

119119
for(int i=0; i<numLabels; i++){
120120
votesPerLabel[i] = 1;
121121
}
122122

123-
ensemble = new GEPMTRv2[numberOfModels-1];
123+
ensemble = new GEPMTR[numberOfModels-1];
124124
for(int n=0; n<(numberOfModels-1); n++){
125125
//Select random subset
126126
byte [] subset = selectRandomSubset(k, numLabels);
@@ -134,7 +134,7 @@ protected void buildInternal(MultiLabelInstances trainingSet) throws Exception {
134134
}
135135

136136
//Generate ensemble member
137-
ensemble[n] = new GEPMTRv2(h, numberGenerations, numberOfIndividuals, seed*n);
137+
ensemble[n] = new GEPMTR(h, numberGenerations, numberOfIndividuals, seed*n);
138138
ensemble[n].build(transformInstances(trainingSet, subsetsMatrix[n]));
139139
}
140140
}

src/ensemble/EnsembleOfGEPMTR.java

Lines changed: 0 additions & 182 deletions
This file was deleted.

0 commit comments

Comments
 (0)