@@terokykun function logProgress(epoch, logs) { console.log('Data for epoch ' + epoch, logs); } paste this function just after the train function. it will fix it. it seems that he forgot to show that part in the video.
The function `logProgress` is specified for `onEpochEnd` but it is never defined in the slides, frustrating stuff. As mentioned elsewhere, the source code should have been available to download so these type of issues that arise from tutorial videos can be be resolved. Edit: The link to the completed project is actually right at the end of the video - may have been better to include this at the beginning of the video or in the video description as the errors are encountered before the end of the video.
I stuck in this part. I getting the error var src Backend = info.backend; ^ TypeError: Cannot read properties of undefined (reading 'backend') Is related to const outputTensor = tf.oneHot(tf.tensor1d(output, 'int32'), 10) I am following this curse using node.js localy in my computer. All examples before work just fine. Someone has this error? Or know someting to solve this?
Catch more episodes from Machine Learning for Web Developers (Web ML) → goo.gle/learn-WebML
7:45 i get an error saying:
caught (in promise) ReferenceError: logProgress is not defined
too
@@terokykun
function logProgress(epoch, logs) {
console.log('Data for epoch ' + epoch, logs);
}
paste this function just after the train function. it will fix it. it seems that he forgot to show that part in the video.
thx for your awesome support in the discord
The function `logProgress` is specified for `onEpochEnd` but it is never defined in the slides, frustrating stuff.
As mentioned elsewhere, the source code should have been available to download so these type of issues that arise from tutorial videos can be be resolved.
Edit: The link to the completed project is actually right at the end of the video - may have been better to include this at the beginning of the video or in the video description as the errors are encountered before the end of the video.
Hey - just saying - source code link should be in the notes...that's not an unreasonable request.
Ok he showed the link 18:05
0:41
I stuck in this part. I getting the error
var src Backend = info.backend; ^
TypeError: Cannot read properties of undefined (reading 'backend')
Is related to
const outputTensor = tf.oneHot(tf.tensor1d(output, 'int32'), 10)
I am following this curse using node.js localy in my computer.
All examples before work just fine.
Someone has this error? Or know someting to solve this?
0:10
4:00