微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

ml.js

编程之家收集整理的这个编程导航主要介绍了ml.js编程之家,现在分享给大家,也给大家做个参考。

ml.js 介绍

一组存储库,为mljs组织开发的JavaScript提供机器学习工具,包括监督和无监督学习,人工神经网络,回归算法和统计,数学等支持库。  基本涵盖数组运算、矩阵运算、各种线性回归及非线性回归。现在来逐一解释每个包的功能,以后逐一进行实践。

ml-array

ml-array-max 求得数组中最大元素。

import max from 'ml-array-max';

const result = max([1,5,3,2,4]);

//result = 5

ml-array-min 求得数组中最小元素。

import min from 'ml-array-min';

const result = min([1,4]);

//result = 1

ml-array-rescale 进行数组乘除变化。

import rescale from 'ml-array-rescale';

const result = rescale([0,1,4]);

// [0,0.25,0.5,0.75,1]

ml-distance-euclidean 求两向量的欧式距离

euclidean(p,q)

//Returns the Euclidean distance between vectors p and q.

euclidean.squared(p,q)

//Returns the squared Euclidean distance between vectors p and q.

ml-kernel

ml-kernel函数计算相关包。

网站地址:https://github.com/mljs

GitHub:https://github.com/mljs/ml

网站描述:很多库的一个集合存储库

ml.js

官方网站:https://github.com/mljs

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。