@Test public void test() throws Exception { ReservoirSampleExample.main(null); }
public static void main(String[] args) throws Exception { DataStream<DataInstance> data = DataStreamLoader.open("datasets/simulated/syntheticData.arff"); DataOnMemory<DataInstance> dataOnMemory = ReservoirSampling.samplingNumberOfSamples(100, data); DataStreamWriter.writeDataToFile(data, "datasets/simulated/subsample.arff"); }
ReservoirSampleExample { public static void main(String[] args) throws Exception { DataStream<DataInstance> data = DataStreamLoader.open("datasets/simulated/syntheticData.arff"); DataOnMemory<DataInstance> dataOnMemory = ReservoirSampling.samplingNumberOfSamples(100, data); DataStreamWriter.writeDataToFile(data, "datasets/simulated/subsample.arff"); } }
ReservoirSampleExample { public static void main(String[] args) throws Exception { DataStream<DataInstance> data = DataStreamLoader.open("datasets/simulated/syntheticData.arff"); DataOnMemory<DataInstance> dataOnMemory = ReservoirSampling.samplingNumberOfSamples(100, data); DataStreamWriter.writeDataToFile(data, "datasets/simulated/subsample.arff"); }  }
ReservoirSampleExample { public static void main(String[] args) throws Exception { DataStream<DataInstance> data = DataStreamLoader.open("datasets/simulated/syntheticData.arff"); DataOnMemory<DataInstance> dataOnMemory = ReservoirSampling.samplingNumberOfSamples(100, data); DataStreamWriter.writeDataToFile(data, "datasets/simulated/subsample.arff"); }  static void main(String[] args); }
ReservoirSampleExample { public static void main(String[] args) throws Exception { DataStream<DataInstance> data = DataStreamLoader.open("datasets/simulated/syntheticData.arff"); DataOnMemory<DataInstance> dataOnMemory = ReservoirSampling.samplingNumberOfSamples(100, data); DataStreamWriter.writeDataToFile(data, "datasets/simulated/subsample.arff"); }  static void main(String[] args);  }