Skip to content
Snippets Groups Projects
Commit 5f7e4933 authored by Franck Dary's avatar Franck Dary
Browse files

removed useless line

parent 6b13e6ae
No related branches found
No related tags found
No related merge requests found
......@@ -123,7 +123,6 @@ void Trainer::extractExamples(SubConfig & config, bool debug, std::filesystem::p
std::vector<long> goldIndexes;
float regressionTarget = 0.0;
if (machine.getClassifier(config.getState())->isRegression())
{
entropy = 0.0;
......@@ -138,7 +137,7 @@ void Trainer::extractExamples(SubConfig & config, bool debug, std::filesystem::p
auto object = Config::str2object(splited[0]);
int index = std::stoi(splited[1]);
regressionTarget = std::stof(config.getConst(col, config.getRelativeWordIndex(object, index), 0));
float regressionTarget = std::stof(config.getConst(col, config.getRelativeWordIndex(object, index), 0));
goldIndexes.emplace_back(util::float2long(regressionTarget));
}
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment