Versions in this module Expand all Collapse all v0 v0.1.0 Feb 28, 2024 v0.0.18 Feb 27, 2024 v0.0.17 Feb 27, 2024 v0.0.16 Feb 27, 2024 v0.0.15 Feb 27, 2024 v0.0.13 Feb 27, 2024 v0.0.12 Nov 25, 2023 v0.0.11 Apr 3, 2023 v0.0.10 Apr 2, 2023 v0.0.8 Apr 2, 2023 v0.0.7 Apr 2, 2023 v0.0.6 Apr 1, 2023 v0.0.5 Apr 1, 2023 v0.0.2 Apr 1, 2023 v0.0.1 Apr 1, 2023 v0.0.0 Apr 1, 2023 Changes in this version + func LoadForCmd(cmd *cobra.Command, opts *Options) + func New(opts ...ModelOption) (model.Model, error) + func NewForOptions(opts Options) (model.Model, error) + type ModelOption func(*Options) + func BatchSize(v int) ModelOption + func Dim(v int) ModelOption + func DocInMemory() ModelOption + func Goroutines(v int) ModelOption + func Initlr(v float64) ModelOption + func Iter(v int) ModelOption + func LogBatch(v int) ModelOption + func MaxCount(v int) ModelOption + func MinCount(v int) ModelOption + func MinLR(v float64) ModelOption + func NegativeSampleSize(v int) ModelOption + func Relation(typ RelationType) ModelOption + func Smooth(v float64) ModelOption + func SubsampleThreshold(v float64) ModelOption + func ToLower() ModelOption + func UpdateLRBatch(v int) ModelOption + func Verbose() ModelOption + func Window(v int) ModelOption + type Options struct + BatchSize int + Dim int + DocInMemory bool + Goroutines int + Initlr float64 + Iter int + LogBatch int + MaxCount int + MinCount int + MinLR float64 + NegativeSampleSize int + RelationType RelationType + Smooth float64 + SubsampleThreshold float64 + ToLower bool + UpdateLRBatch int + Verbose bool + Window int + func DefaultOptions() Options + type RelationType = string + const Collocation + const LogCollocation + const PMI + const PPMI