Skip to main content
Module

x/netsaur/mod.ts>NeuralNetwork

Powerful machine learning, accelerated by WebGPU
Go to Latest
class NeuralNetwork
import { NeuralNetwork } from "https://deno.land/x/netsaur@0.1.1/mod.ts";

base class for neural network

Constructors

new
NeuralNetwork(config: NetworkConfig)

create a neural network

Type Parameters

optional
T extends DataType = DataType

Properties

network: Network

Methods

addLayers(layer: LayerConfig[])

add layers to network

get output of network

predict(data: DataArray<T>)

use network to predict data

setupBackend(gpu?, silent?)

setup backend and initialize network

train(
datasets: DataSet[],
epochs?,
batches?,
learningRate?,
)

train network