Code Monkey home page Code Monkey logo

Comments (8)

rclough avatar rclough commented on July 16, 2024 1

To add a bit of additional context, in case its important, I based the training for the Keras model based on the code from this ipynb example: https://github.com/tensorflow/tfx/blob/master/tfx/examples/chicago_taxi_pipeline/taxi_pipeline_native_keras.py

which is to say, this module file: https://github.com/tensorflow/tfx/blob/master/tfx/examples/chicago_taxi_pipeline/taxi_utils_native_keras.py

we have some slight modifications in terms of removing some of the transform features (specifically the bucket features), but its pretty much otherwise the same. If the problem may be in the construction of the model I could provide the exact code we have.

from model-analysis.

mdreves avatar mdreves commented on July 16, 2024 1

I can't be certain without more logs, but it looks like the 'tips' feature is not present in all of the input examples (or was removed later on in the pipeline). Note that because keras doesn't have support for label transformations yet, TFMA requires the label that is used to be present in the raw inputs. The taxi example was updated to add a 'big_tipper' label to account for this:

https://github.com/tensorflow/tfx/blob/1985b30b39d8833b6fe724828ce97441813cdb5a/tfx/examples/chicago_taxi_pipeline/taxi_utils_native_keras.py#L65

from model-analysis.

sngahane avatar sngahane commented on July 16, 2024

Thanks a lot @mdreves, we confirm it is now working for us! Do you have a timeline on when support for label transformations could be added to Keras?

from model-analysis.

mdreves avatar mdreves commented on July 16, 2024

It depends on KPL (keras preprocessing layer) support, but we are actively working on this quarter. If you are using TFT (tensorflow transform) with keras then that will likely land first.

from model-analysis.

sngahane avatar sngahane commented on July 16, 2024

We are using TFT, we'll keep an eye on the upcoming releases then. Thanks for your help!

from model-analysis.

axeltidemann avatar axeltidemann commented on July 16, 2024

@sngahane @mdreves which TFX version allows for Keras label transformations? I did not see it mentioned on the release notes. I am currently on 0.27.0, and I am hesitant to upgrade as I know there will be lots of things to change.

from model-analysis.

axeltidemann avatar axeltidemann commented on July 16, 2024

I see that @mdreves committed changes in the taxi example for Keras label transformations. A strong argument for me to upgrade to 1.0.0.

from model-analysis.

andrewsmartin avatar andrewsmartin commented on July 16, 2024

Hi @axeltidemann, those committed changes above have made it into the 0.28 release, so any version >= 0.28 should have this support.

from model-analysis.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.