Class ExplanationConfig
java.lang.Object
com.sap.ai.sdk.foundationmodels.rpt.generated.model.ExplanationConfig
Configuration for explainability outputs.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for ExplanationConfig. -
Method Summary
Modifier and TypeMethodDescriptionstatic ExplanationConfigcreate()Create a newExplanationConfiginstance.booleangetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theExplanationConfig.For how many columns to output column scores (optional, default is 0).For how many context rows to return indices per query row (optional, default is 0).inthashCode()voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisExplanationConfiginstance.voidsetTopColumnScores(Integer topColumnScores) Set the topColumnScores of thisExplanationConfiginstance.voidsetTopRelevantContextRows(Integer topRelevantContextRows) Set the topRelevantContextRows of thisExplanationConfiginstance.toMap()Get the value of all properties of thisExplanationConfiginstance including unrecognized properties.topColumnScores(Integer topColumnScores) Set the topColumnScores of thisExplanationConfiginstance and return the same instance.topRelevantContextRows(Integer topRelevantContextRows) Set the topRelevantContextRows of thisExplanationConfiginstance and return the same instance.toString()
-
Constructor Details
-
ExplanationConfig
protected ExplanationConfig()Default constructor for ExplanationConfig.
-
-
Method Details
-
topColumnScores
Set the topColumnScores of thisExplanationConfiginstance and return the same instance.- Parameters:
topColumnScores- For how many columns to output column scores (optional, default is 0). 0 by default (no explainability). Max value is 20. Minimum: 0 Maximum: 20- Returns:
- The same instance of this
ExplanationConfigclass
-
getTopColumnScores
For how many columns to output column scores (optional, default is 0). 0 by default (no explainability). Max value is 20. minimum: 0 maximum: 20- Returns:
- topColumnScores The topColumnScores of this
ExplanationConfiginstance.
-
setTopColumnScores
Set the topColumnScores of thisExplanationConfiginstance.- Parameters:
topColumnScores- For how many columns to output column scores (optional, default is 0). 0 by default (no explainability). Max value is 20. Minimum: 0 Maximum: 20
-
topRelevantContextRows
Set the topRelevantContextRows of thisExplanationConfiginstance and return the same instance.- Parameters:
topRelevantContextRows- For how many context rows to return indices per query row (optional, default is 0). 0 by default (no explainability). Max value is 20. Minimum: 0 Maximum: 20- Returns:
- The same instance of this
ExplanationConfigclass
-
getTopRelevantContextRows
For how many context rows to return indices per query row (optional, default is 0). 0 by default (no explainability). Max value is 20. minimum: 0 maximum: 20- Returns:
- topRelevantContextRows The topRelevantContextRows of this
ExplanationConfiginstance.
-
setTopRelevantContextRows
Set the topRelevantContextRows of thisExplanationConfiginstance.- Parameters:
topRelevantContextRows- For how many context rows to return indices per query row (optional, default is 0). 0 by default (no explainability). Max value is 20. Minimum: 0 Maximum: 20
-
getCustomFieldNames
Get the names of the unrecognizable properties of theExplanationConfig.- Returns:
- The set of properties names
-
getCustomField
@Nullable @Deprecated public Object getCustomField(@Nonnull String name) throws NoSuchElementException Deprecated.UsetoMap()instead.Get the value of an unrecognizable property of thisExplanationConfiginstance.- Parameters:
name- The name of the property- Returns:
- The value of the property
- Throws:
NoSuchElementException- If no property with the given name could be found.
-
toMap
Get the value of all properties of thisExplanationConfiginstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisExplanationConfiginstance. If the map previously contained a mapping for the key, the old value is replaced by the specified value.- Parameters:
customFieldName- The name of the propertycustomFieldValue- The value of the property
-
equals
-
hashCode
public int hashCode() -
toString
-
create
Create a newExplanationConfiginstance. No arguments are required.
-
toMap()instead.