ferret.ThermostatDataset#
- class ferret.ThermostatDataset(name: str, name_explainers: List | None = None)[source]#
- __init__(name: str, name_explainers: List | None = None)[source]#
Load of thermostat dataset(s)
- Parameters:
name (str) – name of the thermostat dataset to load. Format: “dataset-model-explainer” or “dataset-model”
triple (A thermostat dataset is based on the) –
case (In the latter) –
datasets (we load the thermostat) –
name_explainers (list) –
name_explainers – list of admitted explainers. If none, we use all the admitted explainers
Methods
__init__(name[, name_explainers])Load of thermostat dataset(s)
get_explanations(idx[, text, tokens, ...])Returns the pre-computed explanations of the instance at index idx
get_instance(idx[, normalize_scores])Get the instance at index idx.
get_target_explanations(idx)Returns the target of explanations at id idx
get_true_rationale_from_words_to_tokens(...)len()Attributes
NAMEavg_rationale_size