recbole.evaluator.abstract_evaluator

class recbole.evaluator.abstract_evaluator.AbstractEvaluator(config)[source]

Bases: object

AbstractEvaluator is an abstract object which supports the evaluation of the model. It is called by Trainer.

Note

If you want to inherit this class and implement your own evalautor class, you must implement the following functions.

Parameters

config (Config) – The config of evaluator.

collect()[source]

get the intermediate results for each batch, it is called at the end of each batch

evaluate()[source]

calculate the metrics of all batches, it is called at the end of each epoch

metrics_info()[source]

get metrics result