Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/netsaur/src/core/mod.ts>NeuralNetwork

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

base class for neural network

Constructors

new
NeuralNetwork(config: NetworkConfig)

create a neural network

Methods

use network to predict data

save(str: string)

save model to binary file

Export the network in a JSON format

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

train network

Static Methods

Import the network in a JSON format

load(_str: string)

Load model from binary file