Skip to content

Incorrect description of 'epochs' in https://js.tensorflow.org/api/latest/#tf.LayersModel.fit #2727

@ToonTalk

Description

@ToonTalk

TensorFlow.js version

1.5.2

Browser version

Chrome Version 79.0.3945.130 (Official Build) (64-bit)

Describe the problem or feature request

When initialEpoch is provided then epochs does not describe "The number of times to iterate over the training data arrays." as documented in https://js.tensorflow.org/api/latest/#tf.LayersModel.fit

Code to reproduce the bug / link to feature request

// 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}));

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions