com.github.chen0040.glm.data.DataRow Maven / Gradle / Ivy
package com.github.chen0040.glm.data;
import java.util.List;
/**
* Created by xschen on 28/4/2017.
*/
public interface DataRow {
double target();
String categoricalTarget();
double[] toArray();
void setCell(String columnName, double value);
List getColumnNames();
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 setTargetColumnNames(List outputColumns);
void setCategoricalTargetColumnNames(List outputColumns);
DataRow makeCopy();
void copy(DataRow that);
String targetColumnName();
String categoricalTargetColumnName();
}