experiment

package
v0.0.0-...-673078a Latest Latest
Warning

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

Go to latest
Published: May 1, 2018 License: MIT Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrQuitReceived = errors.New("quit signal received")

Functions

This section is empty.

Types

type Experiment

type Experiment struct {
	Title       string
	File        fileinfo.FileInfo
	Train       *TrainMode
	Test        *TestMode
	Aggregators []aggregator.Spec
	Goals       []*goal.Goal
	SortOrder   []rhkassessment.SortOrder
	Category    string
	Tags        []string
	Rules       []rule.Rule
}

func Load

func Load(cfg *config.Config, file fileinfo.FileInfo) (*Experiment, error)

func (*Experiment) Process

func (e *Experiment) Process(
	cfg *config.Config,
	pm *progress.Monitor,
	l logger.Logger,
	q *quitter.Quitter,
	ignoreWhen bool,
) error

func (*Experiment) Release

func (e *Experiment) Release() error

type InvalidExtError

type InvalidExtError string

InvalidExtError indicates that a config file has an invalid extension

func (InvalidExtError) Error

func (e InvalidExtError) Error() string

type InvalidWhenExprError

type InvalidWhenExprError string

func (InvalidWhenExprError) Error

func (e InvalidWhenExprError) Error() string

type Mode

type Mode interface {
	// Kind returns the report type of the mode
	Kind() report.ModeKind
	Dataset() ddataset.Dataset
	Release() error
	NumAssessRulesStages() int
}

type TestMode

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

func (*TestMode) Dataset

func (m *TestMode) Dataset() ddataset.Dataset

func (*TestMode) Kind

func (m *TestMode) Kind() report.ModeKind

func (*TestMode) NumAssessRulesStages

func (m *TestMode) NumAssessRulesStages() int

func (*TestMode) Process

func (m *TestMode) Process(
	e *Experiment,
	cfg *config.Config,
	pm *progress.Monitor,
	q *quitter.Quitter,
	rules []rule.Rule,
) error

func (*TestMode) Release

func (m *TestMode) Release() error

type TrainMode

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

func (*TrainMode) Dataset

func (m *TrainMode) Dataset() ddataset.Dataset

func (*TrainMode) Kind

func (m *TrainMode) Kind() report.ModeKind

func (*TrainMode) NumAssessRulesStages

func (m *TrainMode) NumAssessRulesStages() int

func (*TrainMode) Process

func (m *TrainMode) Process(
	e *Experiment,
	cfg *config.Config,
	pm *progress.Monitor,
	q *quitter.Quitter,
	rules []rule.Rule,
) ([]rule.Rule, error)

func (*TrainMode) Release

func (m *TrainMode) Release() error

Jump to

Keyboard shortcuts

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