TensorFlow Probability: Learning with confidence (TF Dev Summit '19)

Поділитися
Вставка
  • Опубліковано 14 чер 2024
  • TensorFlow Probability (TFP) is a Python library built on TensorFlow that makes it easy to combine probabilistic models and deep learning on modern hardware (TPU, GPU). It's for data scientists, statisticians, and ML researchers/practitioners who want to encode domain knowledge to understand data and make predictions with uncertainty estimates. In this talk we focus on the "layers" module and demonstrate how TFP "distributions" fit naturally with Keras to enable estimating aleatoric and/or epistemic uncertainty.
    See the revamped dev site → www.tensorflow.org/
    Watch all TensorFlow Dev Summit '19 sessions → bit.ly/TFDS19Sessions
    Event homepage → bit.ly/TFDS19
    Subscribe to the TensorFlow UA-cam channel → bit.ly/TensorFlow1
    Speaker:
    Josh Dillon, Software Engineer
    Music by Terra Monk → bit.ly/TerraMonkTFDS
    Event Photo Album → bit.ly/TFSummit19
    event: TensorFlow Dev Summit 2019; re_ty: Publish; product: TensorFlow - TensorFlow Probability; fullname: Josh Dillon;
  • Наука та технологія

КОМЕНТАРІ • 53

  • @myfelicidade
    @myfelicidade 5 років тому +26

    As an applied mathematician, if I had to thank Google for a single thing, it would be this. Really going one step further in scientific inference.

  • @autripat
    @autripat 5 років тому +21

    I'm impressed with the presenter's delivery. Well done! And funny!

  • @user-or7ji5hv8y
    @user-or7ji5hv8y 5 років тому +32

    What would be really cool would be a series of instructional videos on using TF Probability, like the Coursera course for Tensorflow recently. The material seems be be more challenging than tensorflow for CNN.

  • @pole_datadev8389
    @pole_datadev8389 4 роки тому +2

    The more I dig into tensorflow, the more I realize how incredible is this tool. Great job, I am sure investing time learning tensorflow is no waste of time

  • @Veqtor
    @Veqtor 5 років тому +9

    Hell yes TFP team, making my life easier! (and making my code readable, through Keras, for my team members) :D

  • @bobsalita3417
    @bobsalita3417 5 років тому +48

    Don't watch this if you get jealous of what other people know. I'm feeling like I've been remanded back to Machine Learning 101.

    • @EvanZamir
      @EvanZamir 5 років тому +2

      Hey it just means you have more upside!

  • @raulingaverage
    @raulingaverage 5 років тому

    This is amazing!

  • @benjamindeporte3806
    @benjamindeporte3806 7 місяців тому

    Outstanding

  • @malharjajoo7393
    @malharjajoo7393 4 роки тому

    7:17 - interestingly, I think the reason why we end up with a line for the mean and variance is because there is only one layer in the network
    (and hence, mean = theta0 + theta1 * x1 + theta2*x1 +... and hence this will be equation of a line.)

  • @jordia.2970
    @jordia.2970 2 роки тому

    Amazing man

  • @prof_shixo
    @prof_shixo 4 роки тому +2

    In the end, it looks like a Gaussian process with automatic feature extraction layers!

  • @youkorii
    @youkorii 2 роки тому

    1. Before training the network it must return the prior distribution of the outputs for any input, am I wrong?
    2. If we have (1) how to show that the training procedure is using Bayes Rule to update the priors, I mean replacing X by X|y?

  • @jamesmckeown4743
    @jamesmckeown4743 5 років тому +3

    And nine days later... AttributeError: module 'tensorflow_probability.python.layers' has no attribute 'VariationGaussianProcess'

  • @fwbadine
    @fwbadine 5 років тому +1

    Is there a newer version of the book? Josh said: "check out this book which we rewrote using TF probability" .... where can this newer version be found? Thanks!

    • @EvanZamir
      @EvanZamir 5 років тому

      It's on github. github.com/CamDavidsonPilon/Probabilistic-Programming-and-Bayesian-Methods-for-Hackers/blob/master/Chapter1_Introduction/Ch1_Introduction_TFP.ipynb

  • @malharjajoo7393
    @malharjajoo7393 4 роки тому

    7:30 - Looks like a Gaussian Process Deep Neural Network (GPDNN) ?

  • @jamesbarker6373
    @jamesbarker6373 5 років тому +25

    What is the probability I'll be using this? 100%

    • @malharjajoo7393
      @malharjajoo7393 4 роки тому

      lol, good one.

    • @jordyvanlandeghem3457
      @jordyvanlandeghem3457 4 роки тому

      this was my prior too!

    • @telofy
      @telofy 3 роки тому

      I don’t think this estimate took into account the risk of complete human extinction within hours after posting it.

  • @wasgeht2409
    @wasgeht2409 5 років тому +1

    @TensorFlow one question , I want to use it in anaconda . First I install tensorflow-probability but than if I want to use It I get the error "module TensorFlow has no attribute contrib" . Before that I upgraded TensorFlow. So I am very confused

    • @MrSensharma
      @MrSensharma 5 років тому

      If you have updated to tensorflow 2.0, then you need to install tfp-nightly. See github.com/tensorflow/probability/issues/320

    • @JohnDavis_NetSkink_Computing
      @JohnDavis_NetSkink_Computing 5 років тому

      Do you have tf2.0? I believe this part of tf2.0

  • @kibbutztradelink2287
    @kibbutztradelink2287 4 роки тому

    how to update all reference to tfp.distributions instead of tf.distributions?

  • @starlwe
    @starlwe 4 роки тому

    The sample code doesn't seem to work in TF 2.0? Is there an update for TF 2.0?

  • @raminrasoulinezhad
    @raminrasoulinezhad 3 роки тому

    great

  • @wasgeht2409
    @wasgeht2409 5 років тому +1

    wow

  • @adammcallister8195
    @adammcallister8195 4 роки тому

    1) Where do you get the "dots" from?
    2) Does all data have to be converted to these "dots" or can a CSV file work?
    3) How would you create data and convert them into these "dots", is there a special program.
    4) What is the best way for tensorflow to predict data? I have been watching a ton of videos and this is the first time I seen these "dot" system all the videos I have been watching have been using CSV files from MNIST Dataset. (either locally or linked to a website"
    ** I am from a journalistic background and I do appreciate the presentations but a lot of these tutorials are either : Outdated, code does not work on computer, but will work on theirs (teachers)
    Not clear on how you get data, how to create your own data, where do you put your data(files) so that tensorflow can access it.?

    • @Luticor
      @Luticor 4 роки тому

      I'm a little late to reply. If you are referring to the plotted example points as "dots", those are likely generated by adding random noise to a predetermined function, and could be stored in a CSV, binary, or in memory. You could generate the data using Excel or MATLAB/Octave, but most likely all this was done in Python or R using a Jupyter Notebook. You may need to watch some tutorials on neural networks to get a gist for how machine learning works and how TF is used, essentially TF is a framework most-often used for creating and training neural networks and other architectures that require backpropagation.
      In addition to calling and running the Tensorflow API, most of the preprocessing (generating data, normalizing, sorting) and post-processing (saving, plotting, etc) will be done using a programming language such as Python or R.

  • @malharjajoo7393
    @malharjajoo7393 4 роки тому

    Is TFP offering a similar functionality (or vice versa) as Uber's Pyro ?

    • @JoshuaDillon82
      @JoshuaDillon82 4 роки тому +1

      Like what specifically? (Also note: a lot of pyro is actually based on TFP including distribution shape semantics, bijectors, use of coroutine for joint distributions, etc.)

  • @skywalkerwin8403
    @skywalkerwin8403 5 років тому +3

    "But wait, there's more..."

  • @AmineBenKhalifa
    @AmineBenKhalifa 5 років тому +5

    Where can I get the book?

    • @alex_smallet
      @alex_smallet 5 років тому

      Here, of course - www.amazon.com/Bayesian-Methods-Hackers-Probabilistic-Addison-Wesley-ebook-dp-B016060UHA/dp/B016060UHA/ref=mt_kindle

    • @ooiboonpin8788
      @ooiboonpin8788 5 років тому +1

      camdavidsonpilon.github.io/Probabilistic-Programming-and-Bayesian-Methods-for-Hackers/

    • @DivyanshuKalra1996
      @DivyanshuKalra1996 5 років тому

      github.com/CamDavidsonPilon/Probabilistic-Programming-and-Bayesian-Methods-for-Hackers

    • @adamq123
      @adamq123 5 років тому

      camdavidsonpilon.github.io/Probabilistic-Programming-and-Bayesian-Methods-for-Hackers/

    • @ivankissiov
      @ivankissiov 5 років тому

      www.amazon.com/Bayesian-Methods-Hackers-Probabilistic-Addison-Wesley-ebook/dp/B016060UHA/ref=sr_1_1?keywords=bayes+for+hacker&qid=1552242788&s=gateway&sr=8-1-spell
      github.com/CamDavidsonPilon/Probabilistic-Programming-and-Bayesian-Methods-for-Hackers

  • @magno5157
    @magno5157 5 років тому +2

    tf.keras is so bloody awkward to type everytime.
    from tensorflow import keras as tk

    • @WillTesler
      @WillTesler 5 років тому

      Or avoid it entirely like
      `from tensorflow.python.keras.layers import Dense`

  • @danielkrajnik3817
    @danielkrajnik3817 3 роки тому

    2:57 glitch in the tensor

  • @UFOgamers
    @UFOgamers 5 років тому

    Mixed models

  • @abhishekshah11
    @abhishekshah11 5 років тому +2

    Okay I feel stupid.

    • @navjotsingh2251
      @navjotsingh2251 4 роки тому +1

      Don’t feel stupid. you don’t need to know everything, this is just machine learning but with LOTS of probability theory. You can do the same things with just neural networks.

  • @user-fi5ly8me9j
    @user-fi5ly8me9j 5 років тому +9

    rip ai for u if ur bad at math

    • @harjitsingh7308
      @harjitsingh7308 5 років тому +2

      Tbh all you need is numerical analysis and bayesian statistics. If you know these two plus a programming language then you are golden

    • @malharjajoo7393
      @malharjajoo7393 4 роки тому

      @@harjitsingh7308 Lol, surely there's a lot more math (derivatives, optimization theory, etc) involved

  • @radenmuaz7125
    @radenmuaz7125 5 років тому +6

    Pytorch is losing ground. Lack of engineers is real.

    • @malharjajoo7393
      @malharjajoo7393 4 роки тому

      @SMC Good point, Is Pyro offering a similar functionality as Tensforflow probability ? I've recently stumbled across Pyro (or even probablistic programming as a matter of fact)

  • @kimchi_taco
    @kimchi_taco 3 роки тому

    Ok, what is 'Unknown known'? a.k.a You don't know what you know.
    * Known unknown: data variance, Heteroskedastic, aleatoric uncertainty, you know what you don't know.
    * Unknown unknown: Bayesian posterior p(w|x), distribution over the weights, epistemic uncertainty, you don't know what you don't know.