Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/netsaur/backends/cpu/layers/dense.ts>DenseCPULayer

Powerful machine learning, accelerated by WebGPU
Go to Latest
class DenseCPULayer
import { DenseCPULayer } from "https://deno.land/x/netsaur@0.1.5/backends/cpu/layers/dense.ts";

Base class for all layers.

Constructors

new
DenseCPULayer(config: DenseLayerConfig)

Properties

activationFn: CPUActivationFn
biases: CPUMatrix
costFunction: CPUCostFunction
input: CPUMatrix
output: CPUMatrix
outputSize: number
weights: CPUMatrix

Methods

backPropagate(
error: CPUMatrix,
rate: number,
_costFn?: CPUCostFunction,
)
initialize(inputSize: Size, batches: number)
reset(batches: number)