question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Standardize preprocessing call signature

See original GitHub issue

https://github.com/keras-team/keras-cv/pull/124#discussion_r806759607

grep -R "def call(" *

keras_cv/layers/preprocessing/grayscale.py:    def call(self, images, training=None):
keras_cv/layers/preprocessing/mix_up.py:    def call(self, images, labels, training=True):
keras_cv/layers/preprocessing/random_cutout.py:    def call(self, inputs, training=True):
keras_cv/layers/preprocessing/solarization.py:    def call(self, images):
keras_cv/layers/preprocessing/cut_mix.py:    def call(self, images, labels, training=True):
keras_cv/layers/preprocessing/grid_mask.py:    def call(self, images, training=None):
keras_cv/layers/preprocessing/equalization.py:    def call(self, images):

Do we want to standardize over images or inputs?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
LukeWoodcommented, Feb 27, 2022

Once: https://github.com/keras-team/keras/pull/16130

lands in nightly we can begin using it. I will begin migrating layers to use it.

1reaction
qlzh727commented, Feb 21, 2022

We will make it available as public API soon.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Preprocessing with sklearn: a complete and comprehensive ...
Standardization is a transformation that centers the data by removing the mean value of each feature and then scale it by dividing (non-constant) ......
Read more >
Feature preprocessing (standardize and normalize) and ...
Suppose I have 3 features, x, y, z . I know x and y are independent variables but z = x + y...
Read more >
Feature Scaling and its importance in Data Preprocessing
Feature scaling refers to the methods or techniques used to normalize the range of independent variables in our data, or in other words,...
Read more >
machine-learning-articles/how-to-normalize-or-standardize-a ...
Firstly, we will take a look at why you need a normalized or standardized ... called feature scaling - and it is applied...
Read more >
6.3. Preprocessing data — scikit-learn 1.2.0 documentation
In general, learning algorithms benefit from standardization of the data set. ... data unseen during the fit call: the same scaling and shifting...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found