Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
const trainModel = data => {
let weights = getRandomWeights();
let bias = getRandomBias();
for (let i = 0; i < 50000; i++) {
const randomIndex = getRandomIndex(data.length);
const input = getInput(data, randomIndex);
const target = getTarget(input);
const weightedSum = getWeightedInputSum(weights, input, bias);
...
...
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.