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

x/netsaur/web.ts>Sequential

Powerful Powerful Machine Learning library with GPU, CPU and WASM backends
Latest
class Sequential
implements NeuralNetwork
import { Sequential } from "https://deno.land/x/netsaur@0.4.2/web.ts";

Sequential Neural Network

Constructors

new
Sequential(config: NetworkConfig)

Create a Sequential Neural Network.

Methods

predict(data: Tensor<Rank>, config?: { postProcess?: PostProcessor; layers?: [number, number]; }): Promise<Tensor<Rank>>
save(): Uint8Array
saveFile(path: string): void
train(
datasets: DataSet[],
epochs?,
batches?,
rate?,
): void

Train the network using a set of training data.

Static Methods

load(data: Uint8Array): Sequential

Load model from buffer

loadFile(data: string): Sequential

Load model from binary file