public class ModelAttributes
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
ModelAttributes(MojoModel model,
com.google.gson.JsonObject modelJson) |
Modifier and Type | Method and Description |
---|---|
MojoModelMetrics |
getCrossValidationMetrics() |
Table |
getCrossValidationMetricsSummary() |
ModelParameter[] |
getModelParameters() |
Table |
getModelSummary()
Model summary might vary not only per model, but per each version of the model.
|
java.lang.Object |
getParameterValueByName(java.lang.String name) |
Table |
getScoringHistory()
Retrieves model's scoring history.
|
MojoModelMetrics |
getTrainingMetrics() |
MojoModelMetrics |
getValidationMetrics() |
public ModelAttributes(MojoModel model, com.google.gson.JsonObject modelJson)
public Table getModelSummary()
Table
with summary information about the underlying model.public Table getScoringHistory()
Table
with model's scoring history, if existing. Otherwise null.public MojoModelMetrics getTrainingMetrics()
MojoModelMetrics
instance with training metrics. If available, otherwise null.public MojoModelMetrics getValidationMetrics()
MojoModelMetrics
instance with validation metrics. If available, otherwise null.public MojoModelMetrics getCrossValidationMetrics()
MojoModelMetrics
instance with cross-validation metrics. If available, otherwise null.public Table getCrossValidationMetricsSummary()
Table
instance with summary table of the cross-validation metrics. If available, otherwise null.public ModelParameter[] getModelParameters()
Collection
of ModelParameter
. If there are no parameters, returns an empty collection.
Never null.public java.lang.Object getParameterValueByName(java.lang.String name)