Package org.tribuo.interop.modelcard
Class TestingDetails
java.lang.Object
org.tribuo.interop.modelcard.TestingDetails
TestingDetails section of a
ModelCard
.-
Constructor Summary
ConstructorDescriptionTestingDetails
(com.fasterxml.jackson.databind.JsonNode testingDetailsJson) Creates an instance of TestingDetails.TestingDetails
(Evaluation<?> evaluation) Creates an instance of TestingDetails.TestingDetails
(Evaluation<?> evaluation, Map<String, Double> testingMetrics) Creates an instance of TestingDetails. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Gets the map of metric descriptions and values of the TestingDetails object.Gets the schema version of the TestingDetails object.int
Gets the testing set size of the TestingDetails object.int
hashCode()
com.fasterxml.jackson.databind.node.ObjectNode
toJson()
Creates a Json object corresponding this TestingDetails instance.toString()
-
Constructor Details
-
TestingDetails
Creates an instance of TestingDetails.- Parameters:
evaluation
- TheEvaluation
object for which a TestingDetails will be built.testingMetrics
- The map of metric descriptions and values that will be recorded in the TestingDetails object.
-
TestingDetails
Creates an instance of TestingDetails.- Parameters:
evaluation
- TheEvaluation
object for which a TestingDetails will be built.
-
TestingDetails
public TestingDetails(com.fasterxml.jackson.databind.JsonNode testingDetailsJson) throws com.fasterxml.jackson.core.JsonProcessingException Creates an instance of TestingDetails.- Parameters:
testingDetailsJson
- The Json content corresponding to a serialized TestingDetails that will be used to recreate a new instance of a TestingDetails.- Throws:
com.fasterxml.jackson.core.JsonProcessingException
- if a problem is encountered when processing Json content.
-
-
Method Details
-
getSchemaVersion
Gets the schema version of the TestingDetails object.- Returns:
- A string specifying the schema version of the TestingDetails object.
-
getTestingSetSize
public int getTestingSetSize()Gets the testing set size of the TestingDetails object.- Returns:
- An int specifying the testing set size of the TestingDetails object.
-
getMetrics
Gets the map of metric descriptions and values of the TestingDetails object.- Returns:
- An unmodifiable map of the metric descriptions and values of the TestingDetails object.
-
toJson
public com.fasterxml.jackson.databind.node.ObjectNode toJson()Creates a Json object corresponding this TestingDetails instance.- Returns:
- The
ObjectNode
corresponding to this TestingDetails instance.
-
toString
-
equals
-
hashCode
public int hashCode()
-