Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AnyMatch ¶
AnyMatch checks if any of the predicted answers match the expected answer for all fields.
func ExactMatch ¶
ExactMatch checks if the predicted answer exactly matches the expected answer for all fields.
Types ¶
type Accuracy ¶
type Accuracy struct {
MetricFunc MetricFunc
}
Accuracy is a struct that can be used to create customizable accuracy metrics.
func NewAccuracy ¶
func NewAccuracy(metricFunc MetricFunc) *Accuracy
NewAccuracy creates a new Accuracy metric with the specified metric function.
type MetricFunc ¶
MetricFunc is a type alias for metric functions.
Click to show internal directories.
Click to hide internal directories.