public class RegressionDataSetGeneratorARFF extends DataSetGenerator
attrs, compliantListener, nameOfData| Constructor | Description |
|---|---|
RegressionDataSetGeneratorARFF() |
| Modifier and Type | Method | Description |
|---|---|---|
String |
generateARFFRandomValues(double baseValue,
double volatility) |
|
String |
generateCSV(int numOfLines,
String targetLabel,
double targetInitialValue,
double valueVolatility,
boolean withHeader,
boolean withId) |
|
String |
generateCsvRandomValues(double baseValue) |
getCompliantListener, setAttrs, setCompliantListener, setNameOfDatapublic String generateCsvRandomValues(double baseValue)
public String generateCSV(int numOfLines, String targetLabel, double targetInitialValue, double valueVolatility, boolean withHeader, boolean withId)
numOfLines - Number of lines to generate as a dummy data settargetLabel - Target to predicttargetInitialValue - The initial value that will be used for multiplication when
calculating the target.valueVolatility - A random value to be added to the computed value. computed by
"volatility * Math.random () * targetInitialValue"withHeader - true:generate csv with header row.withId - true:generate autogenerated sequential id columnpublic String generateARFFRandomValues(double baseValue, double volatility)
Copyright © 2019. All rights reserved.