aic_bic¶
In [ ]:
aic_bic(y_true: str,
y_score: str,
input_relation: (str, vDataFrame),
k: int = 0)
Computes the AIC (Akaike’s Information Criterion) & BIC (Bayesian Information Criterion).
Parameters¶
| Name | Type | Optional | Description |
|---|---|---|---|
y_true | str | ❌ | Response column. |
y_score | str | ❌ | Prediction. |
input_relation | str / vDataFrame | ❌ | Relation to use to do the scoring. The relation can be a view or a table or even a customized relation. For example, you could write: "(SELECT ... FROM ...) x" as long as an alias is given at the end of the relation. |
k | int | ✓ | Number of predictors. |
Returns¶
tuple of floats : (AIC, BIC)
Example¶
In [11]:
from verticapy import vDataFrame
vDataFrame("regression_example")
Out[11]:
In [1]:
from verticapy.learn.metrics import aic_bic
aic_bic("y_true", "y_score", "regression_example")
Out[1]:
