recommend

package
v0.21.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 12, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Engine

type Engine struct {
	// contains filtered or unexported fields
}

Engine computes heuristic recommendations from multi-model evaluation outcomes.

func NewEngine

func NewEngine() *Engine

NewEngine creates a recommendation engine with default weights.

func (*Engine) Recommend

func (e *Engine) Recommend(results []ModelInput) *models.Recommendation

Recommend computes a heuristic recommendation from a slice of model results. Returns nil if fewer than 2 models have non-nil outcomes.

type ModelInput

type ModelInput struct {
	ModelID string
	Outcome *models.EvaluationOutcome
}

ModelInput pairs a model identifier with its evaluation outcome. The outcome may be nil if the model run failed entirely.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL