Commit d13d0a4f authored by mzed's avatar mzed
Browse files

setting created properly when creating from JSON

parent 3dacd3fc
......@@ -133,8 +133,8 @@ int main(int argc, const char * argv[]) {
assert(myNN.run(inputVec)[0] == 20.14);
assert(myNN_nodes.run(inputVec)[0] == 20.14);
//assert(myNN.run(inputVec)[0] == myNNfromString.run(inputVec)[0]);
//assert(myNN.run(inputVec)[0] == myNNfromFile.run(inputVec)[0]);
assert(myNN.run(inputVec)[0] == myNNfromString.run(inputVec)[0]);
assert(myNN.run(inputVec)[0] == myNNfromFile.run(inputVec)[0]);
//Testing exceptions for regression
std::vector<double> emptyVec = {};
......
......@@ -226,6 +226,7 @@ void modelSet<T>::json2modelSet(const Json::Value &root) {
myModelSet.push_back(new knnClassification<T>(modelNumInputs, whichInputs, trainingSet, k));
}
}
created = true;
}
template<typename T>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment