Class TestingDetails

java.lang.Object
org.tribuo.interop.modelcard.TestingDetails

public final class TestingDetails extends Object
TestingDetails section of a ModelCard.
  • Constructor Details

    • TestingDetails

      public TestingDetails(Evaluation<?> evaluation, Map<String,Double> testingMetrics)
      Creates an instance of TestingDetails.
      Parameters:
      evaluation - The Evaluation 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

      public TestingDetails(Evaluation<?> evaluation)
      Creates an instance of TestingDetails.
      Parameters:
      evaluation - The Evaluation 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

      public String 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

      public Map<String,Double> 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

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object