Skip to content

Added examples migrated to Keras 3 in examples_master.py #2246

Merged
sachinprasadhs merged 3 commits intokeras-team:masterfrom
dhantule:add-keras-3-updated-examples
Jan 21, 2026
Merged

Added examples migrated to Keras 3 in examples_master.py #2246
sachinprasadhs merged 3 commits intokeras-team:masterfrom
dhantule:add-keras-3-updated-examples

Conversation

@dhantule
Copy link
Contributor

@dhantule dhantule commented Jan 16, 2026

I have added examples that have been migrated to Keras 3 in the examples_master.py

  1. Highly accurate boundaries segmentation using BASNet PR
  2. Large-scale multi-label text classification PR
  3. Multimodal entailment PR
  4. Using the Forward-Forward Algorithm for Image Classification PR
  5. Approximating non-Function Mappings with Mixture Density Networks PR
  6. Classification with Gated Residual and Variable Selection Networks with HyperParameters tuning PR
  7. Electroencephalogram Signal Classification for Brain-Computer Interface PR
  8. Audio Classification with the STFTSpectrogram layer PR
  9. Self-supervised contrastive learning with SimSiam PR

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @dhantule, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request updates the examples_master.py script to accurately reflect the Keras 3 compatibility of several examples. By adding the keras_3: True flag to these entries, the change ensures that the example catalog correctly guides users to Keras 3-ready implementations, enhancing discoverability and utility for the Keras community.

Highlights

  • Keras 3 Compatibility: The 'Highly accurate boundaries segmentation using BASNet' example has been updated to include the keras_3: True flag, indicating its compatibility with Keras 3.
  • Keras 3 Compatibility: The 'Using the Forward-Forward Algorithm for Image Classification' example has been updated to include the keras_3: True flag, indicating its compatibility with Keras 3.
  • Keras 3 Compatibility: The 'Self-supervised contrastive learning with SimSiam' example has been updated to include the keras_3: True flag, indicating its compatibility with Keras 3.
  • Keras 3 Compatibility: The 'Large-scale multi-label text classification' example has been updated to include the keras_3: True flag, indicating its compatibility with Keras 3.
  • Keras 3 Compatibility: The 'Multimodal entailment' example has been updated to include the keras_3: True flag, indicating its compatibility with Keras 3.
  • Keras 3 Compatibility: The 'Classification with Gated Residual and Variable Selection Networks with HyperParameters tuning' example has been updated to include the keras_3: True flag, indicating its compatibility with Keras 3.
  • Keras 3 Compatibility: The 'Electroencephalogram Signal Classification for Brain-Computer Interface' example has been updated to include the keras_3: True flag, indicating its compatibility with Keras 3.
  • Keras 3 Compatibility: The 'Speaker Recognition' example has been updated to include the keras_3: True flag, indicating its compatibility with Keras 3.
  • Keras 3 Compatibility: The 'Audio Classification with the STFTSpectrogram layer' example has been updated to include the keras_3: True flag, indicating its compatibility with Keras 3.
  • Keras 3 Compatibility: The 'Approximating non-Function Mappings with Mixture Density Networks' example has been updated to include the keras_3: True flag, indicating its compatibility with Keras 3.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

The pull request successfully adds several new Keras 3 compatible examples to the examples_master.py file and updates an existing entry with the keras_3: True flag. The new entries correctly reflect the titles and subcategories of their respective examples. There are a few minor formatting inconsistencies that should be addressed for better code maintainability.

Copy link
Collaborator

@sachinprasadhs sachinprasadhs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Made some comments about ordering these examples.

Copy link
Collaborator

@sachinprasadhs sachinprasadhs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, Thanks

@sachinprasadhs
Copy link
Collaborator

Rebase with master to run with latest changes.

@dhantule dhantule force-pushed the add-keras-3-updated-examples branch from 7e094a5 to 6cd2f44 Compare January 21, 2026 05:25
@sachinprasadhs sachinprasadhs merged commit 58f925f into keras-team:master Jan 21, 2026
3 checks passed
@dhantule dhantule deleted the add-keras-3-updated-examples branch January 22, 2026 01:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants