Package org.tribuo.interop.modelcard
Class UsageDetails
java.lang.Object
org.tribuo.interop.modelcard.UsageDetails
UsageDetails section of a
ModelCard
.-
Constructor Summary
ConstructorDescriptionUsageDetails
(com.fasterxml.jackson.databind.JsonNode usageDetailsJson) Creates an instance of UsageDetails.UsageDetails
(String intendedUse, String intendedUsers, List<String> outOfScopeUses, List<String> preProcessingSteps, List<String> considerations, List<String> factors, List<String> resources, String primaryContact, String modelCitation, String modelLicense) Creates an instance of UsageDetails. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Gets the considerations of the UsageDetails object.Gets the relevant factors of the UsageDetails object.Gets the intended use of the UsageDetails object.Gets the intended users of the UsageDetails object.Gets the model citation of the UsageDetails object.Gets the model license of the UsageDetails object.Gets the out-of-scope uses of the UsageDetails object.Gets the pre-processing steps of the UsageDetails object.Gets the primary contact person of the UsageDetails object.Gets the relevant resources of the UsageDetails object.Gets the schema version of the UsageDetails object.int
hashCode()
com.fasterxml.jackson.databind.node.ObjectNode
toJson()
Creates a Json object corresponding this UsageDetails instance.toString()
-
Constructor Details
-
UsageDetails
public UsageDetails(String intendedUse, String intendedUsers, List<String> outOfScopeUses, List<String> preProcessingSteps, List<String> considerations, List<String> factors, List<String> resources, String primaryContact, String modelCitation, String modelLicense) Creates an instance of UsageDetails.- Parameters:
intendedUse
- A string specifying the intended use of the trained model.intendedUsers
- A string specifying the intended users of the trained model.outOfScopeUses
- The list of out-of-scope uses of the trained model.preProcessingSteps
- The list of pre-processing steps for the trained model.considerations
- The list of considerations for the trained model.factors
- The list of factors to consider for the trained model.resources
- The list of relevant resources for the trained model.primaryContact
- A string specifying the primary contact person of the trained model.modelCitation
- A string specifying the model citation of the trained model.modelLicense
- A string specifying the model license of the trained model.
-
UsageDetails
public UsageDetails(com.fasterxml.jackson.databind.JsonNode usageDetailsJson) Creates an instance of UsageDetails.Throws
JsonProcessingException
if a problem is encountered when processing Json content.- Parameters:
usageDetailsJson
- The Json content corresponding to a serialized UsageDetails that will be used to recreate a new instance of a UsageDetails.
-
-
Method Details
-
getSchemaVersion
Gets the schema version of the UsageDetails object.- Returns:
- A string specifying the schema version of the UsageDetails object.
-
getIntendedUse
Gets the intended use of the UsageDetails object.- Returns:
- A string specifying the intended use of the UsageDetails object.
-
getIntendedUsers
Gets the intended users of the UsageDetails object.- Returns:
- A string specifying the intended users of the UsageDetails object.
-
getOutOfScopeUses
Gets the out-of-scope uses of the UsageDetails object.- Returns:
- A list of out-of-scope uses for the UsageDetails object.
-
getPreProcessingSteps
Gets the pre-processing steps of the UsageDetails object.- Returns:
- A list of pre-processing steps for the UsageDetails object.
-
getConsiderations
Gets the considerations of the UsageDetails object.- Returns:
- A list of considerations for the UsageDetails object.
-
getFactors
Gets the relevant factors of the UsageDetails object.- Returns:
- A list of relevant factors for the UsageDetails object.
-
getResources
Gets the relevant resources of the UsageDetails object.- Returns:
- A list of relevant resources for the UsageDetails object.
-
getPrimaryContact
Gets the primary contact person of the UsageDetails object.- Returns:
- The primary contact person for the UsageDetails object.
-
getModelCitation
Gets the model citation of the UsageDetails object.- Returns:
- The model citation for the UsageDetails object.
-
getModelLicense
Gets the model license of the UsageDetails object.- Returns:
- The model license for the UsageDetails object.
-
toJson
public com.fasterxml.jackson.databind.node.ObjectNode toJson()Creates a Json object corresponding this UsageDetails instance.- Returns:
- The
ObjectNode
corresponding to this UsageDetails instance.
-
toString
-
equals
-
hashCode
public int hashCode()
-