Skip to content

Commit 85f2747

Browse files
committed
Simplify constructors of SolverMCSVM_CS
1 parent c4ecb9e commit 85f2747

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

src/main/java/de/bwaldvogel/liblinear/SolverMCSVM_CS.java

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,22 +39,14 @@ class SolverMCSVM_CS {
3939
private final int nr_class;
4040
private final Problem prob;
4141

42-
public SolverMCSVM_CS(Problem prob, int nr_class, double[] C) {
43-
this(prob, nr_class, C, 0.1);
44-
}
45-
4642
public SolverMCSVM_CS(Problem prob, int nr_class, double[] C, double eps) {
47-
this(prob, nr_class, C, eps, 100000);
48-
}
49-
50-
public SolverMCSVM_CS(Problem prob, int nr_class, double[] weighted_C, double eps, int max_iter) {
5143
this.w_size = prob.n;
5244
this.l = prob.l;
5345
this.nr_class = nr_class;
5446
this.eps = eps;
55-
this.max_iter = max_iter;
47+
this.max_iter = 100000;
5648
this.prob = prob;
57-
this.C = weighted_C;
49+
this.C = C;
5850
this.B = new double[nr_class];
5951
this.G = new double[nr_class];
6052
}

0 commit comments

Comments
 (0)