Support loading old models in ML module
- added test for loading legacy files - added version to new written models - fixed loading of several fields in some models - added generation of new fields from old data
This commit is contained in:
@@ -2038,7 +2038,8 @@ public:
|
||||
{
|
||||
Params _params;
|
||||
|
||||
String svm_type_str = (String)fn["svmType"];
|
||||
// check for old naming
|
||||
String svm_type_str = (String)(fn["svm_type"].empty() ? fn["svmType"] : fn["svm_type"]);
|
||||
int svmType =
|
||||
svm_type_str == "C_SVC" ? C_SVC :
|
||||
svm_type_str == "NU_SVC" ? NU_SVC :
|
||||
|
Reference in New Issue
Block a user