din

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2022 License: AGPL-3.0 Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DinNet

type DinNet struct {
	// contains filtered or unexported fields
}

func NewDinNet

func NewDinNet(
	uProfileDim, uBehaviorSize, uBehaviorDim int,
	iFeatureDim int,
	cFeatureDim int,
) *DinNet

func NewDinNetFromJson

func NewDinNetFromJson(data []byte) (din *DinNet, err error)

func (*DinNet) Fwd

func (din *DinNet) Fwd(xUserProfile, xUbMatrix, xItemFeature, xCtxFeature *G.Node, batchSize, uBehaviorSize, uBehaviorDim int) (err error)

Fwd performs the forward pass xUserProfile: [batchSize, userProfileDim] xUbMatrix: [batchSize, uBehaviorSize* uBehaviorDim] xUserBehaviors: [batchSize, uBehaviorSize, uBehaviorDim] xItemFeature: [batchSize, iFeatureDim] xContextFeature: [batchSize, cFeatureDim]

func (*DinNet) Graph

func (din *DinNet) Graph() *G.ExprGraph

func (*DinNet) In

func (din *DinNet) In() G.Nodes

func (*DinNet) Learnable added in v0.4.0

func (din *DinNet) Learnable() G.Nodes

func (*DinNet) Marshal

func (din *DinNet) Marshal() (data []byte, err error)

func (*DinNet) Out

func (din *DinNet) Out() *G.Node

func (*DinNet) SetVM

func (din *DinNet) SetVM(vm G.VM)

func (*DinNet) Vm

func (din *DinNet) Vm() G.VM

Jump to

Keyboard shortcuts

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