Documentation ¶
Index ¶
- func SumAlongAxis(axis int, m *mat.Dense) (*mat.Dense, error)
- type ANN
- func (nn *ANN) Delete(deleter func(dto *DTOANN) error) error
- func (nn *ANN) Load(src string, id bool, loader func(dto *DTOANN) error) (err error)
- func (nn *ANN) Predict(src string) (*mat.Dense, error)
- func (nn *ANN) Store(dst string, id bool, creator func(dto *DTOANN) error) error
- func (nn *ANN) Test(src string)
- func (nn *ANN) Train(src string) error
- func (nn *ANN) Update(updater func(dto *DTOANN) error) error
- type Conf
- type DTOANN
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ANN ¶
type ANN struct { Config Conf WHidden *mat.Dense BHidden *mat.Dense WOut *mat.Dense BOut *mat.Dense DBID uuid.UUID Activation func(_, _ int, v float64) float64 Variance func(_, _ int, v float64) float64 }
func CreateAccurateANN ¶
func CreateNewANN ¶
func (*ANN) Load ¶
Load reads saved ANN from file or database. src contains either the file path or uuid.UUID in string form id defines if src is an uuid loader is the function to read from a database
func (*ANN) Store ¶
Store saves the ANN as a JSON file or to a database. dst contains either the file path or uuid.UUID in string form uuid defines if dst is an ID. creator defines the function to create or update.
The User of this function must maintain whether the record should be created or updated.
Click to show internal directories.
Click to hide internal directories.