Versions in this module Expand all Collapse all v0 v0.8.2 Jan 13, 2024 Changes in this version + const BagOfWordsCosineSimilarityFeatureContributionType + const BagOfWordsFeatureContributionType + const BigramType + const BinaryClassificationTaskType + const IdentityFeatureContributionType + const MulticlassClassificationTaskType + const NormalizedFeatureContributionType + const OneHotEncodedFeatureContributionType + const RegressionTaskType + const UnigramType + const WordEmbeddingFeatureContributionType + func Version() string + type BagOfWordsCosineSimilarityFeatureContribution struct + ColumnNameA string + ColumnNameB string + FeatureContributionValue float32 + FeatureValue float32 + type BagOfWordsFeatureContribution struct + ColumnName string + FeatureContributionValue float32 + FeatureValue float32 + NGram NGram + type Bigram struct + TokenA string + TokenB string + type BinaryClassificationPredictOutput struct + ClassName string + FeatureContributions FeatureContributions + Probability float32 + type FeatureContributionEntry interface + type FeatureContributionType int + type FeatureContributions struct + BaselineValue float32 + Entries []FeatureContributionEntry + OutputValue float32 + type IdentityFeatureContribution struct + ColumnName string + FeatureContributionValue float32 + FeatureValue float32 + type LoadModelOptions struct + ModelFoxURL string + type LogPredictionArgs struct + Identifier string + Input PredictInput + Options PredictOptions + Output PredictOutput + type LogTrueValueArgs struct + Identifier string + TrueValue interface{} + type Model struct + func LoadModelFromBytes(data []byte, options *LoadModelOptions) (*Model, error) + func LoadModelFromPath(path string, options *LoadModelOptions) (*Model, error) + func (m Model) Destroy() + func (m Model) EnqueueLogPrediction(args LogPredictionArgs) + func (m Model) EnqueueLogTrueValue(args LogTrueValueArgs) + func (m Model) FlushLogQueue() error + func (m Model) ID() string + func (m Model) LogPrediction(args LogPredictionArgs) error + func (m Model) LogTrueValue(args LogTrueValueArgs) error + func (m Model) Predict(input []PredictInput, options *PredictOptions) []PredictOutput + func (m Model) PredictOne(input PredictInput, options *PredictOptions) PredictOutput + type MulticlassClassificationPredictOutput struct + ClassName string + FeatureContributions map[string]FeatureContributions + Probabilities map[string]float32 + Probability float32 + type NGram interface + type NormalizedFeatureContribution struct + ColumnName string + FeatureContributionValue float32 + FeatureValue float32 + type OneHotEncodedFeatureContribution struct + ColumnName string + FeatureContributionValue float32 + FeatureValue bool + Variant string + type PredictInput map[string]interface + type PredictOptions struct + ComputeFeatureContributions bool + Threshold float32 + type PredictOutput interface + type RegressionPredictOutput struct + FeatureContributions FeatureContributions + Value float32 + type TaskType int + type Unigram struct + Token string + type WordEmbeddingFeatureContribution struct + ColumnName string + FeatureContributionValue float32 + ValueIndex int