Full API

Regressor

Use when your target column is a continuous number (price, temperature, score). Identical API to Classifier.

Constructor

python
from fling import Regressor

model = Regressor(data, target, test_size=0.2, random_state=42)

Algorithm strings

StringModel
"ridge"Ridge
"random_forest"RandomForestRegressor
"gradient_boosting"GradientBoostingRegressor
"decision_tree"DecisionTreeRegressor
"knn"KNeighborsRegressor

Example

python
model = Regressor(data="house_prices.csv", target="price")
model.train()
model.evaluate()