Comments (8)
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.
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:
from model-analysis.
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.
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.
We are using TFT, we'll keep an eye on the upcoming releases then. Thanks for your help!
from model-analysis.
@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.
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.
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)
- Unable to use custom Keras metrics with TFX evaluator component HOT 4
- AttributeError: partially initialized module error, test.py HOT 2
- Incorrect Documentation for MetricConfig
- Custom multilabel Keras metrics: dynamically initialize weight shape HOT 1
- Fairness indicator metrics do not show up HOT 5
- Validation bug when using feature values as slicing specs HOT 2
- No longer compatible with Dataflow runner v1 after v0.29
- Renaming Custom Layer breaks TFMA Evaluator HOT 6
- Error in merge_accumulators when using keras metrics on dataflow HOT 3
- TFMA analyze_raw_data function support with MultiClassConfusionMatrixPlot HOT 3
- Analytics HOT 1
- Breaking changes: tfma.metrics.MetricComputation `preprocessor` argument changed from accepting beam DoFn to `preprocessors` accepting a list of `Preprocessor` HOT 1
- Move to numpy >=1.20 because <1.20 is difficult to build on Apple Silicon HOT 4
- TFMA on Flink does not seems to be parallelizing work. HOT 5
- only integer values should be passed to num_instances metric. HOT 3
- Render_plot is failing HOT 2
- Feat: Have ability to return the HTML rather than creating the plots HOT 1
- CVE in Pyarrow dependency HOT 1
- CNN HOT 2
- pip install tensorflow-model-analysis fails on WSL2 on Windows 11 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from model-analysis.