diff options
author | Matthew Hoffman <matt@fiordilatte.local> | 2010-12-06 07:31:41 +0300 |
---|---|---|
committer | Matthew Hoffman <matt@fiordilatte.local> | 2010-12-06 07:31:41 +0300 |
commit | dd6f40903686e0206bffc35a6870fe14dd85f387 (patch) | |
tree | d94b36ca040f8afc3f4aa195dcdae815dcc64a69 /parse_regressor.cc | |
parent | 2281feea57f3a2d213c6fd5323b71e29092dcfe0 (diff) |
fixed some more bugs, changed the way decay works
Diffstat (limited to 'parse_regressor.cc')
-rw-r--r-- | parse_regressor.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/parse_regressor.cc b/parse_regressor.cc index 4fd1456e..1d96a17a 100644 --- a/parse_regressor.cc +++ b/parse_regressor.cc @@ -46,8 +46,8 @@ void initialize_regressor(regressor &r) { for (size_t k = 0; k < global.lda; k++) { r.weight_vectors[i][j+k] = -log(drand48()); - r.weight_vectors[i][j+k] *= r.weight_vectors[i][j+k]; - r.weight_vectors[i][j+k] *= r.weight_vectors[i][j+k]; +// r.weight_vectors[i][j+k] *= r.weight_vectors[i][j+k]; +// r.weight_vectors[i][j+k] *= r.weight_vectors[i][j+k]; r.weight_vectors[i][j+k] *= (float)global.lda_D / (float)global.lda / global.length() * 200; } |