Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/netsaur/backends/cpu/backend.ts>CPUBackend

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

Constructors

new
CPUBackend(config: NetworkConfig)

Properties

optional
input: Size
layers: CPULayer[]
output: OutputLayer
silent: boolean

Methods

addLayer(layer: Layer): void
backpropagate(output: DataTypeArray, rate: number)
initialize(inputSize: Size, batches: number)
save(_str: string): void
setCost(activation: Cost): void
train(
datasets: DataSet[],
epochs?,
batches?,
rate?,
): void