Skip to content

Commit

Permalink
debug hash values not changing
Browse files Browse the repository at this point in the history
  • Loading branch information
rajan-chari committed Nov 27, 2023
1 parent 26d2d85 commit 0e2d509
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions vowpalwabbit/core/tests/dnn/dnn_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,15 @@
{
dnn_learner learner;
learner.init(
3, // num_layers
2, // hidden_layer_size
2, // num_inputs
1.0, // prediction_contraction
1, // mini_batch_size
1, // num_learners
false
3 /*num_layers*/, 2 /*hidden_layer_size*/ , 2 /*num_inputs*/
, 1.0 /*prediction_contraction*/ ,1 /*mini_batch_size*/ ,1 /*num_learners*/ ,false /*debug_regression*/
);

ExampleCreator ex_creator;
auto ec = ex_creator.create_example("1.0 |x f1:10 f2:20");
learner.predict(*ec);
learner.learn(*ec);
ec = ex_creator.create_example("1.0 |x f3:10 f4:20");
ec = ex_creator.create_example("1.0 |y f3:10 f4:20");
learner.learn(*ec);
// Did the network expand?
// Did the weights get copied over properly?
Expand Down

0 comments on commit 0e2d509

Please sign in to comment.