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

Bump keras from 2.12.0 to 3.9.0 in /Sentiment Analyser #3216

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Mar 11, 2025

Bumps keras from 2.12.0 to 3.9.0.

Release notes

Sourced from keras's releases.

Keras 3.9.0

New features

  • Add new Keras rematerialization API: keras.RematScope and keras.remat. It can be used to turn on rematerizaliation for certain layers in fine-grained manner, e.g. only for layers larger than a certain size, or for a specific set of layers, or only for activations.
  • Increase op coverage for OpenVINO backend.
  • New operations:
    • keras.ops.rot90
    • keras.ops.rearrange (Einops-style)
    • keras.ops.signbit
    • keras.ops.polar
    • keras.ops.image.perspective_transform
    • keras.ops.image.gaussian_blur
  • New layers:
    • keras.layers.RMSNormalization
    • keras.layers.AugMix
    • keras.layers.CutMix
    • keras.layers.RandomInvert
    • keras.layers.RandomErasing
    • keras.layers.RandomGaussianBlur
    • keras.layers.RandomPerspective
  • Minor additions:
    • Add support for dtype argument to JaxLayer and FlaxLayer layers
    • Add boolean input support to BinaryAccuracy metric
    • Add antialias argument to keras.layers.Resizing layer.
  • Security fix: disallow object pickling in saved npz model files (numpy format). Thanks to Peng Zhou for reporting the vulnerability.

New Contributors

Full Changelog: keras-team/keras@v3.8.0...v3.9.0

Keras 3.8.0

New: OpenVINO backend

OpenVINO is now available as an infererence-only Keras backend. You can start using it by setting the backend field to "openvino" in your keras.json config file.

... (truncated)

Commits
  • eb1f844 Fix Discretization serialization when num_bins is used. (#20971)
  • 19b1418 Enable cuDNN RNNs when dropout is set and training=True (#20983)
  • 465a3d2 Update version number
  • 2688bfc Fix docstring
  • ff427e5 [Keras Ops and Layer] Add keras.ops.rms_norm() and keras.layers.RMSNormalizat...
  • f7115c2 Fix PyTorch stateful RNN/LSTM gradient computation error resolves #20875 (#20...
  • 7a7bca6 [OpenVINO backend] Support numpy.append (#20951)
  • c356cae Bump the github-actions group with 3 updates (#20975)
  • 0902ff4 [OpenVino BackEnd]support np.count_nonzero for ov BackEnd (#20945)
  • 21c8997 Make gaussian_blur to use scipy convolve2d (#20974)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    You can disable automated security fix PRs for this repo from the Security Alerts page.

Summary by Sourcery

Chores:

  • Update keras dependency to version 3.9.0.

Bumps [keras](https://github.com/keras-team/keras) from 2.12.0 to 3.9.0.
- [Release notes](https://github.com/keras-team/keras/releases)
- [Commits](keras-team/keras@v2.12.0...v3.9.0)

---
updated-dependencies:
- dependency-name: keras
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file Python labels Mar 11, 2025
Copy link

sourcery-ai bot commented Mar 11, 2025

Reviewer's Guide by Sourcery

This pull request updates the Keras library from version 2.12.0 to 3.9.0 by modifying the requirements.txt file.

Updated class diagram for Keras layers

Loading
classDiagram
    class Layer {
        +Layer()
        +__call__()
        +trainable: bool
        +name: str
    }
    class RMSNormalization {
        +RMSNormalization()
        +call()
    }
    class AugMix {
        +AugMix()
        +call()
    }
    class CutMix {
        +CutMix()
        +call()
    }
    class RandomInvert {
        +RandomInvert()
        +call()
    }
    class RandomErasing {
        +RandomErasing()
        +call()
    }
    class RandomGaussianBlur {
        +RandomGaussianBlur()
        +call()
    }
    class RandomPerspective {
        +RandomPerspective()
        +call()
    }

    Layer <|-- RMSNormalization : inherits
    Layer <|-- AugMix : inherits
    Layer <|-- CutMix : inherits
    Layer <|-- RandomInvert : inherits
    Layer <|-- RandomErasing : inherits
    Layer <|-- RandomGaussianBlur : inherits
    Layer <|-- RandomPerspective : inherits

    note for Layer "Base class for all layers"
    note for RMSNormalization "New layer: RMS Normalization"
    note for AugMix "New layer: AugMix"
    note for CutMix "New layer: CutMix"
    note for RandomInvert "New layer: RandomInvert"
    note for RandomErasing "New layer: RandomErasing"
    note for RandomGaussianBlur "New layer: RandomGaussianBlur"
    note for RandomPerspective "New layer: RandomPerspective"

File-Level Changes

Change Details Files
The Keras library was updated to version 3.9.0.
  • Updated the Keras library version from 2.12.0 to 3.9.0.
Sentiment Analyser/requirements.txt

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!
  • Generate a plan of action for an issue: Comment @sourcery-ai plan on
    an issue to generate a plan of action for it.

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

We have skipped reviewing this pull request. Here's why:

  • It seems to have been created by a bot (hey, dependabot[bot]!). We assume it knows what it's doing!
  • We don't review packaging changes - Let us know if you'd like us to change this.

Copy link

Due to inactivity this pull request has been marked as stale.

@github-actions github-actions bot added the Stale PRs with no updates label Mar 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file Python Stale PRs with no updates
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants