Skip to main content
Module

x/netsaur/web.ts>NeuralNetwork

Powerful machine learning, accelerated by WebGPU
Go to Latest
interface NeuralNetwork
Re-export
import { type NeuralNetwork } from "https://deno.land/x/netsaur@0.2.6/web.ts";

Base Neural Network Structure. All Neural Networks should implement this.

Methods

train(
datasets: DataSet[],
epochs?: number,
rate?: number,
): void

Train the Neural Network with the given datasets. The number of epochs (default 1000) and the learning rate (default 0.1).

predict(data: Tensor<Rank>): Promise<Tensor<Rank>>

Use the network to make predictions on the given data.

save(str: string): void

Save model to binary file