Class CsvDataLoader
java.lang.Object
com.knezevic.edaf.v3.problems.grammar.CsvDataLoader
Lightweight CSV loader for symbolic regression and classification datasets.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordClassification dataset rows and feature order.static final recordRegression dataset rows and feature order. -
Method Summary
Modifier and TypeMethodDescriptionloadClassification(String path, String targetColumn) Loads generic classification dataset and infers class order from first appearance.loadClassification(String path, String targetColumn, String positiveLabel) Loads binary classification dataset using positive-vs-rest mapping.loadClassification(String path, String targetColumn, List<String> classValues) Loads generic classification dataset.static CsvDataLoader.RegressionDataloadRegression(String path, String targetColumn) Loads regression dataset with numeric target column.
-
Method Details
-
loadRegression
Loads regression dataset with numeric target column. -
loadClassification
Loads generic classification dataset and infers class order from first appearance. -
loadClassification
public static CsvDataLoader.ClassificationData loadClassification(String path, String targetColumn, List<String> classValues) Loads generic classification dataset. IfclassValuesis provided, labels are validated against the provided class set. -
loadClassification
public static CsvDataLoader.ClassificationData loadClassification(String path, String targetColumn, String positiveLabel) Loads binary classification dataset using positive-vs-rest mapping.
-