async function doTraining(model){
    const history =
          await model.fit(xs, ys,
                { epochs: 500,
                  callbacks:{
                      onEpochEnd: async(epoch, logs) =>{
                          var temp = "Epoch: " + epoch
                                    + "  Loss: " + logs.loss
                          console.log(temp);
                          document.getElementById("boxed").innerHTML = temp;
                      }
                  }
                });
}
//since training model takes varient time we define a async funtion

since training model takes varient time we define a async funtion
since training model takes varient time we define a async funtion
async function doTraining(model){
    const history =
          await model.fit(xs, ys,
                { epochs: 500,
                  callbacks:{
                      onEpochEnd: async(epoch, logs) =>{
                          var temp = "Epoch: " + epoch
                                    + "  Loss: " + logs.loss
                          console.log(temp);
                          document.getElementById("boxed").innerHTML = temp;
                      }
                  }
                });
}
async function doTraining ( model ) { const history = await model . fit ( xs , ys , { epochs : 500 , callbacks : { onEpochEnd : async ( epoch , logs ) => { var temp = "Epoch: " + epoch + "  Loss: " + logs . loss console . log ( temp ) ; document . getElementById ( "boxed" ) . innerHTML = temp ; } } } ) ; }
since training model takes varient time we define a async funtion
since training model takes varient time we define a async funtion