Documentation
¶
Overview ¶
Package mapstore provides the in-memory ModelStore implementation.
Index ¶
- type Store
- func (s *Store) Apply(ctx context.Context, batch modelstore.TrainingBatch) error
- func (s *Store) Classes(ctx context.Context) ([]modelstore.Class, error)
- func (s *Store) Close() error
- func (s *Store) ExportTransitions(ctx context.Context, sink func(modelstore.TransitionCount) error) error
- func (s *Store) Reset(ctx context.Context) error
- func (s *Store) ScopeID() uint64
- func (s *Store) Stats(ctx context.Context, fromID uint64) (modelstore.Stats, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store keeps a complete model in Go maps.
func (*Store) Apply ¶
func (s *Store) Apply(ctx context.Context, batch modelstore.TrainingBatch) error
Apply applies one batch atomically.
func (*Store) ExportTransitions ¶
func (s *Store) ExportTransitions(ctx context.Context, sink func(modelstore.TransitionCount) error) error
ExportTransitions sends copied transition counts in ascending ID order.
Click to show internal directories.
Click to hide internal directories.