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

x/netsaur/src/core/api/network.ts>NeuralNetwork

Powerful machine learning, accelerated by WebGPU
Go to Latest
interface NeuralNetwork
import { type NeuralNetwork } from "https://deno.land/x/netsaur@0.2.4/src/core/api/network.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