Use SetDimensionality(); the constructor will lose the policy.

This commit is contained in:
Ryan Curtin
2021-06-16 14:24:42 -04:00
parent 2fc791085f
commit e48e4b7e81
+2 -2
View File
@@ -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)
{