medianstopping

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2021 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 MedianPruner

type MedianPruner struct {
	*PercentilePruner
}

MedianPruner implements a median stopping rule of Google Vizier. Prune if the trial's best intermediate result is worse than median of intermediate results of previous trials at the same step. See https://ai.google/research/pubs/pub46180 for more details.

func NewMedianPruner

func NewMedianPruner() *MedianPruner

NewMedianPruner is a constructor of MedianPruner.

type PercentilePruner

type PercentilePruner struct {
	Percentile     float64
	NStartUpTrials int
	NWarmUpSteps   int
}

PercentilePruner to keep the specified percentile of the trials.

func NewPercentilePruner

func NewPercentilePruner(q float64) (*PercentilePruner, error)

NewPercentilePruner is a constructor of percentile pruner

func (*PercentilePruner) Prune

func (p *PercentilePruner) Prune(study *goptuna.Study, trial goptuna.FrozenTrial) (bool, error)

Prune if the best intermediate value is in the bottom percentile among trials at the same step.

Jump to

Keyboard shortcuts

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