Skip to content

Commit

Permalink
make sure the result is on-par with liblinear ones
Browse files Browse the repository at this point in the history
  • Loading branch information
liuliu committed Nov 28, 2014
1 parent 8db7071 commit 7ede8e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions bin/scdcreate.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,6 @@ int main(int argc, char** argv)
.base = ccv_size(12, 12),
.range_through = 4,
.step_through = 4,
.active_set = 640,
.wide_set = 1920,
},
.stop_criteria = {
.hit_rate = 0.9925,
Expand All @@ -125,7 +123,7 @@ int main(int argc, char** argv)
.light_feature = 4,
},
.weight_trimming = 0.99,
.C = 0.005,
.C = 0.0005,
.grayscale = 1,
};
ccv_scd_classifier_cascade_t* cascade = ccv_scd_classifier_cascade_new(posfiles, hard_mine, negative_count, working_dir, params);
Expand Down
2 changes: 1 addition & 1 deletion lib/ccv_scd.c
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ static void _ccv_scd_feature_supervised_train(gsl_rng* rng, ccv_array_t* feature
int j;
for (j = 0; j < 33; j++)
x->data.f32[j] = gsl_rng_uniform_pos(rng) * 2 - 1.0;
ccv_minimize(x, 5, 1.0, _ccv_scd_feature_logistic_loss, ccv_minimize_default_params, &context);
ccv_minimize(x, 10, 1.0, _ccv_scd_feature_logistic_loss, ccv_minimize_default_params, &context);
for (j = 0; j < 32; j++)
feature->w[j] = x->data.f32[j];
feature->bias = x->data.f32[32];
Expand Down

0 comments on commit 7ede8e0

Please sign in to comment.