Update src/mlpack/core/data/load_categorical_csv.hpp
Co-authored-by: Marcus Edel <marcus.edel@fu-berlin.de>
This commit is contained in:
co-authored by
Marcus Edel
parent
2b2c7fa950
commit
5e8afca1a9
@@ -173,7 +173,7 @@ void LoadCSV::InitializeMapper(size_t& rows, size_t& cols, DatasetMapper<MapPoli
|
||||
while (std::getline(inFile, line))
|
||||
{
|
||||
++rows;
|
||||
// Remove whitespaces from either side
|
||||
// Remove whitespaces from either side.
|
||||
Trim(line);
|
||||
if (rows == 1)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user