Placeholder Image

字幕表 動画を再生する

  • in this episode, we're going to create a very simple machine learned model and converted to tensorflow Light for use on mobile or I ot devices to start will create a simple model using care us.

  • The simplest possible neural network has one layer with one unit, and that takes a single input in care.

  • US.

  • You'll then compile the model specifying two functions, the lost function and the optimizer on every iteration.

  • The framework calculates the loss using the method specified and then tries to optimize the neural network using the optimizer that specified.

  • Now we'll create a set of X values from negative ones of four, and now I'll create a set of corresponding Why values for these X values.

  • The goal will be to infer the relationship between the two.

  • Can you see what it is?

  • Every y value is two X minus one.

  • So where X is minus one, why is minus three where X zero?

  • Why is minus one, etcetera, etcetera.

  • To train the neural network, we use model dot faint passing it.

  • The ex is the wise and a number of iterations that we want to train for in this case will say 500.

  • So how do we test the model to see if a cannon fair y equals two X minus one for a new value that's achieved?

  • Using the predict method, we simply past 10 into it in an input shape, which is an array of one.

  • We then run the code on the network will be trained, and we'll see that the output is 19.5 which is very close to our desired value.

  • Given that we train the network with a very small data set, it's still quite impressive.

  • Now that we have a model, we can save it out as a file.

  • This is achieved using the save model method and care us.

  • We'll run it on will then see that linear don't H five is created.

  • Finally will convert to T F light using the Tokyo converter.

  • This is achieved with the from caress model file Method will pass the caress file into it.

  • We then called a converted to convert and save its results is linear dot cf light.

  • We can run it and then we'll see that linear dot cf Lite has created for us to learn more about tensorflow.

  • Visit tensorflow dot or ge on while you're at it.

  • Don't forget to subscribe to this channel.

in this episode, we're going to create a very simple machine learned model and converted to tensorflow Light for use on mobile or I ot devices to start will create a simple model using care us.

字幕と単語

動画の操作 ここで「動画」の調整と「字幕」の表示を設定することができます

B1 中級

MLモデルをTensorFlow Liteに変換する方法 (TensorFlow Tip of the Week) (How to convert your ML model to TensorFlow Lite (TensorFlow Tip of the Week))

  • 0 0
    林宜悉 に公開 2021 年 01 月 14 日
動画の中の単語