Documentation
¶
Index ¶
- Variables
- type Aggregator
- type FedAvgAggregator
- type Model
- type PersistentStorage
- func (ps *PersistentStorage) ListModels() ([]int, error)
- func (ps *PersistentStorage) ListRounds() ([]string, error)
- func (ps *PersistentStorage) LoadModel(version int) (*Model, error)
- func (ps *PersistentStorage) LoadRound(roundID string) (*RoundState, error)
- func (ps *PersistentStorage) SaveModel(version int, model Model) error
- func (ps *PersistentStorage) SaveRound(roundID string, state *RoundState) error
- type RoundState
- type Task
- type Update
- type WasmAggregator
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoUpdates = errors.New("no updates provided for aggregation") ErrOverflow = errors.New("sample count overflow during aggregation") )
Functions ¶
This section is empty.
Types ¶
type Aggregator ¶
func NewFedAvgAggregator ¶
func NewFedAvgAggregator() Aggregator
type FedAvgAggregator ¶
type FedAvgAggregator struct{}
type PersistentStorage ¶
type PersistentStorage struct {
// contains filtered or unexported fields
}
func NewPersistentStorage ¶
func NewPersistentStorage(roundsDir, modelsDir string) (*PersistentStorage, error)
func (*PersistentStorage) ListModels ¶
func (ps *PersistentStorage) ListModels() ([]int, error)
func (*PersistentStorage) ListRounds ¶
func (ps *PersistentStorage) ListRounds() ([]string, error)
func (*PersistentStorage) LoadModel ¶
func (ps *PersistentStorage) LoadModel(version int) (*Model, error)
func (*PersistentStorage) LoadRound ¶
func (ps *PersistentStorage) LoadRound(roundID string) (*RoundState, error)
func (*PersistentStorage) SaveModel ¶
func (ps *PersistentStorage) SaveModel(version int, model Model) error
func (*PersistentStorage) SaveRound ¶
func (ps *PersistentStorage) SaveRound(roundID string, state *RoundState) error
type RoundState ¶
type WasmAggregator ¶
type WasmAggregator struct {
// contains filtered or unexported fields
}
func NewWasmAggregator ¶
func NewWasmAggregator(wasmPath, runtime string) (*WasmAggregator, error)
Click to show internal directories.
Click to hide internal directories.