TensorFlow Tutorial 07 - Functional API + Multi-output Project

Поделиться
HTML-код
  • Опубликовано: 4 окт 2024
  • New Tutorial series about TensorFlow 2! Learn all the basics you need to get started with this deep learning framework!
    Part 07: Functional API
    In this part we learn we can use the functional API and the advantages of this approach. The Keras functional API is a way to create models that are more flexible than the tf.keras.Sequential API. The functional API can handle models with non-linear topology, shared layers, and even multiple inputs or outputs. I will also walk you through a full example with 2 output predictions.
    ~~~~~~~~~~~~~~ GREAT PLUGINS FOR YOUR CODE EDITOR ~~~~~~~~~~~~~~
    ✅ Write cleaner code with Sourcery: sourcery.ai/?u... *
    Get my Free NumPy Handbook:
    www.python-eng...
    🚀🚀 Get exclusive content on Patreon: 🚀🚀
    / patrickloeber
    If you enjoyed this video, please subscribe to the channel!
    Course material is available on GitHub:
    github.com/pat...
    Links:
    www.tensorflow...
    www.tensorflow...
    You can find me here:
    Website: www.python-eng...
    Twitter: / patloeber
    GitHub: github.com/pat...
    Music: www.bensound.com/
    #Python
    Course Parts:
    01 TensorFlow Installation
    02 TensorFlow Tensor Basics
    03 TensorFlow Neural Net
    04 TensorFlow Linear Regression
    05 TensorFlow CNN (Convolutional Neural Nets)
    06 TensorFlow Save & Load Models
    07 TensorFlow Functional API
    08 TensorFlow Multi-output Project
    09 TensorFlow Transfer Learning
    10 TensorFlow RNN / LSTM / GRU
    11 TensorFlow NLP
    TensorFlow 2, Keras, Deep Learning, TensorFlow Course, TensorFlow Beginner Course, TensorFlow Tutorial
    ----------------------------------------------------------------------------------------------------------
    This is a sponsored link. By clicking on it you will not have any additional costs, instead you will support me and my project. Thank you so much for the support! 🙏

Комментарии • 31

  • @plusminuschirag
    @plusminuschirag 3 года назад +1

    There is no one who comes close to your explaining and originality. I am blown away by sheer clearance and hardwork being put into this. What do you actually do man?

    • @patloeber
      @patloeber  3 года назад

      Thanks so much! Really glad to hear that

  • @teetanrobotics5363
    @teetanrobotics5363 3 года назад +2

    Have watched almost every video on your channel. Love your content. It's one of the best courses ever. Could you please make courses on Modern Natural Language Processing and Computer Vision using PyTorch and Tensorflow showing how to implement the architectures of SOTA models?

  • @user-or7ji5hv8y
    @user-or7ji5hv8y 3 года назад +2

    Great video. Very clear and easy to follow.

  • @kitulinokitulino3360
    @kitulinokitulino3360 4 года назад +1

    Excellent. Thank u :)
    to create y_leftright, it is better to use numpy built-in functions and avoid looping in arrays for performance reasons in case dataset are big. Example :
    y_leftright = (y_train > 5) * 1

    • @patloeber
      @patloeber  4 года назад +1

      You’re absolutely right, thanks for the hint!

  • @MaxJr82
    @MaxJr82 3 года назад +2

    Amazing tutorial! Thank you very much for developing and providing such a high-quality and so inspiring tutorial series! I have just one question that I could not understand very well. How does the backpropagation work in this MNIST example where we have two different losses? How can the shared weights be updated in this case? Also, would be possible to have one output for classification and another one for regression with shared weights in this multi-branch architecture?

  • @rachit6099
    @rachit6099 4 года назад +2

    Your videos are amazing they help me alot

  • @davidcordova1773
    @davidcordova1773 2 года назад

    Amazing explanation

  • @silicondecay
    @silicondecay 4 года назад +1

    Thank you so much for all of these. Your series on coding algorithms only using numpy and python really helped me understand what the algorithms are doing. I really really appreciate you.
    I've been learning data science/machine learning from online materials over the past couple of months, but I was wondering how you learned it? Did you teach yourself or do something along the lines of going to university for computer science? If you did teach yourself or found other materials outside of your university coursework extremely helpful, is there anywhere you can't point me to so that way I can build the strongest foundation possible to work upwards? I know numpy, pandas, and matplotlib pretty well, and some sklearn and tensorflow, but I think I need to somehow (and I know this would be difficult to teach) learn more of the logic followed when people like yourself are coding things like these

    • @patloeber
      @patloeber  4 года назад +1

      Hi, thanks so much! I totally understand that the path to learn ML can be a bit difficult and overwhelming with all those topics. I got a strong theoretic foundation in university, and picked up the Python skills in my first job. Other then that I have some useful resources here: www.python-engineer.com/posts/ml-study-guide/. I myself learned pandas, numpy, matplotlib etc.with YT videos, and I also did Andrew NG's ML course, fast.ai course, Standford lecture on DL, and I have the book Hands-on Machine Learning with Scikit-Learn...

    • @silicondecay
      @silicondecay 4 года назад

      @@patloeber Thank you for all of this!

  • @mangilipallylaxminarayana3757
    @mangilipallylaxminarayana3757 3 года назад +1

    can we write this whole code in a class that is inherited from tf.keras.model, like we do in pytorch? If we can, please make a video on it. Please

  • @ahmetdikbayir6518
    @ahmetdikbayir6518 2 года назад

    Hello, Thank you so much for this video. It is really useful and simple to learn. I want to ask one question for the example of Functional API: For example Can I use functional API for predict the house price and city name?
    I think this is example of one input and two output. Am I right?

  • @shivkrishnajaiswal8394
    @shivkrishnajaiswal8394 2 года назад

    Great!!

  • @syinx2301
    @syinx2301 3 года назад

    Superb!

  • @ltoco4415
    @ltoco4415 2 года назад

    At 07:49, where does the new_model come from? we had created it when we created a sequential model but you seem to be using it in functional api as well. Or do you mean to say that we can create a functional model using Sequential as a starting point. The new_model variable creates a confusion for me.

  • @mahendrank9879
    @mahendrank9879 3 года назад

    why is that dense1 layer just hanging ....where it connected to the output layer? plz help me

  • @rs9130
    @rs9130 2 года назад

    hello author,
    i want to train a model to predict heatmap (mean square error loss) and binary segmentation (binary cross entropy loss).
    i tried to train model using multi branch (2 branch duplicates for 2 output). but the the final output will favour for only one type of output.
    For example when i train using model.fit with equal loss weights, the output is good for heatmap, but binary mask output is wrong and gives pixels 1 for the regions similar to heatmaps.
    And when i train using gradtape loop, the output is good for segmentation mask, but heatmaps are wrong and looks like masks.
    how can i solve this, please give me your suggestion.
    thank you

  • @hirnlos9462
    @hirnlos9462 2 года назад

    This is complety irrelevant to the topic of this video, but:
    model.summary() prints the summary of the model and returns None.
    So print(model.summary()) prints a None after the model summary.

  • @bosszz1282
    @bosszz1282 2 года назад

    Can you add auto subtitle for this?

  • @o_i_o5045
    @o_i_o5045 4 года назад +1

    Are you german? Great videos btw

    • @patloeber
      @patloeber  4 года назад +4

      Yes I am. It's hard to hide my accent ;)

  • @progra_kun4331
    @progra_kun4331 2 года назад

    subtitles please

  • @Blacklist_snap
    @Blacklist_snap Год назад

    thank you

  • @ntchindagiscard3870
    @ntchindagiscard3870 9 месяцев назад

    A real waste if time, just to see a single use case. I thought all the different use cases of the functional api has drawn on the IDE will be discussed but no, and I came juste for that 😢

  • @rspvsanjaykumargupta
    @rspvsanjaykumargupta 3 года назад

    kauon ke beech me koyal ko chup rahna padta hai