Skip to content

Commit

Permalink
minor bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Manuel Blum committed Apr 18, 2013
1 parent 3abbd67 commit 12a310c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/rprop.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class RProp
{
public:
RProp () {init();}
void init(double eps_stop = 0.1, double Delta0=0.1, double Deltamin=1e-6, double Deltamax=50, double etaminus=0.5, double etaplus=1.2);
void init(double eps_stop = 0.0, double Delta0=0.1, double Deltamin=1e-6, double Deltamax=50, double etaminus=0.5, double etaplus=1.2);
void maximize(GaussianProcess * gp, size_t n=100, bool verbose=1);
private:
double Delta0;
Expand Down
2 changes: 1 addition & 1 deletion tests/test_optimizer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ TEST_F(OptimizerTest, Rprop)

libgp::RProp rprop;
rprop.init();
rprop.maximize(gp, 50, 1);
rprop.maximize(gp, 50, 0);

ASSERT_NEAR(0, gp->covf().get_loghyper()(0), 0.1);
ASSERT_NEAR(0, gp->covf().get_loghyper()(1), 0.1);
Expand Down

0 comments on commit 12a310c

Please sign in to comment.