Skip to content

Any mapping of metrics with compatible classifiers? #547

Answered by MaxHalford
prabhant asked this question in Q&A
Discussion options

You must be logged in to vote

Do you have an example? There's no mapping per say but each metric has a works_with method.

from river.linear_model import LogisticRegression
from river.metrics import Accuracy

model = LogisticRegression()
metric = Accuracy()
print(metric.works_with(model))

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@prabhant
Comment options

Answer selected by prabhant
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants