Skip to content

Latest commit

 

History

History
64 lines (52 loc) · 5.06 KB

File metadata and controls

64 lines (52 loc) · 5.06 KB

ml-examples

These are Machine Learning examples I have created or adapted to give you a better understanding of my machine learning understanding. - Hamilton

CNN SVHN Classification

  • I created a CNN (Convolutional Neural Network) model to classify Street View House Numbers (SVHN)
  • This was the capstone project for the Coursera class Getting Started with Tensorflow 2 class
  • Current students of the Coursera Getting tarted with Tensorflow 2 class should not look at this example
  • CNN_SVHN_TF2_Capstone_Project_by_Hamilton_2020_12_3.pdf - .ipynb

Language Translation Model using Encoder RNN and Decoder RNN

  • I created this model that translated from English to Germman
  • This was the capstone project for the Coursera Customzing Your Models with Tensorflow 2 class
  • This project taught us Encoder/Decoder seq2seq architectures, using LSTMs (Long Short Term Memory)
  • This project was for learning purposes only and not production
  • Current students of this Customizing Your Models with Tensorflow 2 class should not look at this
  • Neural_Translation_Model_Capstone_Project_by_Hamilton_2021_1_12.pdf - .ipynb

Transformer Model Implementation for Language Translation

T5 Model and HuggingFace Framework Language Translation

Sentiment Analysis - Fine Tuning BERT model on IMDB

  • This example downloads BERT (Bidirectional Encoder Representations from Transformers) model from tfdev.hub
  • It also serves the model for inference via TensorFlow Serving
  • Trained the BERT model on the IMDB Movie Review dataset to make positive and negative sentiment classification predictions
  • Sentiment_Analysis_Fine_Tuning_a_BERT_model_on_IMDB.ipynb

Question Answering using BERT, Roberta & Electra Models Pretrained on Squad & Squad 2

BERT GLUE E2E on TPU Notebook

Image Segmentation Using U-Net

Image Object Detection and Instance Segmentation

Video Instance Segmentation and Object Detection Example

Live Demo of Blender Chatbot using the RoBERTa Transformer

  • I setup this demo with a modestly improved UI on Google Cloud using Docker

  • See a Blenderbot example conversation

  • Try it out at: https://blenderbot90m-wg5fqcbcta-uw.a.run.app (Can take 30 seconds for Google Cloud to load docker image in and startup)

  • Note, this demo uses the 90 million parameter small model. The much larger 2.7 billion and 9.4 billion parameters models will produce better conversations and can be run on more expensive hardware.

  • Here's the paper on BlenderBot developed by the Facebook AI team: https://arxiv.org/pdf/2004.13637.pdf* For comparison here's Mitsuki bot from Pandorabots which I did not find as good: https://https://chat.kuki.ai/