Package org.tribuo.interop.modelcard
Class ModelDetails
java.lang.Object
org.tribuo.interop.modelcard.ModelDetails
ModelDetails section of a
ModelCard
.-
Constructor Summary
ConstructorDescriptionModelDetails
(com.fasterxml.jackson.databind.JsonNode modelDetailsJson) Creates an instance of ModelDetails.ModelDetails
(Model<?> model) Creates an instance of ModelDetails. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Gets the configured parameters of the ModelDetails object.Gets the Java version of the ModelDetails object.Gets the model package of the ModelDetails object.Gets the model type of the ModelDetails object.Gets the schema version of the ModelDetails object.Gets the Tribuo version of the ModelDetails object.int
hashCode()
com.fasterxml.jackson.databind.node.ObjectNode
toJson()
Creates a Json object corresponding this ModelDetails instance.toString()
-
Constructor Details
-
ModelDetails
Creates an instance of ModelDetails.- Parameters:
model
- The trainedModel
for which a ModelDetails will be built.
-
ModelDetails
public ModelDetails(com.fasterxml.jackson.databind.JsonNode modelDetailsJson) throws com.fasterxml.jackson.core.JsonProcessingException Creates an instance of ModelDetails.- Parameters:
modelDetailsJson
- The Json content corresponding to a serialized ModelDetails that will be used to recreate a new instance of a ModelDetails.- Throws:
com.fasterxml.jackson.core.JsonProcessingException
- if a problem is encountered when processing Json content.
-
-
Method Details
-
getSchemaVersion
Gets the schema version of the ModelDetails object.- Returns:
- A string specifying the schema version of the ModelDetails object.
-
getModelType
Gets the model type of the ModelDetails object.- Returns:
- A string specifying the model type of the ModelDetails object.
-
getModelPackage
Gets the model package of the ModelDetails object.- Returns:
- A string specifying the model package of the ModelDetails object.
-
getTribuoVersion
Gets the Tribuo version of the ModelDetails object.- Returns:
- A string specifying the Tribuo version of the ModelDetails object.
-
getJavaVersion
Gets the Java version of the ModelDetails object.- Returns:
- A string specifying the Java version of the ModelDetails object.
-
getConfiguredParams
Gets the configured parameters of the ModelDetails object.- Returns:
- An unmodifiable map of the configured parameters of the ModelDetails object.
-
toJson
public com.fasterxml.jackson.databind.node.ObjectNode toJson()Creates a Json object corresponding this ModelDetails instance.- Returns:
- The
ObjectNode
corresponding to this ModelDetails instance.
-
toString
-
equals
-
hashCode
public int hashCode()
-