successivehalving

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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var OptionSetMinEarlyStoppingRate = OptionMinEarlyStoppingRate

OptionSetMinEarlyStoppingRate to set the minimum value of the early stopping rate. Deprecated: please use OptionMinEarlyStoppingRate instead.

View Source
var OptionSetMinResource = OptionMinResource

OptionSetMinResource to set the minimum resource. Deprecated: please use OptionMinResource instead.

View Source
var OptionSetReductionFactor = OptionReductionFactor

OptionSetReductionFactor to set the reduction factor. Deprecated: please use OptionReductionFactor instead.

Functions

This section is empty.

Types

type Option

type Option func(pruner *Pruner) error

Option to pass the custom option

func OptionMinEarlyStoppingRate added in v0.8.1

func OptionMinEarlyStoppingRate(minEarlyStoppingRate int) Option

OptionMinEarlyStoppingRate to set the minimum value of the early stopping rate.

func OptionMinResource added in v0.8.1

func OptionMinResource(minResource int) Option

OptionMinResource to set the minimum resource.

func OptionReductionFactor added in v0.8.1

func OptionReductionFactor(reductionFactor int) Option

OptionReductionFactor to set the reduction factor.

type Pruner

type Pruner struct {
	MinResource          int
	ReductionFactor      int
	MinEarlyStoppingRate int
}

Pruner using Optuna flavored Asynchronous Successive Halving Algorithm.

Successive Halving (arXiv: https://arxiv.org/abs/1502.07943) is a bandit-based algorithm to identify the best one among multiple configurations. This is based on Asynchronous Successive Halving Algorithm (arXiv: http://arxiv.org/abs/1810.05934), but currently this only supports Optuna flavored Asynchronous Successive Halving Algorithm. See https://github.com/optuna/optuna/pull/404 for more details.

func NewPruner

func NewPruner(opts ...Option) (*Pruner, error)

NewPruner is a constructor for Pruner.

func (*Pruner) Prune

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

Jump to

Keyboard shortcuts

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