regression_report¶
In [ ]:
regression_report(y_true: str,
y_score: str,
input_relation: Union[str, vDataFrame)]
Computes a regression report using multiple metrics (r2, mse, max error...).
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. |
Returns¶
tablesample : An object containing the result. For more information, see utilities.tablesample.
Example¶
In [8]:
from verticapy import vDataFrame
vDataFrame("regression_example")
Out[8]:
In [9]:
from verticapy.learn.metrics import regression_report
regression_report("y_true", "y_score", "example_classification")
Out[9]:
