2018-07-02 05:22:12 +00:00
|
|
|
package ca.joeltherrien.randomforest;
|
|
|
|
|
|
|
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
public class Row<Y> extends CovariateRow {
|
|
|
|
|
|
|
|
private final Y response;
|
|
|
|
|
2018-07-04 00:00:02 +00:00
|
|
|
public Row(Map<String, Covariate.Value> valueMap, int id, Y response){
|
2018-07-02 05:22:12 +00:00
|
|
|
super(valueMap, id);
|
|
|
|
this.response = response;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public Y getResponse() {
|
|
|
|
return this.response;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public String toString() {
|
|
|
|
return "Row " + this.getId();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|