An TensorFlow 2 and Keras implementation of the paper: DeepFM, a Factorization-Machine based Neural Network for CTR Prediction.
-
Used feature_column and tf.data to perform feature engineering and built a TensorFlow input pipeline.
-
Implemented a custom Embedding layer and use Keras functional API to define the Model flexibly and elegantly.
- Add more feature column types supported.
- Exact model definition as a class into a python file.
- Use
tf.keras.estimator.model_to_estimator
to convert the Keras model to an Estimator.