No bug - just a misuse of the kernel function in two algorithms during comparison

This commit is contained in:
Dongryeol Lee
2008-02-17 02:47:40 +00:00
parent 56a601f145
commit 2e9e51b9c8
2 changed files with 3 additions and 3 deletions
@@ -171,6 +171,7 @@ class DenseLpr {
la::AddOverwrite(left_stat.sum_data_outer_products_,
right_stat.sum_data_outer_products_,
&sum_data_outer_products_);
sum_data_outer_products_error_norm_ =
MatrixUtil::EntrywiseLpNorm(sum_data_outer_products_, 1);
sum_data_outer_products_alloc_norm_ =
@@ -763,8 +764,7 @@ class DenseLpr {
FILE *stream = stdout;
const char *fname = NULL;
if((fname = fx_param_str(module_,
"fast_lpr_output",
if((fname = fx_param_str(module_, "fast_lpr_output",
"fast_lpr_output.txt")) != NULL) {
stream = fopen(fname, "w+");
}
@@ -55,7 +55,7 @@ int main(int argc, char *argv[]) {
// Do fast algorithm.
Vector fast_lpr_results;
DenseLpr<EpanKernel, RelativePruneLpr> fast_lpr;
DenseLpr<GaussianKernel, RelativePruneLpr> fast_lpr;
fast_lpr.Init(references, reference_targets, local_linear_module);
fast_lpr.PrintDebug();
fast_lpr.get_regression_estimates(&fast_lpr_results);