i am getting the model summary in console log, but on the fit method some errors are coming
__________________________________________________________________________________________ tfjs@latest:17:574250
Layer (type) Input Shape Output shape Param # tfjs@latest:17:575422
========================================================================================== tfjs@latest:17:574277
flatten_Flatten4 (Flatten) [[null,7,7,1024]] [null,50176] 0 tfjs@latest:17:575422
__________________________________________________________________________________________ tfjs@latest:17:574364
dense_Dense7 (Dense) [[null,50176]] [null,100] 5017700 tfjs@latest:17:575422
__________________________________________________________________________________________ tfjs@latest:17:574364
dense_Dense8 (Dense) [[null,100]] [null,5] 505 tfjs@latest:17:575422
========================================================================================== tfjs@latest:17:574364
Total params: 5018205 tfjs@latest:17:574482
Trainable params: 5018205 tfjs@latest:17:574513
Non-trainable params: 0 tfjs@latest:17:574547
__________________________________________________________________________________________
this is the error i am getting after model summary
tfjs@latest:17:574585
Uncaught (in promise) TypeError: e is null
r https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@latest:17
phe https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@latest:17
value https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@latest:17
e https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@latest:17
h https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@latest:17
w https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@latest:17
x https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@latest:17
u https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@latest:17
o https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@latest:17
c https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@latest:17
c https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@latest:17
value https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@latest:17
e https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@latest:17
h https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@latest:17
w https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@latest:17
x https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@latest:17
u https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@latest:17
o https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@latest:17
c https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@latest:17
c https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@latest:17
value https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@latest:17
e https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@latest:17
h https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@latest:17
w https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@latest:17
x https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@latest:17
u https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@latest:17
o https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@latest:17
c https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@latest:17
c https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@latest:17
value https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@latest:17
train http://localhost:5001/C1_W4_Assignment.js:63
doTraining http://localhost:5001/C1_W4_Assignment.js:152
onclick http://localhost:5001/rpsls.html:1
this is the 63rd line in C1_W4_Assignment.js
model.summary();
let loss = 0;
model.fit(dataset.xs, dataset.ys, { /// 63rd line
epochs: 10,
callbacks: {
onBatchEnd: async (batch, logs) => {
loss = logs.loss.toFixed(5);
console.log('LOSS: ' + loss);
}
}
});
i am getting a window indicating model training got completed, but the training is not staring on checking the console