Skip to content

Commit f72e209

Browse files
committed
Port "Remove unused parameter"
Ported from cjlin1/liblinear@acb4fa2
1 parent 74d2d4d commit f72e209

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ public static ParameterSearchResult findParameters(Problem prob, Parameter param
158158
best_C = best_tmp.getBestC();
159159
best_score = best_tmp.getBestScore();
160160
} else if (param.getSolverType() == L2R_L2LOSS_SVR) {
161-
double max_p = calc_max_p(prob, param_tmp);
161+
double max_p = calc_max_p(prob);
162162
int num_p_steps = 20;
163163
double max_C = 1048576;
164164
best_score = Double.POSITIVE_INFINITY;
@@ -2344,7 +2344,7 @@ else if (param.getSolverType() == L2R_L2LOSS_SVR) {
23442344
return Math.pow(2, Math.floor(Math.log(min_C) / Math.log(2.0)));
23452345
}
23462346

2347-
private static double calc_max_p(Problem prob, Parameter param) {
2347+
private static double calc_max_p(Problem prob) {
23482348
int i;
23492349
double max_p = 0.0;
23502350
for (i = 0; i < prob.l; i++)

0 commit comments

Comments
 (0)