Hamming AI comes with pre-built scorers that cover a wide range of use cases. If you need to score your experiments in a different way, you can do so by creating a custom scorer.

Definitions

A custom scorer is a function that computes a score of a given experiment result.

Looking at the function output, we can define a custom scorer as:

  1. Classification Scorer: A function that returns a categorical value. (e.g. low, medium, high)
  2. Numerical Scorer: A function that returns a real number.

Based on the execution environment, we can define a custom scorer as:

  1. Local Scorer: A function that runs on the machine that executes the experiment.
  2. Remote Scorer: A function that runs on Hamming AI platform. [Coming soon]

Before you begin

Follow the Evaluations Guide to get familiar with running experiments on Hamming AI. You should have a dataset ID and a secret key to continue with this guide.

Creating a Custom Scorer - Python