public class RegressionModel<OUTPUT> extends java.lang.Object implements Model<DoubleTensor,OUTPUT>
RegressionModel model = RegressionModel .withTrainingData(inputTrainingData, outputTrainingData) .withRegularization(RegressionRegularization.RIDGE) .build();
Modifier and Type | Method and Description |
---|---|
double |
getIntercept() |
VertexId |
getInterceptVertexId() |
double |
getWeight(int index) |
DoubleTensor |
getWeights() |
VertexId |
getWeightsVertexId() |
OUTPUT |
predict(DoubleTensor tensor) |
static RegressionModelBuilder<BooleanTensor> |
withTrainingData(DoubleTensor inputTrainingData,
BooleanTensor outputTrainingData) |
static RegressionModelBuilder<DoubleTensor> |
withTrainingData(DoubleTensor inputTrainingData,
DoubleTensor outputTrainingData) |
public static RegressionModelBuilder<DoubleTensor> withTrainingData(DoubleTensor inputTrainingData, DoubleTensor outputTrainingData)
public static RegressionModelBuilder<BooleanTensor> withTrainingData(DoubleTensor inputTrainingData, BooleanTensor outputTrainingData)
public DoubleTensor getWeights()
public double getIntercept()
public double getWeight(int index)
public OUTPUT predict(DoubleTensor tensor)
predict
in interface Model<DoubleTensor,OUTPUT>
public VertexId getInterceptVertexId()
public VertexId getWeightsVertexId()