largeRCRF-Java/src/main/java/ca/joeltherrien/randomforest/Row.java
Joel Therrien e96a578ac9 Refactored code to allow for a class of covariates to determine which
SplitRules are tested.

Most of the refactoring involved the creation of a Covariate class (one
instance per column); with SplitRule and Value being folded in as inner
classes.
2018-07-03 17:00:02 -07:00

27 lines
409 B
Java

package ca.joeltherrien.randomforest;
import java.util.Map;
public class Row<Y> extends CovariateRow {
private final Y response;
public Row(Map<String, Covariate.Value> valueMap, int id, Y response){
super(valueMap, id);
this.response = response;
}
public Y getResponse() {
return this.response;
}
@Override
public String toString() {
return "Row " + this.getId();
}
}