com.github.chen0040.data.frame.DataRow Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-data-frame Show documentation
Show all versions of java-data-frame Show documentation
Some common patterns of data frame in Java
The newest version!
package com.github.chen0040.data.frame;
import java.util.List;
import java.util.Map;
/**
* Created by xschen on 28/4/2017.
*/
public interface DataRow {
double target();
String categoricalTarget();
double[] toArray();
void setCell(String columnName, double value);
void setCategoricalCell(String columnName, String value);
List getColumnNames();
List getCategoricalColumnNames();
List getTargetColumnNames();
List getCategoricalTargetColumnNames();
double getCell(String key);
double getTargetCell(String columnName);
String getCategoricalTargetCell(String columnName);
void setTargetCell(String columnName, double value);
void setCategoricalTargetCell(String columnName, String label);
void setColumnNames(List inputColumns);
void setCategoricalColumnNames(List inputColumns);
void setLevels(Map> levels);
void setTargetColumnNames(List outputColumns);
void setCategoricalTargetColumnNames(List outputColumns);
DataRow makeCopy();
void copy(DataRow that);
String targetColumnName();
String categoricalTargetColumnName();
String getCategoricalCell(String key);
Map> getLevels();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy