recall_score¶
In [ ]:
recall_score(y_true: str,
y_score: str,
input_relation: Union[str, vDataFrame],
pos_label: Union[int, float, str] = 1)
Computes the Recall Score.
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. |
pos_label | int / float / str | ✓ | To compute the Recall Score, one of the response column class has to be the positive one. The parameter 'pos_label' represents this class. |
Returns¶
float : score
Example¶
In [6]:
from verticapy import vDataFrame
vDataFrame("example_classification")
Out[6]:
In [7]:
from verticapy.learn.metrics import recall_score
recall_score("y_true", "y_pred", "example_classification")
Out[7]:
