pb

package
v0.0.0-...-4f40efb Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2015 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

parallel boosting

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Iterate

func Iterate(pr Problem, weights []float64, lr float64) error

func LinearLoss

func LinearLoss(y float64, f Features, w []float64) float64

func LogisticLoss

func LogisticLoss(y float64, f Features, w []float64) float64

func Risk

func Risk(pr Problem, weights []float64, lf LossFunction) (out float64)

Types

type Features

type Features []float64

type LossFunction

type LossFunction func(y float64, f Features, w []float64) float64

type Problem

type Problem struct {
	Observations []Features
	Responses    []float64
}

func (Problem) ObservationCount

func (p Problem) ObservationCount() int

func (Problem) PredictorCount

func (p Problem) PredictorCount() int

Jump to

Keyboard shortcuts

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