optimizer

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Candidate

type Candidate struct {
	DSL   string
	Score float64
}

func Evolve

func Evolve(
	ctx context.Context,
	baselineDSL string,
	reg flow.Registry,
	eval Evaluator,
	opts Options,
) (Candidate, error)

Evolve searches for the optimal pipeline architecture using genetic mutation.

type Evaluator

type Evaluator func(ctx context.Context, candidate action.AnyAction) (score float64, err error)

type Options

type Options struct {
	Generations int
	Population  int
}

Jump to

Keyboard shortcuts

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