evaluate

package
v0.22.2 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2025 License: GPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEvaluateCommandHandler

func NewEvaluateCommandHandler(analyticsManager *analytics.AnalyticsManager) func(next interp.ExecHandlerFunc) interp.ExecHandlerFunc

func RunEvaluation

func RunEvaluation(analyticsManager *analytics.AnalyticsManager, limit int, customModelId string, iterations int) error

func SimilarityScore

func SimilarityScore(cmd1, cmd2 string) (float64, error)

SimilarityScore parses the two shell command strings, computes the tree edit distance, and then returns a similarity score between 0 and 1.

Types

This section is empty.

Jump to

Keyboard shortcuts

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