Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/netsaur/web.ts>NetworkConfig

Powerful Powerful Machine Learning library with GPU, CPU and WASM backends
Latest
interface NetworkConfig
Re-export
import { type NetworkConfig } from "https://deno.land/x/netsaur@0.4.2/web.ts";

NetworkConfig represents the configuration of a neural network.

Properties

size: Shape<Rank>

Input size of the neural network.

layers: Layer[]

List of layers in the neural network.

optional
cost: Cost

Cost function used to train the neural network.

optional
optimizer: Optimizer

Optimizer to update parameters.

optional
scheduler: Scheduler

Learning rate scheduler.

optional
silent: boolean

Whether or not to silence the verbose messages.

optional
tolerance: number

Minimum threshold for weight updates in each epoch.

optional
patience: number

Number of disappointing iterations to allow before early stopping