MCPcopy Create free account
hub / github.com/EdwardRaff/JSAT / getDataSet

Method getDataSet

JSAT/src/jsat/text/TextDataLoader.java:307–321  ·  view source on GitHub ↗

Returns a new data set containing the original data points that were loaded with this loader. @return an appropriate data set for this loader

()

Source from the content-addressed store, hash-verified

305 * @return an appropriate data set for this loader
306 */
307 public DataSet getDataSet()
308 {
309 if(!noMoreAdding)
310 {
311 initialLoad();
312 finishAdding();
313 }
314
315 List<DataPoint> dataPoints= new ArrayList<DataPoint>(vectors.size());
316
317 for(SparseVector vec : vectors)
318 dataPoints.add(new DataPoint(vec, new int[0], new CategoricalData[0]));
319
320 return new SimpleDataSet(dataPoints);
321 }
322
323 /**
324 * To be called after all original texts have been loaded.

Callers

nothing calls this directly

Calls 4

initialLoadMethod · 0.95
finishAddingMethod · 0.95
sizeMethod · 0.65
addMethod · 0.45

Tested by

no test coverage detected