{
  "$id": "https://schema.rtemis.org/explanation/shap/v1/schema.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "rtemis SHAPConfig",
  "description": "Shapley additive contributions. See setup_SHAP.",
  "type": "object",
  "properties": {
    "estimator": {
      "description": "Which estimator to use. 'auto' reads the algorithm's default.",
      "type": "string",
      "enum": ["auto", "exact", "kernel"],
      "x-rtemis": {
        "type": "string"
      }
    },
    "perturbation": {
      "description": "Value function. NULL = the resolved estimator's documented default.",
      "type": ["string", "null"],
      "enum": [
        "interventional",
        "conditional",
        null
      ],
      "x-rtemis": {
        "type": "string",
        "default_on_null": true
      }
    },
    "scale": {
      "description": "Scale contributions are additive on. NULL = set from outcome type.",
      "type": ["string", "null"],
      "enum": [
        "margin",
        "probability",
        null
      ],
      "x-rtemis": {
        "type": "string",
        "default_on_null": true
      }
    },
    "background_n": {
      "description": "Cases to subsample from the background. NULL = use all of it.",
      "type": ["integer", "null"],
      "minimum": 1,
      "x-rtemis": {
        "type": "integer"
      }
    },
    "n_coalitions": {
      "description": "Most feature subsets to evaluate. NULL lets the backend decide. Applies only when estimator is kernel.",
      "type": ["integer", "null"],
      "minimum": 2,
      "x-rtemis": {
        "type": "integer",
        "applies_when": {
          "estimator": "kernel"
        }
      }
    },
    "approach": {
      "description": "Conditional-distribution estimator. NULL = the backend's default. Applies only when estimator is kernel and perturbation is conditional.",
      "type": ["string", "null"],
      "enum": [
        "empirical",
        "gaussian",
        "copula",
        "ctree",
        "vaeac",
        "categorical",
        "timeseries",
        null
      ],
      "x-rtemis": {
        "type": "string",
        "applies_when": {
          "estimator": "kernel",
          "perturbation": "conditional"
        }
      }
    },
    "seed": {
      "description": "Random seed.",
      "type": ["integer", "null"],
      "minimum": 0,
      "x-rtemis": {
        "type": "integer"
      }
    }
  }
}
