npm install ml-matrix 这条命令会从npm(Node Package Manager)仓库中下载并安装ml-matrix包及其依赖项。 等待安装完成: 安装过程会根据你的网络连接速度和npm仓库的响应速度而有所不同。安装完成后,你应该会在命令行界面中看到类似+ ml-matrix@x.x.x的消息,表示ml-matrix已经成功安装。 验证安装(可选): 如果...
npm i ml-matrix-convolution constMatrixConvolution=require('ml-matrix-convolution');letmatrix=[[1,1,1,1,1],[1,1,1,1,1],[1,1,1,1,1],[1,1,1,1,1],[1,1,1,1,1],];letkernel=[[1,1,1],[1,1,1],[1,1,1],];letconv1=MatrixConvolution.direct(matrix,kernel);letconv2=Matr...
ml-matrix Matrix manipulation and computation library. Maintained byZakodium Installation $ npm install ml-matrix Usage As an ES module import{ Matrix }from'ml-matrix';constmatrix = Matrix.ones(5,5); As a CommonJS module const{ Matrix } =require('ml-matrix');constmatrix = Matrix.ones(5,...
npm i ml-matrix-convolution constMatrixConvolution=require('ml-matrix-convolution');letmatrix=[[1,1,1,1,1],[1,1,1,1,1],[1,1,1,1,1],[1,1,1,1,1],[1,1,1,1,1],];letkernel=[[1,1,1],[1,1,1],[1,1,1],];letconv1=MatrixConvolution.direct(matrix,kernel);letconv2=Matr...
$ npm install --save ml-confusion-matrix Usage Load the library // CommonJSconst{ ConfusionMatrix } =require('ml-confusion-matrix');// ES6 module syntaximport{ ConfusionMatrix }from'ml-confusion-matrix'; Instanciate from the list of true and predicted labels ...
nGMCA - non-negative Generalized Morphological Component Analysis A tool for non-negative matrix factorization. Instalation $ npm install ml-ngmca Usage import { nGMCA } from 'ml-ngmca'; const result = nGMCA(dataMatrix, options); As a CommonJS module const { nGMCA } = require('ml-ng...
$ npm install ml-matrix Usage As an ES module import{Matrix}from'ml-matrix';constmatrix=Matrix.ones(5,5); As a CommonJS module const{Matrix}=require('ml-matrix');constmatrix=Matrix.ones(5,5); API Documentation Examples Standard operations ...
matrix-peaks-finder The peak picking routines for 2D arrays. This library looks for the local maxima of the given input matrix. The input matrix has to be specified as a single vector. Installation npm i ml-matrix-peaks-finder License MIT...
npm i ml-matrix-convolution const MatrixConvolution = require('ml-matrix-convolution'); let matrix = [ [1, 1, 1, 1, 1], [1, 1, 1, 1, 1], [1, 1, 1, 1, 1], [1, 1, 1, 1, 1], [1, 1, 1, 1, 1], ]; let kernel = [ [1, 1, 1], [1, 1, 1], [1, 1,...