Use SetDimensionality(); the constructor will lose the policy.
This commit is contained in:
@@ -100,7 +100,7 @@ class LoadCSV
|
||||
// Reset the DatasetInfo object, if needed.
|
||||
if (info.Dimensionality() == 0)
|
||||
{
|
||||
info = DatasetMapper<MapPolicy>(rows);
|
||||
info.SetDimensionality(rows);
|
||||
}
|
||||
else if (info.Dimensionality() != rows)
|
||||
{
|
||||
@@ -195,7 +195,7 @@ class LoadCSV
|
||||
// Reset the DatasetInfo object, if needed.
|
||||
if (info.Dimensionality() == 0)
|
||||
{
|
||||
info = DatasetMapper<MapPolicy>(rows);
|
||||
info.SetDimensionality(rows);
|
||||
}
|
||||
else if (info.Dimensionality() != rows)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user