diff options
author | Tetsuo Kiso <tetsuo-s@is.naist.jp> | 2012-02-27 19:35:42 +0400 |
---|---|---|
committer | Tetsuo Kiso <tetsuo-s@is.naist.jp> | 2012-02-27 19:35:42 +0400 |
commit | 6d6fb4383dbe4a46317e03babafec1bfa7e4bf73 (patch) | |
tree | 352fdb33c5ee8a6a6f0c755c202d2379fa4bcb1f /mert/Point.cpp | |
parent | c3bb4c7abd76fc5302ddff2101bb13e66a502b2d (diff) |
Fix a mistake in a previous commit: tuning on a subset of features.
In the commit 4b6232b757542e7dfd05b6c494d5f97fdb80c448,
I thought I had fixed the bug around the tuning on a subset of
features by checking whether pdim and the length of the
active features which you want to optimize in the tuning.
However, it was wrong. I should set Point::optindices
appropriately according to specified the subset.
Diffstat (limited to 'mert/Point.cpp')
-rw-r--r-- | mert/Point.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mert/Point.cpp b/mert/Point.cpp index f298647dd..fe371ef53 100644 --- a/mert/Point.cpp +++ b/mert/Point.cpp @@ -38,6 +38,7 @@ Point::Point(const vector<parameter_t>& init, } } else { CHECK(init.size()==pdim); + CHECK(optindices.size() == Point::dim); for (unsigned int i=0; i<Point::dim; i++) { operator[](i)=init[optindices[i]]; m_min[i] = min[optindices[i]]; |