Fix a Linux problem in Datasets
This commit is contained in:
parent
fd04e78ad9
commit
294666c516
@ -16,11 +16,10 @@ namespace platform {
|
|||||||
vector<string> tokens = Dataset::split(line, ',');
|
vector<string> tokens = Dataset::split(line, ',');
|
||||||
string name = tokens[0];
|
string name = tokens[0];
|
||||||
string className;
|
string className;
|
||||||
try {
|
if (tokens.size() == 1) {
|
||||||
className = tokens[1];
|
|
||||||
}
|
|
||||||
catch (exception e) {
|
|
||||||
className = "-1";
|
className = "-1";
|
||||||
|
} else {
|
||||||
|
className = tokens[1];
|
||||||
}
|
}
|
||||||
datasets[name] = make_unique<Dataset>(path, name, className, discretize, fileType);
|
datasets[name] = make_unique<Dataset>(path, name, className, discretize, fileType);
|
||||||
}
|
}
|
||||||
|
@ -43,7 +43,7 @@ namespace platform {
|
|||||||
}
|
}
|
||||||
std::string get(const std::string& key)
|
std::string get(const std::string& key)
|
||||||
{
|
{
|
||||||
return env[key];
|
return env.at(key);
|
||||||
}
|
}
|
||||||
std::vector<int> getSeeds()
|
std::vector<int> getSeeds()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user