neuralbond

package
v0.0.0-...-3be6dbe Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 11, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ROMCODE = uint8(0) + iota
	FRAGMENT
)
View Source
const (
	ASYNC = uint8(0) + iota
	SYNC
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DataType      string
	TypePrefix    string
	Params        map[string]string
	Pruned        []string
	Collapsed     []Group
	Debug         bool
	Verbose       bool
	NeuronLibPath string
	*bminfo.BMinfo
}

type Group

type Group []string

type Neuron

type Neuron struct {
	Params []string
}

type Node

type Node struct {
	Layer   int
	Pos     int
	Type    string
	Bias    float32
	Inputs  int
	Outputs int
}

type TrainedNet

type TrainedNet struct {
	Nodes         []Node
	Weights       []Weight
	Neurons       map[string]*Neuron
	NetConfig     *Config
	RegisterSize  int
	IOMode        uint8
	OperatingMode uint8
}

func (*TrainedNet) Init

func (n *TrainedNet) Init(config *Config) error

func (*TrainedNet) Normalize

func (n *TrainedNet) Normalize()

func (*TrainedNet) WriteBasm

func (n *TrainedNet) WriteBasm() (string, error)

type Weight

type Weight struct {
	Layer        int
	PosCurrLayer int
	PosPrevLayer int
	RelPosDown   int
	RelPosUp     int
	Value        float32
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL