gaia.metrics package

GAIA Metrics Tracking

class gaia.metrics.MetricTracker(window_size=100)[source]

Bases: object

Tracks and computes metrics during training

__init__(window_size=100)[source]
update(metrics=None, prefix='', **kwargs)[source]

Update metrics with new values.

get_current(name)[source]

Get the current (most recent) value for a metric.

get_average(name)[source]

Get the average value for a metric.

reset()[source]

Reset all metrics

end_epoch()[source]

Mark end of epoch and store epoch averages

get_epoch_summary()[source]

Get summary of current epoch metrics

compute_accuracy(predictions, targets)[source]

Compute classification accuracy

compute_categorical_coherence(functor_output)[source]

Compute categorical coherence metric specific to GAIA

compute_horn_completion_rate(horn_results)[source]

Compute horn completion success rate

compute(prefix='')[source]

Compute and return current metrics summary

get_history()[source]

Get complete metrics history