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

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

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

Sequential Neural Network

Constructors

new
Sequential(config: NetworkConfig)

Create a Sequential Neural Network.

Methods

Use the network to make predictions.

save(): Uint8Array

Save model to binary file

saveFile(path: string)

Save model to a buffer

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

Train the Neural Network.

Static Methods

load(data: Uint8Array)

Load model from buffer

loadFile(data: string)

Load model from binary file