Skip to content

Commit

Permalink
fix bug #74
Browse files Browse the repository at this point in the history
  • Loading branch information
QinbinLi committed Jun 12, 2018
1 parent d542502 commit 22651ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/thundersvm/model/svmmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ void SvmModel::load_from_file(string path) {
string value;
ifs >> value;
for (int i = 0; i < 6; i++) {
if (feature == SvmParam::kernel_type_name[i])
if (value == SvmParam::kernel_type_name[i])
param.kernel_type = static_cast<SvmParam::KERNEL_TYPE>(i);
}
} else if (feature == "degree") {
Expand Down

0 comments on commit 22651ce

Please sign in to comment.