Menu

Benchmark multi-model/multi-view models.

Note

This page is a reference documentation. It only explains the function signature, and not how to use it. Please refer to the gallery for the big picture.

mmbench.workflow.predict.get_predictor(data)[source]ΒΆ

Return a classifier and a BAcc metric if the data is of type int or str, otherwise a regressor and a MAE metric.

Parameters

data : list

list of value that will be submitted to a predictor.

Returns

predictor : linear_model

A classifier or a regressor.

scorer : callable

a scorer callable object/function with signature which returns a single value.

name : str

the name of the scorer.

Follow us

© 2023, mmbench developers