solver

package
v0.0.0-...-95985b3 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2020 License: MIT Imports: 3 Imported by: 4

Documentation

Overview

This package provides a solver base on Goptuna.

Please see https://github.com/c-bata/goptuna for Goptuna.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoptunaSolver

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

GoptunaSolver is a Solver implementation based on Goptuna.

func (*GoptunaSolver) Ask

func (r *GoptunaSolver) Ask(idg *kurobako.TrialIDGenerator) (kurobako.NextTrial, error)

func (*GoptunaSolver) Tell

func (r *GoptunaSolver) Tell(trial kurobako.EvaluatedTrial) error

type GoptunaSolverFactory

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

GoptunaSolverFactory is a SolverFactory for Goptuna.

func NewGoptunaSolverFactory

func NewGoptunaSolverFactory(name string, createStudy func(int64) (*goptuna.Study, error)) GoptunaSolverFactory

NewGoptunaSolverFactory creates a new GoptunaSolverFactory instance.

The createStudy argument is a function that takes a random seed and returns a study object that is used to solve black-box optimization problems.

func (*GoptunaSolverFactory) CreateSolver

func (r *GoptunaSolverFactory) CreateSolver(seed int64, problem kurobako.ProblemSpec) (kurobako.Solver, error)

func (*GoptunaSolverFactory) Specification

func (r *GoptunaSolverFactory) Specification() (*kurobako.SolverSpec, error)

Jump to

Keyboard shortcuts

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