Skip to main content

Embeddings & Estimators

  • Embeddings
  • Custom Estimators

Embeddings​

An embedding of a vector is another vector in a smaller dimensional space

  • Manage sparse data
  • Make machine learning models that use sparse data consume less memory and train faster
  • Reduce dimensionality
  • Increase model generalization
  • Cluster observations

https://www.toptal.com/machine-learning/embeddings-in-machine-learning

Embeddings | Machine Learning | Google for Developers

Summary of Embeddings​

image

image

image

image

image

image

Recommendations​

image

image

image

image

https://www.learndatasci.com/tutorials/building-recommendation-engine-locality-sensitive-hashing-lsh-python

Data Driven Embeddings​

image

image

image

image

Sparse Tensors​

image

image

image

image

Train an Embedding​

image

image

image

Similarity Property​

image

image

image

image

image

image

image

Custom Estimator​

  • Go beyond canned estimators
  • Write a custom estimator
  • Gain control over model functions
  • Incorporate Keras models into Estimator

image

image

image

image

Model Function​

image

image

image

image

  • Keras is a high-level deep neural network library that support multiple backends

image

image

image

image

image