Skip to content
Snippets Groups Projects
Commit 347768cc authored by felmer's avatar felmer
Browse files

testNoIgnoringColumns added

SVN: 18987
parent 1ada6413
No related branches found
No related tags found
Loading
...@@ -120,6 +120,19 @@ public class CsvToCanonicalFeatureVectorTest extends AssertJUnit ...@@ -120,6 +120,19 @@ public class CsvToCanonicalFeatureVectorTest extends AssertJUnit
assertEquals(0.001052f, darr.getForWellLocation(2, 1)); assertEquals(0.001052f, darr.getForWellLocation(2, 1));
} }
@Test
public void testNoIgnoringColumns() throws IOException
{
Properties properties = new Properties();
properties.setProperty(COLUMNS_TO_BE_IGNORED_KEY, "");
CsvToCanonicalFeatureVectorConfiguration config =
new CsvToCanonicalFeatureVectorConfiguration(new FeatureVectorStorageProcessorConfiguration(properties));
CsvToCanonicalFeatureVector converter =
new CsvToCanonicalFeatureVector(getDatasetFileLines(), config, 16, 24);
ArrayList<CanonicalFeatureVector> fvs = converter.convert();
assertEquals(18, fvs.size());
}
/** /**
* Return the tabular data as a DatasetFileLines. * Return the tabular data as a DatasetFileLines.
*/ */
......
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