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

x/netsaur/packages/utilities/src/mod.ts>CategoricalEncoder.fromSoftmax

Powerful machine learning, accelerated by WebGPU
Go to Latest
method CategoricalEncoder.fromSoftmax
import { CategoricalEncoder } from "https://deno.land/x/netsaur@0.4.0-patch/packages/utilities/src/mod.ts";

Convert softmax outputs into categorical outputs This method mutates the original matrix.

Type Parameters

DT extends DataType

Parameters

data: MatrixLike<DT>

Returns

Matrix<DT>

The modified matrix.