The .drft container · interface

DrftNetwork

Explained in The .drft container.

interface DrftNetwork
import type { DrftNetwork } from '@driftengine/drft';

Properties

NameTypeDescription
rolereadonlystringFour printable characters naming what the network is for.
inputsreadonlynumber
hiddenreadonlyreadonly number[]Hidden layer widths, input side first. At most NNET_MAX_HIDDEN.
outputsreadonlynumber
weightsreadonlyFloat32Array | Uint16ArraySingle-precision weights, or half-precision bits as the device uploads them.