Documentation ¶
Index ¶
- type ActivationFuncName
- type HyperParameters
- type HyperParametersBuilder
- func (builder HyperParametersBuilder) AddLayers(a ActivationFuncName, neurons ...uint) HyperParametersBuilder
- func (builder HyperParametersBuilder) AddNLayers(a ActivationFuncName, neurons uint, n uint) HyperParametersBuilder
- func (builder HyperParametersBuilder) Build() (HyperParameters, error)
- func (builder HyperParametersBuilder) SetDropoutKeepProbability(keepProb float64) HyperParametersBuilder
- func (builder HyperParametersBuilder) SetIterations(iterations uint) HyperParametersBuilder
- func (builder HyperParametersBuilder) SetLearningRate(learningRate float64) HyperParametersBuilder
- func (builder HyperParametersBuilder) SetMiniBatchSize(size uint) HyperParametersBuilder
- func (builder HyperParametersBuilder) SetRegularizationFactor(regularizationFactor float64) HyperParametersBuilder
- func (builder HyperParametersBuilder) UseGradientDescentWithMomentum(beta float64) HyperParametersBuilder
- type ImageSet
- type ImageSetBuilder
- func (builder ImageSetBuilder) AddFolder(pathToFolder string, classification bool) ImageSetBuilder
- func (builder ImageSetBuilder) AddImage(pathToImage string, classification bool) ImageSetBuilder
- func (builder ImageSetBuilder) AugmentFlipHorizontal() ImageSetBuilder
- func (builder ImageSetBuilder) Build() (*ImageSet, error)
- func (builder ImageSetBuilder) Normalize() ImageSetBuilder
- func (builder ImageSetBuilder) ResizeImages(width, height uint) ImageSetBuilder
- func (builder ImageSetBuilder) WithLogging() ImageSetBuilder
- func (builder ImageSetBuilder) WithPathPrefix(pathPrefix string) ImageSetBuilder
- type TrainedModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActivationFuncName ¶
type ActivationFuncName string
const ( ActivationFuncNameReLU ActivationFuncName = "relu" ActivationFuncNameSigmoid ActivationFuncName = "sigmoid" ActivationFuncNameTanh ActivationFuncName = "tanh" )
type HyperParameters ¶
type HyperParameters struct {
// contains filtered or unexported fields
}
func (HyperParameters) Layer ¶
func (h HyperParameters) Layer(i int) layerDefinition
func (HyperParameters) String ¶
func (h HyperParameters) String() string
func (HyperParameters) TrainModel ¶
func (h HyperParameters) TrainModel(trainingDataSet *ImageSet) (*TrainedModel, error)
type HyperParametersBuilder ¶
type HyperParametersBuilder struct {
// contains filtered or unexported fields
}
func NewHyperParametersBuilder ¶
func NewHyperParametersBuilder() HyperParametersBuilder
func (HyperParametersBuilder) AddLayers ¶
func (builder HyperParametersBuilder) AddLayers(a ActivationFuncName, neurons ...uint) HyperParametersBuilder
func (HyperParametersBuilder) AddNLayers ¶
func (builder HyperParametersBuilder) AddNLayers(a ActivationFuncName, neurons uint, n uint) HyperParametersBuilder
func (HyperParametersBuilder) Build ¶
func (builder HyperParametersBuilder) Build() (HyperParameters, error)
func (HyperParametersBuilder) SetDropoutKeepProbability ¶
func (builder HyperParametersBuilder) SetDropoutKeepProbability(keepProb float64) HyperParametersBuilder
func (HyperParametersBuilder) SetIterations ¶
func (builder HyperParametersBuilder) SetIterations(iterations uint) HyperParametersBuilder
func (HyperParametersBuilder) SetLearningRate ¶
func (builder HyperParametersBuilder) SetLearningRate(learningRate float64) HyperParametersBuilder
func (HyperParametersBuilder) SetMiniBatchSize ¶
func (builder HyperParametersBuilder) SetMiniBatchSize(size uint) HyperParametersBuilder
func (HyperParametersBuilder) SetRegularizationFactor ¶
func (builder HyperParametersBuilder) SetRegularizationFactor(regularizationFactor float64) HyperParametersBuilder
func (HyperParametersBuilder) UseGradientDescentWithMomentum ¶
func (builder HyperParametersBuilder) UseGradientDescentWithMomentum(beta float64) HyperParametersBuilder
type ImageSet ¶
type ImageSet struct {
// contains filtered or unexported fields
}
func (*ImageSet) NumberOfExamples ¶
type ImageSetBuilder ¶
type ImageSetBuilder struct {
// contains filtered or unexported fields
}
func NewImageSetBuilder ¶
func NewImageSetBuilder() ImageSetBuilder
func (ImageSetBuilder) AddFolder ¶
func (builder ImageSetBuilder) AddFolder(pathToFolder string, classification bool) ImageSetBuilder
func (ImageSetBuilder) AddImage ¶
func (builder ImageSetBuilder) AddImage(pathToImage string, classification bool) ImageSetBuilder
func (ImageSetBuilder) AugmentFlipHorizontal ¶
func (builder ImageSetBuilder) AugmentFlipHorizontal() ImageSetBuilder
func (ImageSetBuilder) Build ¶
func (builder ImageSetBuilder) Build() (*ImageSet, error)
func (ImageSetBuilder) Normalize ¶
func (builder ImageSetBuilder) Normalize() ImageSetBuilder
func (ImageSetBuilder) ResizeImages ¶
func (builder ImageSetBuilder) ResizeImages(width, height uint) ImageSetBuilder
func (ImageSetBuilder) WithLogging ¶
func (builder ImageSetBuilder) WithLogging() ImageSetBuilder
func (ImageSetBuilder) WithPathPrefix ¶
func (builder ImageSetBuilder) WithPathPrefix(pathPrefix string) ImageSetBuilder
type TrainedModel ¶
type TrainedModel struct {
// contains filtered or unexported fields
}
func (*TrainedModel) Predict ¶
func (t *TrainedModel) Predict(set *ImageSet)
Click to show internal directories.
Click to hide internal directories.