{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/fincept-in/json-schema/fincept-in-tree-request-schema.json",
  "title": "TreeRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/fincept-in-quantlib-ml-api-openapi.yml#/components/schemas/TreeRequest",
  "properties": {
    "X": {
      "items": {
        "items": {
          "type": "number"
        },
        "type": "array"
      },
      "type": "array",
      "title": "X"
    },
    "y": {
      "items": {
        "type": "number"
      },
      "type": "array",
      "title": "Y"
    },
    "method": {
      "type": "string",
      "title": "Method",
      "default": "tree"
    },
    "max_depth": {
      "type": "integer",
      "maximum": 100.0,
      "minimum": 1.0,
      "title": "Max Depth",
      "default": 5
    },
    "n_estimators": {
      "type": "integer",
      "maximum": 1000.0,
      "minimum": 1.0,
      "title": "N Estimators",
      "default": 100
    },
    "learning_rate": {
      "type": "number",
      "title": "Learning Rate",
      "default": 0.1
    },
    "predict_X": {
      "anyOf": [
        {
          "items": {
            "items": {
              "type": "number"
            },
            "type": "array"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Predict X"
    }
  },
  "type": "object",
  "required": [
    "X",
    "y"
  ]
}