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.3.0/src/core/mod.ts";

Sequential Neural Network

Constructors

new
Sequential(config: NetworkConfig)

Create a Sequential Neural Network.

Methods

predict(data: Tensor<Rank>, layers?: [number, number])
save(): Uint8Array
saveFile(path: string)
train(
datasets: DataSet[],
epochs?,
batches?,
rate?,
)

Static Methods

load(data: Uint8Array)

Load model from buffer

loadFile(data: string)

Load model from binary file