function Predict(inputs, size, model) { var inps = inputs.slice(Math.floor(size / 100 * inputs.length), inputs.length); const outps = model.predict(tf.tensor2d(inps, [inps.length, inps[0].length]).div(tf.scalar(10))).mul(10); return Array.from(outps.dataSync()); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)