Use smaller threshold for ml gradient tests
All checks were successful
Run tests / Run tests (push) Successful in 8m34s
All checks were successful
Run tests / Run tests (push) Successful in 8m34s
This commit is contained in:
parent
24b138b7e0
commit
614338a1b0
1 changed files with 2 additions and 2 deletions
|
|
@ -75,7 +75,7 @@ test_case(ml_neural__net_gradient)
|
||||||
nn.weights()[i] = old;
|
nn.weights()[i] = old;
|
||||||
|
|
||||||
double numeric_gradient = (v1 - v0) / 2.0 / eps;
|
double numeric_gradient = (v1 - v0) / 2.0 / eps;
|
||||||
expect_close(numeric_gradient, learner.gradient()[i], 1e-4);
|
expect_close(numeric_gradient, learner.gradient()[i], 1e-6);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -122,7 +122,7 @@ test_case(ml_neural__net_arg__gradient)
|
||||||
input[i] = old;
|
input[i] = old;
|
||||||
|
|
||||||
double numeric_gradient = (v1 - v0) / 2.0 / eps;
|
double numeric_gradient = (v1 - v0) / 2.0 / eps;
|
||||||
expect_close(numeric_gradient, learner.arg_gradient()[i], 1e-4);
|
expect_close(numeric_gradient, learner.arg_gradient()[i], 1e-6);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue