B样条线
BSplineANN是用于创建B样条人工神经网络的Javascript库。
安装
npm install --save bsplineann
范例(X-OR)
// Require the library
var BSplineANN = require('bsplineann');
// Create the vectors that will define the splines
var splines = [
[
[-0.3,-0.1,0.1,0.3],
[-0.3,-0.1,0.1,0.3]
],
[
[-0.1,0.3,0.7,1.1],
[-0.1,0.3,0.7,1.1]
],
[
[0.7,0.9,1.1,1.3],
[0.7,0.9,1.1,1.3]
]
];
// Build the n