Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fit function to work with adaptive step size #67252

Open
Danojungo opened this issue May 9, 2024 · 2 comments
Open

Fit function to work with adaptive step size #67252

Danojungo opened this issue May 9, 2024 · 2 comments
Assignees
Labels
stale This label marks the issue/pr stale - to be closed automatically if no activity stat:awaiting response Status - Awaiting response from author type:support Support issues

Comments

@Danojungo
Copy link

Hi,
Is there a way to make the generic fit function work but have different steps in each epoch?
I'm using tf.dataset.sample_from_datasets and I don't get the same amount of steps each epoch, I don't want to use repeat and I do want to run over all my positive samples without setting the steps_per_epoch.

@Venkat6871 Venkat6871 added the type:support Support issues label May 15, 2024
@Venkat6871
Copy link

Venkat6871 commented May 15, 2024

Hi @Danojungo ,

  • Sorry for the dealy, Could you use a custom training loop instead of the generic fit function. This approach provides more flexibility, allowing you to adjust the number of steps dynamically for each epoch.
  • The generic fit function in tensorflow does not support varying the number of steps per epoch directly.

Thank you!

@Venkat6871 Venkat6871 added the stat:awaiting response Status - Awaiting response from author label May 15, 2024
Copy link

This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.

@github-actions github-actions bot added the stale This label marks the issue/pr stale - to be closed automatically if no activity label May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale This label marks the issue/pr stale - to be closed automatically if no activity stat:awaiting response Status - Awaiting response from author type:support Support issues
Projects
None yet
Development

No branches or pull requests

2 participants