Hi and welcome back to this birth.
So let's start this first obligation right now by importing the dependencies of the libraries, all
the packages that we will need for all codes to work properly.
So, of course, under the cloud, the first step is to connect on a server and why it's connecting.
There is one or two things that I want to mention.
The first one is that if you go to edit and notebook settings, you can see here that you can pick the
hardware accelerator.
So you have a choice between one which is working with the CPU.
GPU output is a kind of advanced GPU developed by Google and it's not always better than GPU.
It really depends on the application.
You'll see that we will use tabulator later for fine tuning, but because it has almost been made for
that.
But for now, as we are working with CNN, GPU is really grateful that application.
So don't forget to pick a GPU in Hollaway Accelerator, at least for this application, because it will
really increase the speed of the training.
And said something that some people have issues with sometimes is if you go to tools and said you can
change the settings of your editor and first you can of course, go to the doctor, which is for me,
way better for for the eyes, especially if you spend a long time in front of your computer, in front
of your Google file.
And the important thing is in the editor, you can choose the indentation size.
And I picked four.
So that's why in this file, all the indentation will be of four spaces.
So if you use exactly the same color as I do by downloading my Google column file, for instance, but
your editor is set on two spaces for an intention this would not work.
So you just have to have a look at this.
It's also really important to be on the same page.
So that was it.
Now we all connected, if you like the mouse here, you can see that it's connected to you.
Right.
And we could start importing the dependencies.
So first we will just import these turned out dependencies when we are dealing with Python, when we
are doing.
So the first one will be named by us.
And of course, then we will need the the math module.
So import math then import.
Right.
Which is or however you pronounce it, it's a module that allows us to do some advanced text processing.
You'll see that we will need that in the data processing.
I will explain you how to use it then import then does as PJI because our test sets and training sets
come in that c SB formats and we will extract that as a data frame actually before using it as regular
text.
So we will need the Punjab library then we will need from the S4 imports beautiful soup.
So this one we will use it because actually the texts from Twitter, they come in a special encoded
version.
That means that in order to encode and to make the texts they used XML, which is the kind of encoding
possibility.
So it's just that the text, the tweets, they will come in a certain way using some special tokens
related to this XML format.
So we were just this beautiful super tool to decode the text.
Finally, we will need random during the data processing.
And one special thing to import is from Google.
That club imports drive.
This is what we will use to get our data from our personal Google Drive.
So that's it for the standard packages that we want to import.
Next, we will need to import what is related to bots and for that we will need to download some packages
because it's not already in our server, it's that already in the Google Club.
So we need to install it.
And the way to do that is to call people install like in your local computer, for instance.
And as we all get in that book, we have to add this exclamation mark at the beginning, because people
install is not a python.
It's a command that you usually use in your terminal.
So that's why we add an exclamation mark at the beginning to tell the server that must not compute this
line as a python code, but as an instruction for the terminal or for the server.
So we will install, but for.
To you, which is tends to flow two, so that's a very useful package, which gives us all the basic
things about birds that we want to use in the first two applications.
That's not the official package from Google, but it's a lighter one that uses exactly the same code.
And it's really handy to use it's quite user friendly.
So that's what we will import.
And we will also need to install it, install sentence base, which is just something that word for
two requires in order to be called.
So let's run this.
This doesn't take so long, so we will just stay and watch all the old things being installed while
getting ready to import the last library's.
OK, so that's it.
Now we just have to import all the things that are related to tend to flow into, but so the default
version of to flow is still tends to flow one, not for long.
They will change that very soon on Google, but for now it is.
So we need to specify that we want to use denser flow too.
So we will set the version of tensor flow saying tend to float to point X.
This is something that only works on Google collapse.
So if you try it locally on your computer, it won't work.
But here we are.
We try that, except we catch the exception.
That's not really useful because this will work 100 percent, but whatever.
And so now we have set the 24 version to be two point X, so that means that we are ready to import
it.
So sense of flow.
As chief.
Now, why we have to do is to import dancefloor hub.
So what is dancefloor?
It's actually a tool, the platform where there are a lot of models that are uploaded.
So that's a place, if I may say so, where people upload models that are all the change and that they
come with optimizers and everything.
So when you want to download the core of birds, that has already be trained.
So when you want to download the weight of birds, we will need to have for instance, let's just have
a look with Denslow.
Had, for instance, what we get hate.
So if you click on Dancefloor Hub, we get here, it is described as a library for the publication Discovery
and consumption of reusable parts of machine learning models.
And so if you click here, you can have access to all the models that exists.
You can try to see what are the models that are released for text image and things like that.
And so describe what the model is and how you can download it.
So I will show you, of course, later how to use it in the code.
But that's what we will use in order to import the weights, the core of birds.
And then we also will use tends to float that here as well.
Front a lot of us.
We will import layers because we will build a lot of layers for our personal help model, I mean, our
CNN or CNN.
So in order to make the code lighter, I will say that tends to float, that the players will just be
called with layers that will make it easier.
And finally, of course, we need to import that, which is what we actually installed here for.
But for two, we can just imported using import bits so that it's actually that's not it's as I say
to.
And OK, perfect, so we can see that it's the right version of dancefloor that has been selected.
So now we are ready to use to flow to point all and all the tools that come with it.
So the next part will be the data processing.
So, of course, it's not the most exciting part, but we will try to go quickly through it.
So, Susan.