Skip to content

Evaluating ClusteredPredictor #62

@kowshikthopalli

Description

@kowshikthopalli

Hi
Thank you for this amazing toolbox. I have a question regarding how to use clustered predictor for evaluation.

  predictor =  ClusteredPredictor(score_function=THR(score_type='identity'),model=model, split='doubledip')
  predictor.calibrate(calib_loader,alpha=0.1)
  class_specific_thresholds = predictor.q_hat
  result_dict = predictor.evaluate(test_loader)

However predictor.evaluate is not implemented in ClusteredPredictor but inherits from the SplitPredictor which does not take clustering into account. Can you tell me how to evaluate please. ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions