evaluation

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2021 License: MIT Imports: 7 Imported by: 0

README

evaluation

-- import "github.com/gopredict/pmml/evaluation"

Usage

const (
	ErrNotImplemented = Error("evaluation: not implemented")
	ErrNotValidated   = Error("evaluation: not validated")
	ErrNotCompiled    = Error("evaluation: not compiled")
)
type DataRow
type DataRow map[string]Value
type Error
type Error string
func (Error) Error
func (err Error) Error() string
type Value
type Value struct {
}
func NewValue
func NewValue(val interface{}) Value
func (Value) Float64
func (v Value) Float64() float64
func (Value) Int64
func (v Value) Int64() int64
func (Value) Raw
func (v Value) Raw() interface{}
func (Value) String
func (v Value) String() string
type TreeModel
type TreeModel struct {
}
func NewTreeModel
func NewTreeModel(dd *models.DataDictionary, td *models.TransformationDictionary, model *models.TreeModel) (*TreeModel, error)
func (*TreeModel) Compile
func (m *TreeModel) Compile() error
func (*TreeModel) Evaluate
func (m *TreeModel) Evaluate(input evaluation.DataRow) (evaluation.DataRow, error)
func (*TreeModel) Validate
func (m *TreeModel) Validate() error
func (*TreeModel) Verify
func (m *TreeModel) Verify() error

Documentation

Index

Constants

View Source
const (
	ErrNotImplemented = Error("evaluation: not implemented")
	ErrNotValidated   = Error("evaluation: not validated")
	ErrNotCompiled    = Error("evaluation: not compiled")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error string

func (Error) Error

func (err Error) Error() string

type MiningModel

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

func (*MiningModel) Compile

func (m *MiningModel) Compile() error

func (*MiningModel) Evaluate

func (m *MiningModel) Evaluate(input DataRow) (DataRow, error)

func (*MiningModel) Validate

func (m *MiningModel) Validate() error

func (*MiningModel) Verify added in v0.1.5

func (m *MiningModel) Verify() error

type Model added in v0.1.5

type Model interface {
	Verify() error
	Compile() error
	Validate() error
	Evaluate(input DataRow) (DataRow, error)
}

func NewModel added in v0.1.5

type RegressionModel added in v0.1.7

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

func NewRegressionModel added in v0.1.7

func (*RegressionModel) Compile added in v0.1.7

func (m *RegressionModel) Compile() error

func (*RegressionModel) Evaluate added in v0.1.7

func (m *RegressionModel) Evaluate(input DataRow) (DataRow, error)

func (*RegressionModel) EvaluateBinaryClassification added in v0.1.10

func (m *RegressionModel) EvaluateBinaryClassification(input DataRow) (DataRow, error)

func (*RegressionModel) EvaluateMulticlassClassification added in v0.1.10

func (m *RegressionModel) EvaluateMulticlassClassification(input DataRow) (DataRow, error)

func (*RegressionModel) EvaluateRegression added in v0.1.10

func (m *RegressionModel) EvaluateRegression(input DataRow) (DataRow, error)

func (*RegressionModel) Validate added in v0.1.7

func (m *RegressionModel) Validate() error

func (*RegressionModel) Verify added in v0.1.7

func (m *RegressionModel) Verify() error

type TreeModel

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

func (*TreeModel) Compile

func (m *TreeModel) Compile() error

func (*TreeModel) Evaluate

func (m *TreeModel) Evaluate(input DataRow) (DataRow, error)

func (*TreeModel) Validate

func (m *TreeModel) Validate() error

func (*TreeModel) Verify

func (m *TreeModel) Verify() error

type Value

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

func NewValue

func NewValue(val interface{}) Value

func (Value) Bool added in v0.1.11

func (v Value) Bool() bool

func (Value) Float32 added in v0.1.10

func (v Value) Float32() float32

func (Value) Float64

func (v Value) Float64() float64

func (Value) Int64

func (v Value) Int64() int64

func (Value) Raw

func (v Value) Raw() interface{}

func (Value) String

func (v Value) String() string

Jump to

Keyboard shortcuts

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