autotune

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package autotune provides auto-tuning capabilities

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClassificationRule

type ClassificationRule struct {
	Pattern     string
	ContentType string
	Priority    int
}

ClassificationRule represents a classification rule

type ContentClassifier

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

ContentClassifier classifies content for optimal processing

func NewContentClassifier

func NewContentClassifier() *ContentClassifier

NewContentClassifier creates a content classifier

func (*ContentClassifier) Classify

func (cc *ContentClassifier) Classify(content string) string

Classify classifies content

type Tuner

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

Tuner provides auto-tuning for compression parameters

func NewTuner

func NewTuner() *Tuner

NewTuner creates a new tuner

func (*Tuner) AddConfig

func (t *Tuner) AddConfig(config TuningConfig)

AddConfig adds a tuning configuration

func (*Tuner) GenerateConfigs

func (t *Tuner) GenerateConfigs(count int) []TuningConfig

GenerateConfigs generates new configurations to test

func (*Tuner) GetBestConfig

func (t *Tuner) GetBestConfig() *TuningConfig

GetBestConfig returns the best configuration

func (*Tuner) UpdateScore

func (t *Tuner) UpdateScore(name string, score float64)

UpdateScore updates a config's score

type TuningConfig

type TuningConfig struct {
	Name       string
	Parameters map[string]interface{}
	Score      float64
	EvalCount  int
}

TuningConfig represents a tuning configuration

Jump to

Keyboard shortcuts

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