diff options
author | John Langford <jl@hunch.net> | 2009-09-17 00:49:31 +0400 |
---|---|---|
committer | John Langford <jl@hunch.net> | 2009-09-17 00:49:31 +0400 |
commit | 0bda878246f522418bdf71902fa45c8efab9347e (patch) | |
tree | 2c31f1b91825cb7e4d12d584ed799e8d10a41659 /gd.h | |
parent | 9ffe9acd7d46e12d83d231c9842a79a86d1a82ea (diff) |
Still grinding.
Diffstat (limited to 'gd.h')
-rw-r--r-- | gd.h | 30 |
1 files changed, 2 insertions, 28 deletions
@@ -16,48 +16,22 @@ void print_result(int f, float res, v_array<char> tag); struct gd_vars { - long long int example_number; - double weighted_examples; - double old_weighted_examples; - double weighted_labels; - size_t total_features; + float t;//learning rate control. float eta; - int predictions, raw_predictions; - double sum_loss; - double sum_loss_since_last_dump; - float t; float power_t; - float dump_interval; float min_prediction; float max_prediction; - bool quiet; - bool training; - - void (*print)(int,float,v_array<char>); gd_vars() {}; void init() { - weighted_examples = 0.; - example_number = 0; - weighted_labels = 0.; - total_features = 0; - predictions = -1; - raw_predictions = -1; - sum_loss = 0.0; - sum_loss_since_last_dump = 0.0; t = 1.; + eta = 0.1; power_t = 0.; - dump_interval = exp(1.); min_prediction = 0.; max_prediction = 1.; - old_weighted_examples = 0.; - quiet = false; - training = true; - eta = 0.1; - print = print_result; } }; |