Documentation ¶
Index ¶
- type Model
- func (m Model) MarshalBinary() ([]byte, error)
- func (m *Model) Predict(ctx context.Context, dataSet datasetter.Float32ReadWriter) error
- func (m *Model) Train(ctx context.Context, dset datasetter.FullTrainer, solver G.Solver, ...) (<-chan TrainingInfos, <-chan error)
- func (m *Model) UnmarshalBinary(data []byte) error
- type TrainingInfos
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model holds the tensor of the model
func (Model) MarshalBinary ¶
MarshalBinary for backup. This function saves the content of the weights matrices and the biais but not the graph structure
func (*Model) Predict ¶
func (m *Model) Predict(ctx context.Context, dataSet datasetter.Float32ReadWriter) error
Predict ...
func (*Model) Train ¶
func (m *Model) Train(ctx context.Context, dset datasetter.FullTrainer, solver G.Solver, pauseChan <-chan struct{}) (<-chan TrainingInfos, <-chan error)
Train the model
func (*Model) UnmarshalBinary ¶
UnmarshalBinary for restore
type TrainingInfos ¶
TrainingInfos returns info about the current training process
Directories ¶
Path | Synopsis |
---|---|
example
|
|
this reads the stdin until EOF and output a list of all characters used
|
this reads the stdin until EOF and output a list of all characters used |
Click to show internal directories.
Click to hide internal directories.