Open ValeriVoev opened 4 years ago
There is a function defined in FirstHTML.html in the Examples as follows:
async function doTraining(model){ const history = await model.fit(xs, ys, { epochs: 500, callbacks:{ onEpochEnd: async(epoch, logs) =>{ console.log("Epoch:" + epoch + " Loss:" + logs.loss); } } }); }
The issue is that xs and ys are globally defined variables and this function is not self-contained as is. Shouldn't xs and ys be passed as function arguments rather than as global variables?
xs
ys
There is a function defined in FirstHTML.html in the Examples as follows:
The issue is that
xs
andys
are globally defined variables and this function is not self-contained as is. Shouldn'txs
andys
be passed as function arguments rather than as global variables?