// this only runs epochs 3 and 4 unlike the documentation
const model = tf.sequential({
layers: [tf.layers.dense({units: 1, inputShape: [10]})]
});
model.compile({optimizer: 'sgd', loss: 'meanSquaredError'});
console.log(await model.fit(tf.ones([8, 10]), tf.ones([8, 1]),
{epochs: 5,
initialEpoch: 3}));