Documentation ¶
Index ¶
- func Backward(result *Variable)
- func ReLU(x float64) float64
- func Sigmoid(x float64) float64
- type ActivationFunc
- type BatchNormalization
- type DataAnalysis
- type DecisionTree
- type DenseLayer
- type Example
- type GalaktaGlare
- func (gg *GalaktaGlare) AnomalyDetector(data []float64, threshold float64) []int
- func (gg *GalaktaGlare) ExtractEntities(text string, customStopwords map[string]bool) []string
- func (gg *GalaktaGlare) ImageDB(folderPath string) error
- func (gg *GalaktaGlare) ImageScan(imagePath string) (float64, error)
- func (gg *GalaktaGlare) Speech(tomlConfig string) error
- func (gg *GalaktaGlare) SpeechCfg() error
- func (gg *GalaktaGlare) TextClassifier(text, config string) (string, error)
- type LearningRateSchedule
- type NeuralNetwork
- func (nn *NeuralNetwork) Backpropagate(output, target []float64, learningRate float64)
- func (nn *NeuralNetwork) MultiplyMatrixVector(matrix [][]float64, vector []float64) []float64
- func (nn *NeuralNetwork) MultiplyVectors(v1 []float64, v2 []float64) []float64
- func (nn *NeuralNetwork) Predict(input []float64) []float64
- func (nn *NeuralNetwork) SaveModel(filename string) error
- func (nn *NeuralNetwork) Train(inputs, targets [][]float64, initialLearningRate float64, epochs int)
- type SpeechConfig
- type Tensor
- type TrainingMonitor
- type TreeNode
- type Variable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ActivationFunc ¶ added in v1.1.1
type BatchNormalization ¶ added in v1.1.1
type BatchNormalization struct { Gamma float64 Beta float64 Mean []float64 Variance []float64 Epsilon float64 Input []float64 Output []float64 }
func NewBatchNormalization ¶ added in v1.1.1
func NewBatchNormalization(gamma, beta, epsilon float64) *BatchNormalization
func (*BatchNormalization) Forward ¶ added in v1.1.1
func (bn *BatchNormalization) Forward(input []float64) []float64
type DataAnalysis ¶
type DataAnalysis struct{}
func (*DataAnalysis) Mean ¶
func (da *DataAnalysis) Mean(data []float64) float64
func (*DataAnalysis) Median ¶
func (da *DataAnalysis) Median(data []float64) float64
func (*DataAnalysis) Mode ¶
func (da *DataAnalysis) Mode(data []float64) []float64
type DecisionTree ¶ added in v1.1.2
type DecisionTree struct {
Root *TreeNode
}
func (*DecisionTree) Predict ¶ added in v1.1.2
func (dt *DecisionTree) Predict(features []float64) string
func (*DecisionTree) Train ¶ added in v1.1.2
func (dt *DecisionTree) Train(data []Example, maxDepth, minSamplesSplit int)
type DenseLayer ¶ added in v1.1.1
type DenseLayer struct { InputSize int OutputSize int Weights [][]float64 Biases []float64 Activation ActivationFunc Inputs []float64 WeightDecayL1 float64 WeightDecayL2 float64 DropoutRate float64 DropoutMask []float64 LearningRateSchedule LearningRateSchedule BatchNorm *BatchNormalization }
func NewDenseLayer ¶ added in v1.1.1
func NewDenseLayer(inputSize, outputSize int, activation ActivationFunc, weightDecayL1, weightDecayL2, dropoutRate float64, lrSchedule LearningRateSchedule) *DenseLayer
func (*DenseLayer) Backpropagate ¶ added in v1.1.1
func (l *DenseLayer) Backpropagate(output, target []float64, learningRate float64) []float64
func (*DenseLayer) Forward ¶ added in v1.1.1
func (l *DenseLayer) Forward(input []float64) []float64
func (*DenseLayer) GetAdjustedLearningRate ¶ added in v1.1.1
func (l *DenseLayer) GetAdjustedLearningRate(epoch int) float64
type GalaktaGlare ¶
type GalaktaGlare struct {
// contains filtered or unexported fields
}
func New ¶
func New() *GalaktaGlare
func (*GalaktaGlare) AnomalyDetector ¶
func (gg *GalaktaGlare) AnomalyDetector(data []float64, threshold float64) []int
func (*GalaktaGlare) ExtractEntities ¶
func (gg *GalaktaGlare) ExtractEntities(text string, customStopwords map[string]bool) []string
func (*GalaktaGlare) ImageDB ¶
func (gg *GalaktaGlare) ImageDB(folderPath string) error
func (*GalaktaGlare) ImageScan ¶
func (gg *GalaktaGlare) ImageScan(imagePath string) (float64, error)
func (*GalaktaGlare) Speech ¶
func (gg *GalaktaGlare) Speech(tomlConfig string) error
func (*GalaktaGlare) SpeechCfg ¶
func (gg *GalaktaGlare) SpeechCfg() error
func (*GalaktaGlare) TextClassifier ¶
func (gg *GalaktaGlare) TextClassifier(text, config string) (string, error)
type LearningRateSchedule ¶ added in v1.1.1
type NeuralNetwork ¶ added in v1.1.1
type NeuralNetwork struct {
Layers []*DenseLayer
}
func LoadModel ¶ added in v1.1.1
func LoadModel(filename string) (*NeuralNetwork, error)
func NewNeuralNetwork ¶ added in v1.1.1
func NewNeuralNetwork(layers ...*DenseLayer) *NeuralNetwork
func (*NeuralNetwork) Backpropagate ¶ added in v1.1.1
func (nn *NeuralNetwork) Backpropagate(output, target []float64, learningRate float64)
func (*NeuralNetwork) MultiplyMatrixVector ¶ added in v1.1.1
func (nn *NeuralNetwork) MultiplyMatrixVector(matrix [][]float64, vector []float64) []float64
func (*NeuralNetwork) MultiplyVectors ¶ added in v1.1.1
func (nn *NeuralNetwork) MultiplyVectors(v1 []float64, v2 []float64) []float64
func (*NeuralNetwork) Predict ¶ added in v1.1.1
func (nn *NeuralNetwork) Predict(input []float64) []float64
func (*NeuralNetwork) SaveModel ¶ added in v1.1.1
func (nn *NeuralNetwork) SaveModel(filename string) error
type SpeechConfig ¶
type TrainingMonitor ¶ added in v1.1.1
func NewTrainingMonitor ¶ added in v1.1.1
func NewTrainingMonitor(epochs, displayPeriod int) *TrainingMonitor
func (*TrainingMonitor) MonitorTraining ¶ added in v1.1.1
func (tm *TrainingMonitor) MonitorTraining(nn *NeuralNetwork, inputs, targets [][]float64, initialLearningRate float64)
type Variable ¶ added in v1.1.1
func NewVariable ¶ added in v1.1.1
Click to show internal directories.
Click to hide internal directories.