---
title: "Tree Regression"
method: POST
path: "/quantlib/ml/regression/tree"
tags: ["quantlib-ml"]
---

# Tree Regression

`POST /quantlib/ml/regression/tree`

## Request

- Base URL: `https://api.fincept.in` (the document declares no server; this is the origin it was published from)
- URL: `https://api.fincept.in/quantlib/ml/regression/tree`
- Auth: API key in header `X-API-Key`

## Request body

- TreeRequest
  - `X` array[], required
    - number[]
  - `y` number[], required
  - `method` string
  - `max_depth` integer
  - `n_estimators` integer
  - `learning_rate` number
  - `predict_X` array[], nullable
    - number[]

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/fincept/apis/fincept-api.md) · [All operations](https://skmtc.dev/fincept/apis/fincept-api/llms.txt) · [OpenAPI document](https://skmtc.dev/fincept/apis/fincept-api/revisions/e9c0076ea55a?raw)
