Skip to main content
POST
Tree-Based Regression (Decision Tree, Gradient Boosting)

Authorizations

X-API-Key
string
header
required

API key for authentication. Get your key at https://api.fincept.in/auth/register

Body

application/json
X
number[][]
required

Feature matrix

Example:
y
number[]
required

Continuous target values

Example:
method
enum<string>
default:tree

Tree method

Available options:
tree,
gradient_boosting
Example:

"gradient_boosting"

max_depth
integer
default:5

Maximum tree depth

Example:

3

n_estimators
integer
default:100

Number of trees (for gradient boosting)

Example:

50

learning_rate
number
default:0.1

Learning rate (for gradient boosting)

Example:

0.05

predict_X
number[][]

Optional feature matrix for prediction

Example:

Response

Tree regression results

success
boolean
Example:

true

data
object