Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Transfer Learning with TensorFlow

Avatar for Hiren Dave Hiren Dave
October 03, 2020

Transfer Learning with TensorFlow

Transfer Learning with TensorFlow session in HacktoberFest Ahmedabad 2020

Avatar for Hiren Dave

Hiren Dave

October 03, 2020
Tweet

More Decks by Hiren Dave

Other Decks in Technology

Transcript

  1. What is Transfer Learning It’s a technique in ML field

    where a model trained on one task is reused for similar or related task It improves performance of second task modeling It’s not just for images but can be used for many other areas
  2. Traditional Machine Learning Task 1 / Domain 1 Model 1

    Result Task 2 / Domain 2 Model 2 Result Training of same domain or related task
  3. Transfer Learning Task 1 / Domain 1 Model 1 Result

    Knowledge Sharing knowledge gained from one task to related task Model 2
  4. Machine Learning’s Next Frontier • Trasnfer learning will be the

    next driver of ML Success • So far many models are trained with high accuracy and good performance • Trained data is now available for many tasks and domains • Now it’s time to apply knowledge from this models to related tasks and domain • Expectations from end user is that model should perform many related tasks rather than the one on which it’s trained • Learn from many experiences and export knowledge to new environments
  5. Develop Model Approach • Source Task – Select a problem

    where plenty of data is available and have a relationship between input and output data. • Develop a Model - Develop a model for above task and ensure that some feature learning is performed • Reuse Model – This model can be reused as starting point for related tasks • Tune Model – Model can be tuned for related tasks to perform better
  6. Pre Trained Model Approach • Source Source Model – Pre

    trained model is selected from related models • Reuse Model – This model can be reused as starting point for related tasks • Tune Model – Model can be tuned for related tasks to perform better
  7. Applications of Transfer Learning • Learning from simulations • Transfer

    Learning in Computer Vision and CNN • Transfer Learning in NLP • Multi Tasking
  8. Transfer Learning Strategies • What to Transfer – Identify the

    features that can be transfered • When to Transfer – Making sure that transfer does not degrade the peformance • How to Trasnfer – Identify the ways to transfer knowledge to related tasks
  9. Transfer Learning Strategies • Inductive Transfer Learning • Same Source

    and Target Domain • Tasks are different • Labeled data is avaialble • Unsupervised Transfer Learning • Same Source and Target Domain • Tasks are different • No labeled data • Transductive Transfer Learning • Different Source and Target Domain • Tasks are similar • Source domain has labeled data
  10. TensorFlow • It’s an end to end open source machine

    learning platform • Easy Model Building • Developed to run large numerical computations • High level APIs • Supports Deep Learning, Nueral Networks etc.
  11. Datasets Available for Transfer Learning • Google’s word2vec Model •

    Stanford’s GloVe Model • FastText • Oxford VGG Model • Google Inception Model • Microsoft ResNet Model • ImageNet Model