title
stringlengths
12
112
published
stringlengths
19
23
url
stringlengths
28
28
video_id
stringlengths
11
11
channel_id
stringclasses
5 values
id
stringlengths
16
31
text
stringlengths
0
596
start
float64
0
37.8k
end
float64
2.18
37.8k
Making The Most of Data: Augmented SBERT
2021-12-17 14:24:40 UTC
https://youtu.be/3IPCEeh4xTg
3IPCEeh4xTg
UCv83tO5cePwHMt1952IVVHw
3IPCEeh4xTg-t3129.2
that evaluation script. And what we're going to pass here is we have all three. All three the
3,129.2
3,144.96
Making The Most of Data: Augmented SBERT
2021-12-17 14:24:40 UTC
https://youtu.be/3IPCEeh4xTg
3IPCEeh4xTg
UCv83tO5cePwHMt1952IVVHw
3IPCEeh4xTg-t3137.68
cross encoder the sentence transformer train using augmented expert and also a sentence
3,137.68
3,153.84
Making The Most of Data: Augmented SBERT
2021-12-17 14:24:40 UTC
https://youtu.be/3IPCEeh4xTg
3IPCEeh4xTg
UCv83tO5cePwHMt1952IVVHw
3IPCEeh4xTg-t3144.96
transformer trained purely on the gold data set. So first let's have a look at the STSB gold data
3,144.96
3,166.48
Making The Most of Data: Augmented SBERT
2021-12-17 14:24:40 UTC
https://youtu.be/3IPCEeh4xTg
3IPCEeh4xTg
UCv83tO5cePwHMt1952IVVHw
3IPCEeh4xTg-t3153.84
set trained model. So run this. It might take a moment to download it. Okay so everything's
3,153.84
3,175.76
Making The Most of Data: Augmented SBERT
2021-12-17 14:24:40 UTC
https://youtu.be/3IPCEeh4xTg
3IPCEeh4xTg
UCv83tO5cePwHMt1952IVVHw
3IPCEeh4xTg-t3166.48
downloaded and then we've got a score of 0.506. So it correlates to the predictions of the model
3,166.48
3,186.48
Making The Most of Data: Augmented SBERT
2021-12-17 14:24:40 UTC
https://youtu.be/3IPCEeh4xTg
3IPCEeh4xTg
UCv83tO5cePwHMt1952IVVHw
3IPCEeh4xTg-t3175.76
correlate to the actual scores with a 50% correlation. So they do correlate. It's not bad.
3,175.76
3,195.44
Making The Most of Data: Augmented SBERT
2021-12-17 14:24:40 UTC
https://youtu.be/3IPCEeh4xTg
3IPCEeh4xTg
UCv83tO5cePwHMt1952IVVHw
3IPCEeh4xTg-t3186.48
It's not great either. Let's have a look at the cross encoder. So again cross encoder.
3,186.48
3,205.12
Making The Most of Data: Augmented SBERT
2021-12-17 14:24:40 UTC
https://youtu.be/3IPCEeh4xTg
3IPCEeh4xTg
UCv83tO5cePwHMt1952IVVHw
3IPCEeh4xTg-t3197.28
Okay and we get score of 0.58. So as we would expect training on just the gold data
3,197.28
3,211.92
Making The Most of Data: Augmented SBERT
2021-12-17 14:24:40 UTC
https://youtu.be/3IPCEeh4xTg
3IPCEeh4xTg
UCv83tO5cePwHMt1952IVVHw
3IPCEeh4xTg-t3205.12
the cross encoder does outperform the the by encoder or sentence transformer. And the final
3,205.12
3,219.28
Making The Most of Data: Augmented SBERT
2021-12-17 14:24:40 UTC
https://youtu.be/3IPCEeh4xTg
3IPCEeh4xTg
UCv83tO5cePwHMt1952IVVHw
3IPCEeh4xTg-t3211.92
one would be okay with the augmented data how does the sentence transformer perform.
3,211.92
3,233.44
Making The Most of Data: Augmented SBERT
2021-12-17 14:24:40 UTC
https://youtu.be/3IPCEeh4xTg
3IPCEeh4xTg
UCv83tO5cePwHMt1952IVVHw
3IPCEeh4xTg-t3220.16
So let's run that again. Not a way to download. And we get a much better score of 0.69. So yeah
3,220.16
3,240.08
Making The Most of Data: Augmented SBERT
2021-12-17 14:24:40 UTC
https://youtu.be/3IPCEeh4xTg
3IPCEeh4xTg
UCv83tO5cePwHMt1952IVVHw
3IPCEeh4xTg-t3233.44
the correlation there is much higher than this for the augmented data set than if we had just
3,233.44
3,246.08
Making The Most of Data: Augmented SBERT
2021-12-17 14:24:40 UTC
https://youtu.be/3IPCEeh4xTg
3IPCEeh4xTg
UCv83tO5cePwHMt1952IVVHw
3IPCEeh4xTg-t3240.08
used a gold data set. So it really really has improved the performance a lot. Now this is
3,240.08
3,254.08
Making The Most of Data: Augmented SBERT
2021-12-17 14:24:40 UTC
https://youtu.be/3IPCEeh4xTg
3IPCEeh4xTg
UCv83tO5cePwHMt1952IVVHw
3IPCEeh4xTg-t3246.88
maybe an atypical performance increase. It's something like 90% or 19 point increase in
3,246.88
3,261.52
Making The Most of Data: Augmented SBERT
2021-12-17 14:24:40 UTC
https://youtu.be/3IPCEeh4xTg
3IPCEeh4xTg
UCv83tO5cePwHMt1952IVVHw
3IPCEeh4xTg-t3254.64
performance and that's good. But if you look at the the original paper from Nils Reimers and Co.
3,254.64
3,270.72
Making The Most of Data: Augmented SBERT
2021-12-17 14:24:40 UTC
https://youtu.be/3IPCEeh4xTg
3IPCEeh4xTg
UCv83tO5cePwHMt1952IVVHw
3IPCEeh4xTg-t3261.52
they found a sort of expected performance increase of I believe seven or nine points.
3,261.52
3,277.68
Making The Most of Data: Augmented SBERT
2021-12-17 14:24:40 UTC
https://youtu.be/3IPCEeh4xTg
3IPCEeh4xTg
UCv83tO5cePwHMt1952IVVHw
3IPCEeh4xTg-t3271.36
So this is definitely pretty significant. This is definitely a bit more than that. But I think it
3,271.36
3,285.76
Making The Most of Data: Augmented SBERT
2021-12-17 14:24:40 UTC
https://youtu.be/3IPCEeh4xTg
3IPCEeh4xTg
UCv83tO5cePwHMt1952IVVHw
3IPCEeh4xTg-t3277.68
goes to show how good these models or this training strategy can actually be. So that's it
3,277.68
3,297.04
Making The Most of Data: Augmented SBERT
2021-12-17 14:24:40 UTC
https://youtu.be/3IPCEeh4xTg
3IPCEeh4xTg
UCv83tO5cePwHMt1952IVVHw
3IPCEeh4xTg-t3285.76
for this video. I hope this has been useful and I hope this helps a few of you kind of overcome the
3,285.76
3,304.24
Making The Most of Data: Augmented SBERT
2021-12-17 14:24:40 UTC
https://youtu.be/3IPCEeh4xTg
3IPCEeh4xTg
UCv83tO5cePwHMt1952IVVHw
3IPCEeh4xTg-t3297.0400000000004
sometimes lack of data that we find in I think a lot of our particular use cases.
3,297.04
3,318
Making The Most of Data: Augmented SBERT
2021-12-17 14:24:40 UTC
https://youtu.be/3IPCEeh4xTg
3IPCEeh4xTg
UCv83tO5cePwHMt1952IVVHw
3IPCEeh4xTg-t3304.24
3,304.24
3,318
How-to use the Kaggle API in Python
2020-11-22 20:29:27 UTC
https://youtu.be/DgGFhQmfxHo
DgGFhQmfxHo
UCv83tO5cePwHMt1952IVVHw
DgGFhQmfxHo-t0.0
Hi and welcome to this video where we are going to go through setting up and using the Kaggle API.
0
15
How-to use the Kaggle API in Python
2020-11-22 20:29:27 UTC
https://youtu.be/DgGFhQmfxHo
DgGFhQmfxHo
UCv83tO5cePwHMt1952IVVHw
DgGFhQmfxHo-t8.0
So the first thing we want to do is actually pip install kaggle.
8
20
How-to use the Kaggle API in Python
2020-11-22 20:29:27 UTC
https://youtu.be/DgGFhQmfxHo
DgGFhQmfxHo
UCv83tO5cePwHMt1952IVVHw
DgGFhQmfxHo-t15.0
Now I already have it installed so I'm not going to go ahead and install it again.
15
22
How-to use the Kaggle API in Python
2020-11-22 20:29:27 UTC
https://youtu.be/DgGFhQmfxHo
DgGFhQmfxHo
UCv83tO5cePwHMt1952IVVHw
DgGFhQmfxHo-t20.0
But once you do have it installed.
20
29
How-to use the Kaggle API in Python
2020-11-22 20:29:27 UTC
https://youtu.be/DgGFhQmfxHo
DgGFhQmfxHo
UCv83tO5cePwHMt1952IVVHw
DgGFhQmfxHo-t22.0
You can try and import the kaggle module.
22
32
How-to use the Kaggle API in Python
2020-11-22 20:29:27 UTC
https://youtu.be/DgGFhQmfxHo
DgGFhQmfxHo
UCv83tO5cePwHMt1952IVVHw
DgGFhQmfxHo-t29.0
And you will get this error here.
29
42
How-to use the Kaggle API in Python
2020-11-22 20:29:27 UTC
https://youtu.be/DgGFhQmfxHo
DgGFhQmfxHo
UCv83tO5cePwHMt1952IVVHw
DgGFhQmfxHo-t32.0
So this error simply tells you that you could not find the kaggle.json and you need to add it to this location here.
32
48
How-to use the Kaggle API in Python
2020-11-22 20:29:27 UTC
https://youtu.be/DgGFhQmfxHo
DgGFhQmfxHo
UCv83tO5cePwHMt1952IVVHw
DgGFhQmfxHo-t42.0
Now the reason it's telling you this is because we use kaggle.json to authenticate our API access.
42
52
How-to use the Kaggle API in Python
2020-11-22 20:29:27 UTC
https://youtu.be/DgGFhQmfxHo
DgGFhQmfxHo
UCv83tO5cePwHMt1952IVVHw
DgGFhQmfxHo-t48.0
Obviously kaggle is not going to let anyone access their API.
48
57
How-to use the Kaggle API in Python
2020-11-22 20:29:27 UTC
https://youtu.be/DgGFhQmfxHo
DgGFhQmfxHo
UCv83tO5cePwHMt1952IVVHw
DgGFhQmfxHo-t52.0
You need to have a account before you start downloading their data.
52
67
How-to use the Kaggle API in Python
2020-11-22 20:29:27 UTC
https://youtu.be/DgGFhQmfxHo
DgGFhQmfxHo
UCv83tO5cePwHMt1952IVVHw
DgGFhQmfxHo-t57.0
So to get our kaggle.json credentials we simply go over to kaggle.com.
57
72
How-to use the Kaggle API in Python
2020-11-22 20:29:27 UTC
https://youtu.be/DgGFhQmfxHo
DgGFhQmfxHo
UCv83tO5cePwHMt1952IVVHw
DgGFhQmfxHo-t67.0
Now if you don't have an account you'll have to go ahead and create one.
67
79
How-to use the Kaggle API in Python
2020-11-22 20:29:27 UTC
https://youtu.be/DgGFhQmfxHo
DgGFhQmfxHo
UCv83tO5cePwHMt1952IVVHw
DgGFhQmfxHo-t72.0
Once you've created your account you simply go over to this little icon over here in the top right.
72
81
How-to use the Kaggle API in Python
2020-11-22 20:29:27 UTC
https://youtu.be/DgGFhQmfxHo
DgGFhQmfxHo
UCv83tO5cePwHMt1952IVVHw
DgGFhQmfxHo-t79.0
Click account.
79
85
How-to use the Kaggle API in Python
2020-11-22 20:29:27 UTC
https://youtu.be/DgGFhQmfxHo
DgGFhQmfxHo
UCv83tO5cePwHMt1952IVVHw
DgGFhQmfxHo-t81.0
And scroll down until you see this API section.
81
90
How-to use the Kaggle API in Python
2020-11-22 20:29:27 UTC
https://youtu.be/DgGFhQmfxHo
DgGFhQmfxHo
UCv83tO5cePwHMt1952IVVHw
DgGFhQmfxHo-t85.0
Now all you need to do is create a new API token.
85
99
How-to use the Kaggle API in Python
2020-11-22 20:29:27 UTC
https://youtu.be/DgGFhQmfxHo
DgGFhQmfxHo
UCv83tO5cePwHMt1952IVVHw
DgGFhQmfxHo-t90.0
And this creates the kaggle.json credentials and allows me to save them to my computer.
90
107
How-to use the Kaggle API in Python
2020-11-22 20:29:27 UTC
https://youtu.be/DgGFhQmfxHo
DgGFhQmfxHo
UCv83tO5cePwHMt1952IVVHw
DgGFhQmfxHo-t99.0
So I'm just going to save them in my documents for now.
99
110
How-to use the Kaggle API in Python
2020-11-22 20:29:27 UTC
https://youtu.be/DgGFhQmfxHo
DgGFhQmfxHo
UCv83tO5cePwHMt1952IVVHw
DgGFhQmfxHo-t107.0
And then head back to the notebook.
107
112
How-to use the Kaggle API in Python
2020-11-22 20:29:27 UTC
https://youtu.be/DgGFhQmfxHo
DgGFhQmfxHo
UCv83tO5cePwHMt1952IVVHw
DgGFhQmfxHo-t110.0
And we're going to see that we need to save it here.
110
114
How-to use the Kaggle API in Python
2020-11-22 20:29:27 UTC
https://youtu.be/DgGFhQmfxHo
DgGFhQmfxHo
UCv83tO5cePwHMt1952IVVHw
DgGFhQmfxHo-t112.0
So I'm going to copy and paste that across.
112
121
How-to use the Kaggle API in Python
2020-11-22 20:29:27 UTC
https://youtu.be/DgGFhQmfxHo
DgGFhQmfxHo
UCv83tO5cePwHMt1952IVVHw
DgGFhQmfxHo-t114.0
And here we have the directory that we need to put our kaggle.json.
114
126
How-to use the Kaggle API in Python
2020-11-22 20:29:27 UTC
https://youtu.be/DgGFhQmfxHo
DgGFhQmfxHo
UCv83tO5cePwHMt1952IVVHw
DgGFhQmfxHo-t121.0
I'm going to take my kaggle.json and simply move it into here.
121
130
How-to use the Kaggle API in Python
2020-11-22 20:29:27 UTC
https://youtu.be/DgGFhQmfxHo
DgGFhQmfxHo
UCv83tO5cePwHMt1952IVVHw
DgGFhQmfxHo-t126.0
OK so to check that it's worked we simply rerun this cell.
126
137
How-to use the Kaggle API in Python
2020-11-22 20:29:27 UTC
https://youtu.be/DgGFhQmfxHo
DgGFhQmfxHo
UCv83tO5cePwHMt1952IVVHw
DgGFhQmfxHo-t130.0
And there we can see that our kaggle API is now functional.
130
139
How-to use the Kaggle API in Python
2020-11-22 20:29:27 UTC
https://youtu.be/DgGFhQmfxHo
DgGFhQmfxHo
UCv83tO5cePwHMt1952IVVHw
DgGFhQmfxHo-t137.0
Now we don't actually need this import kaggle.
137
156
How-to use the Kaggle API in Python
2020-11-22 20:29:27 UTC
https://youtu.be/DgGFhQmfxHo
DgGFhQmfxHo
UCv83tO5cePwHMt1952IVVHw
DgGFhQmfxHo-t139.0
Instead we need to import the kaggle API class from the kaggle API extended module.
139
165
How-to use the Kaggle API in Python
2020-11-22 20:29:27 UTC
https://youtu.be/DgGFhQmfxHo
DgGFhQmfxHo
UCv83tO5cePwHMt1952IVVHw
DgGFhQmfxHo-t156.0
Once we've imported that we simply initialize our API.
156
171
How-to use the Kaggle API in Python
2020-11-22 20:29:27 UTC
https://youtu.be/DgGFhQmfxHo
DgGFhQmfxHo
UCv83tO5cePwHMt1952IVVHw
DgGFhQmfxHo-t165.0
And then authenticate it.
165
175
How-to use the Kaggle API in Python
2020-11-22 20:29:27 UTC
https://youtu.be/DgGFhQmfxHo
DgGFhQmfxHo
UCv83tO5cePwHMt1952IVVHw
DgGFhQmfxHo-t171.0
Now we're ready to start downloading datasets.
171
179
How-to use the Kaggle API in Python
2020-11-22 20:29:27 UTC
https://youtu.be/DgGFhQmfxHo
DgGFhQmfxHo
UCv83tO5cePwHMt1952IVVHw
DgGFhQmfxHo-t175.0
And the kaggle API gives us several options for doing this.
175
186
How-to use the Kaggle API in Python
2020-11-22 20:29:27 UTC
https://youtu.be/DgGFhQmfxHo
DgGFhQmfxHo
UCv83tO5cePwHMt1952IVVHw
DgGFhQmfxHo-t179.0
The two that you're most likely to use are for downloading the competition datasets or standalone datasets.
179
191
How-to use the Kaggle API in Python
2020-11-22 20:29:27 UTC
https://youtu.be/DgGFhQmfxHo
DgGFhQmfxHo
UCv83tO5cePwHMt1952IVVHw
DgGFhQmfxHo-t186.0
Now a competition dataset is related to a current or past competition.
186
198
How-to use the Kaggle API in Python
2020-11-22 20:29:27 UTC
https://youtu.be/DgGFhQmfxHo
DgGFhQmfxHo
UCv83tO5cePwHMt1952IVVHw
DgGFhQmfxHo-t191.0
So for example there is a sentiment analysis on movie reviews competition.
191
201
How-to use the Kaggle API in Python
2020-11-22 20:29:27 UTC
https://youtu.be/DgGFhQmfxHo
DgGFhQmfxHo
UCv83tO5cePwHMt1952IVVHw
DgGFhQmfxHo-t198.0
We can actually find it over here.
198
206
How-to use the Kaggle API in Python
2020-11-22 20:29:27 UTC
https://youtu.be/DgGFhQmfxHo
DgGFhQmfxHo
UCv83tO5cePwHMt1952IVVHw
DgGFhQmfxHo-t201.0
And you can see here in the URL kaggle.com is followed by this C.
201
210
How-to use the Kaggle API in Python
2020-11-22 20:29:27 UTC
https://youtu.be/DgGFhQmfxHo
DgGFhQmfxHo
UCv83tO5cePwHMt1952IVVHw
DgGFhQmfxHo-t206.0
And this C essentially means that this is a competition.
206
213
How-to use the Kaggle API in Python
2020-11-22 20:29:27 UTC
https://youtu.be/DgGFhQmfxHo
DgGFhQmfxHo
UCv83tO5cePwHMt1952IVVHw
DgGFhQmfxHo-t210.0
And we can also see playground prediction competition.
210
216
How-to use the Kaggle API in Python
2020-11-22 20:29:27 UTC
https://youtu.be/DgGFhQmfxHo
DgGFhQmfxHo
UCv83tO5cePwHMt1952IVVHw
DgGFhQmfxHo-t213.0
Everything is telling us that this is a competition.
213
221
How-to use the Kaggle API in Python
2020-11-22 20:29:27 UTC
https://youtu.be/DgGFhQmfxHo
DgGFhQmfxHo
UCv83tO5cePwHMt1952IVVHw
DgGFhQmfxHo-t216.0
And in this competition it comes with some data.
216
226
How-to use the Kaggle API in Python
2020-11-22 20:29:27 UTC
https://youtu.be/DgGFhQmfxHo
DgGFhQmfxHo
UCv83tO5cePwHMt1952IVVHw
DgGFhQmfxHo-t221.0
Now this is different to a standalone dataset.
221
230
How-to use the Kaggle API in Python
2020-11-22 20:29:27 UTC
https://youtu.be/DgGFhQmfxHo
DgGFhQmfxHo
UCv83tO5cePwHMt1952IVVHw
DgGFhQmfxHo-t226.0
And these standalone datasets can simply be uploaded by anyone.
226
235
How-to use the Kaggle API in Python
2020-11-22 20:29:27 UTC
https://youtu.be/DgGFhQmfxHo
DgGFhQmfxHo
UCv83tO5cePwHMt1952IVVHw
DgGFhQmfxHo-t230.0
So if we go to sentiment 140 dataset here.
230
241
How-to use the Kaggle API in Python
2020-11-22 20:29:27 UTC
https://youtu.be/DgGFhQmfxHo
DgGFhQmfxHo
UCv83tO5cePwHMt1952IVVHw
DgGFhQmfxHo-t235.0
You look in the URL and you can see that this dataset has been uploaded by Casanova.
235
245
How-to use the Kaggle API in Python
2020-11-22 20:29:27 UTC
https://youtu.be/DgGFhQmfxHo
DgGFhQmfxHo
UCv83tO5cePwHMt1952IVVHw
DgGFhQmfxHo-t241.0
And there is a slightly different structure to the dataset page as well.
241
247
How-to use the Kaggle API in Python
2020-11-22 20:29:27 UTC
https://youtu.be/DgGFhQmfxHo
DgGFhQmfxHo
UCv83tO5cePwHMt1952IVVHw
DgGFhQmfxHo-t245.0
And you can see here it's a dataset.
245
249
How-to use the Kaggle API in Python
2020-11-22 20:29:27 UTC
https://youtu.be/DgGFhQmfxHo
DgGFhQmfxHo
UCv83tO5cePwHMt1952IVVHw
DgGFhQmfxHo-t247.0
First tab takes us to data.
247
254
How-to use the Kaggle API in Python
2020-11-22 20:29:27 UTC
https://youtu.be/DgGFhQmfxHo
DgGFhQmfxHo
UCv83tO5cePwHMt1952IVVHw
DgGFhQmfxHo-t249.0
And we can scroll down and see the data that we can get here.
249
258
How-to use the Kaggle API in Python
2020-11-22 20:29:27 UTC
https://youtu.be/DgGFhQmfxHo
DgGFhQmfxHo
UCv83tO5cePwHMt1952IVVHw
DgGFhQmfxHo-t254.0
So there are two different methods for downloading each one of these.
254
263
How-to use the Kaggle API in Python
2020-11-22 20:29:27 UTC
https://youtu.be/DgGFhQmfxHo
DgGFhQmfxHo
UCv83tO5cePwHMt1952IVVHw
DgGFhQmfxHo-t258.0
We can't download competition datasets with the standalone dataset method.
258
268
How-to use the Kaggle API in Python
2020-11-22 20:29:27 UTC
https://youtu.be/DgGFhQmfxHo
DgGFhQmfxHo
UCv83tO5cePwHMt1952IVVHw
DgGFhQmfxHo-t263.0
And we can't download standalone datasets with the competition dataset method.
263
272
How-to use the Kaggle API in Python
2020-11-22 20:29:27 UTC
https://youtu.be/DgGFhQmfxHo
DgGFhQmfxHo
UCv83tO5cePwHMt1952IVVHw
DgGFhQmfxHo-t268.0
So we'll start with the competition dataset.
268
284
How-to use the Kaggle API in Python
2020-11-22 20:29:27 UTC
https://youtu.be/DgGFhQmfxHo
DgGFhQmfxHo
UCv83tO5cePwHMt1952IVVHw
DgGFhQmfxHo-t272.0
And to download one of these all we need to do is use the competition download file method.
272
291
How-to use the Kaggle API in Python
2020-11-22 20:29:27 UTC
https://youtu.be/DgGFhQmfxHo
DgGFhQmfxHo
UCv83tO5cePwHMt1952IVVHw
DgGFhQmfxHo-t284.0
And then we need to pass the competition name followed by the dataset.
284
293
How-to use the Kaggle API in Python
2020-11-22 20:29:27 UTC
https://youtu.be/DgGFhQmfxHo
DgGFhQmfxHo
UCv83tO5cePwHMt1952IVVHw
DgGFhQmfxHo-t291.0
So head back over here.
291
303
How-to use the Kaggle API in Python
2020-11-22 20:29:27 UTC
https://youtu.be/DgGFhQmfxHo
DgGFhQmfxHo
UCv83tO5cePwHMt1952IVVHw
DgGFhQmfxHo-t293.0
And you can see the competition name is this.
293
318
How-to use the Kaggle API in Python
2020-11-22 20:29:27 UTC
https://youtu.be/DgGFhQmfxHo
DgGFhQmfxHo
UCv83tO5cePwHMt1952IVVHw
DgGFhQmfxHo-t303.0
And the data that we would like is train.tsv.zip.
303
323
How-to use the Kaggle API in Python
2020-11-22 20:29:27 UTC
https://youtu.be/DgGFhQmfxHo
DgGFhQmfxHo
UCv83tO5cePwHMt1952IVVHw
DgGFhQmfxHo-t318.0
And that is downloaded into our current directory. You can see it here.
318
327
How-to use the Kaggle API in Python
2020-11-22 20:29:27 UTC
https://youtu.be/DgGFhQmfxHo
DgGFhQmfxHo
UCv83tO5cePwHMt1952IVVHw
DgGFhQmfxHo-t323.0
Okay so that's how we download the competition datasets.
323
331
How-to use the Kaggle API in Python
2020-11-22 20:29:27 UTC
https://youtu.be/DgGFhQmfxHo
DgGFhQmfxHo
UCv83tO5cePwHMt1952IVVHw
DgGFhQmfxHo-t327.0
We can also download the standalone datasets.
327
340
How-to use the Kaggle API in Python
2020-11-22 20:29:27 UTC
https://youtu.be/DgGFhQmfxHo
DgGFhQmfxHo
UCv83tO5cePwHMt1952IVVHw
DgGFhQmfxHo-t331.0
To do so we use the dataset download file method.
331
347
How-to use the Kaggle API in Python
2020-11-22 20:29:27 UTC
https://youtu.be/DgGFhQmfxHo
DgGFhQmfxHo
UCv83tO5cePwHMt1952IVVHw
DgGFhQmfxHo-t340.0
And then here we need to pass the username followed by the dataset name.
340
352
How-to use the Kaggle API in Python
2020-11-22 20:29:27 UTC
https://youtu.be/DgGFhQmfxHo
DgGFhQmfxHo
UCv83tO5cePwHMt1952IVVHw
DgGFhQmfxHo-t347.0
So if we head over here.
347
365
How-to use the Kaggle API in Python
2020-11-22 20:29:27 UTC
https://youtu.be/DgGFhQmfxHo
DgGFhQmfxHo
UCv83tO5cePwHMt1952IVVHw
DgGFhQmfxHo-t352.0
You can find both in the URL. So this one is Casanova slash Sentiment 140.
352
372
How-to use the Kaggle API in Python
2020-11-22 20:29:27 UTC
https://youtu.be/DgGFhQmfxHo
DgGFhQmfxHo
UCv83tO5cePwHMt1952IVVHw
DgGFhQmfxHo-t365.0
We also need to specify the file name.
365
378
How-to use the Kaggle API in Python
2020-11-22 20:29:27 UTC
https://youtu.be/DgGFhQmfxHo
DgGFhQmfxHo
UCv83tO5cePwHMt1952IVVHw
DgGFhQmfxHo-t372.0
Which in this case is this text here.
372
382
How-to use the Kaggle API in Python
2020-11-22 20:29:27 UTC
https://youtu.be/DgGFhQmfxHo
DgGFhQmfxHo
UCv83tO5cePwHMt1952IVVHw
DgGFhQmfxHo-t378.0
And then we just execute that.
378
387
How-to use the Kaggle API in Python
2020-11-22 20:29:27 UTC
https://youtu.be/DgGFhQmfxHo
DgGFhQmfxHo
UCv83tO5cePwHMt1952IVVHw
DgGFhQmfxHo-t382.0
And now we can see that we have downloaded both files here.
382
391
How-to use the Kaggle API in Python
2020-11-22 20:29:27 UTC
https://youtu.be/DgGFhQmfxHo
DgGFhQmfxHo
UCv83tO5cePwHMt1952IVVHw
DgGFhQmfxHo-t387.0
Now you will notice that both of these files are actually zipped.
387
395
How-to use the Kaggle API in Python
2020-11-22 20:29:27 UTC
https://youtu.be/DgGFhQmfxHo
DgGFhQmfxHo
UCv83tO5cePwHMt1952IVVHw
DgGFhQmfxHo-t391.0
So we can just quickly unzip them using Python.
391
401
How-to use the Kaggle API in Python
2020-11-22 20:29:27 UTC
https://youtu.be/DgGFhQmfxHo
DgGFhQmfxHo
UCv83tO5cePwHMt1952IVVHw
DgGFhQmfxHo-t395.0
All we need to do is import zip file.
395
410
How-to use the Kaggle API in Python
2020-11-22 20:29:27 UTC
https://youtu.be/DgGFhQmfxHo
DgGFhQmfxHo
UCv83tO5cePwHMt1952IVVHw
DgGFhQmfxHo-t401.0
And with zip file.
401
413
How-to use the Kaggle API in Python
2020-11-22 20:29:27 UTC
https://youtu.be/DgGFhQmfxHo
DgGFhQmfxHo
UCv83tO5cePwHMt1952IVVHw
DgGFhQmfxHo-t410.0
We specify the path to the data.
410
423
How-to use the Kaggle API in Python
2020-11-22 20:29:27 UTC
https://youtu.be/DgGFhQmfxHo
DgGFhQmfxHo
UCv83tO5cePwHMt1952IVVHw
DgGFhQmfxHo-t413.0
Which in this case is just the file name.
413
432
How-to use the Kaggle API in Python
2020-11-22 20:29:27 UTC
https://youtu.be/DgGFhQmfxHo
DgGFhQmfxHo
UCv83tO5cePwHMt1952IVVHw
DgGFhQmfxHo-t423.0
And we specify that we are simply reading it.
423
440
How-to use the Kaggle API in Python
2020-11-22 20:29:27 UTC
https://youtu.be/DgGFhQmfxHo
DgGFhQmfxHo
UCv83tO5cePwHMt1952IVVHw
DgGFhQmfxHo-t432.0
And then we simply call the extract all method.
432
445
How-to use the Kaggle API in Python
2020-11-22 20:29:27 UTC
https://youtu.be/DgGFhQmfxHo
DgGFhQmfxHo
UCv83tO5cePwHMt1952IVVHw
DgGFhQmfxHo-t440.0
And we have our dataset here.
440
448
How-to use the Kaggle API in Python
2020-11-22 20:29:27 UTC
https://youtu.be/DgGFhQmfxHo
DgGFhQmfxHo
UCv83tO5cePwHMt1952IVVHw
DgGFhQmfxHo-t445.0
And we see everything is in the right format.
445
454
How-to use the Kaggle API in Python
2020-11-22 20:29:27 UTC
https://youtu.be/DgGFhQmfxHo
DgGFhQmfxHo
UCv83tO5cePwHMt1952IVVHw
DgGFhQmfxHo-t448.0
So that's everything for this tutorial on using the Kaggle API.
448
457