Versions in this module Expand all Collapse all v0 v0.2.0 Jul 28, 2026 Changes in this version + const DecisionPolicyLongOnlyPragmaticV2 + const ProfileQuotaSafeV2 + func Licenses() string type DebugResult + Probabilities []float32 + Quantiles []float32 + Thresholds []float32 + type Metadata struct + Alpha float64 + ArtifactFormat int + ArtifactSHA256 string + AttentionHeads int + AuxiliaryHeads []string + Bucket int + DecisionPolicy string + Dimension int + Epochs int + FeatureSchema string + Heads []string + HiddenSize int + IntermediateSize int + L2 float64 + Labels []string + Layers int + LearningRate float64 + MaxN int + MaxTokens int + MinN int + ModelFamily string + ModelID string + PolicyCompatibility string + PositiveClassWeights []float64 + Quantization string + Seed uint64 + SourceManifestSHA256 string + Task string + TeacherEncoder string + TemporalFeatures int + Tokenizer string + TrainingBackend string + TrainingCodeCommit string + TrainingEffort string + TrainingModel string + TrainingProvider string + TrainingToolchain string + Vocabulary []string + WordMaxN int + WordMinN int + type Mode string + const ImageToVideo + const TextToVideo type Model + func (m *Model) Metadata() Metadata type PickRequest + AspectRatio string + Duration int + Resolution string + SourceMediaAspectRatio string type PickResult + ArtifactSHA256 string + AspectRatioSource string + DurationSource string + EstimatedCostMicroUSD int64 + PricingAsOf string + ProfileVersion string + Reasons Reasons + ResolutionSource string type PredictionSet + Probabilities []float32 + type PriceEstimate struct + MicroUSDPerS int64 + Resolution string + type Profile struct + func NewProfile(config ProfileConfig) (Profile, error) + func QuotaSafeProfile() Profile + type ProfileConfig struct + AllowedAspects []string + AllowedDurations []int + AllowedResolutions []string + DefaultDuration int + DefaultResolution string + DefaultTextAspect string + MaximumDuration int + Metadata map[string]string + Name string + Prices []PriceEstimate + PricingAsOf string + SemanticDurations map[string]int + Version string + type Reasons struct + func (r *Reasons) UnmarshalJSON(data []byte) error + func (r Reasons) MarshalJSON() ([]byte, error) + func (r Reasons) Strings() []string type TrainConfig + ConformalCalibrationInput string + Dimension int + L2 float32 + LearningRate float32 + MaxN int + MinN int + PositiveWeightScale float32 + ProbabilityCalibrationInput string + SourceManifestSHA256 string + ThresholdDevelopmentInput string + TrainInput string + TrainingCodeCommit string v0.1.0 Jul 27, 2026 Changes in this version + const DefaultModelVersion + const DefaultResolution + const FallbackAspect + const FallbackDuration + const MaximumDuration + const MinimumConfidence + const PolicyVersion + var PresetLabels = []string + func ApplyPlatt(score, a, b float32) float32 + func CalibratePlatt(pool *memory.Pool, rawScores [][]float32, labels []int, numLabels int) ([]float32, []float32) + func ComputeQuantile(scores []float32, alpha float64) float32 + func Encode(text []byte, table []float32, bucket, dim int, pool *memory.Pool) []float32 + func PredictLogits(hidden, weights, bias, out []float32) + func Train(cfg TrainConfig) error + type DebugResult struct + Calibrated []float32 + IsEmpty bool + Kinds []string + Logits []float32 + PlattA []float32 + PlattB []float32 + Q float32 + type Model struct + func Load(path string) (*Model, error) + func LoadBytes(data []byte) (*Model, error) + func LoadDefault() (*Model, error) + func (m *Model) Classify(text string) PredictionSet + func (m *Model) ClassifyDebug(text string) DebugResult + func (m *Model) Close() error + func (m *Model) SetLabelNames(names []string) + type PickRequest struct + ImageAspectRatio float64 + Mode string + Prompt string + type PickResult struct + AspectRatio string + Confidence float32 + Duration int + ModelVersion string + PolicyVersion string + Resolution string + Source string + func PickSettings(model *Model, request PickRequest, modelVersion string) PickResult + type PredictionSet struct + Confidences []float32 + Kinds []string + func PredictSet(probs []float32, labelNames []string, q float32, pool *memory.Pool) PredictionSet + func (ps PredictionSet) IsEmpty() bool + type TrainConfig struct + Alpha float64 + Bucket int + CalibSplit float64 + Dim int + Epochs int + Input string + LR float32 + LabelNames []string + NumGoroutines int + Output string + Seed uint64 + func DefaultTrainConfig() TrainConfig