Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to use Kaggle to upload and download data smoothly

Shulou Source: shulou.com Published: 2022-06-02 00:38:30 10月26日 Update

How to use Kaggle to upload and download data smoothly, many novices are not very clear about this. In order to help you solve this problem, the following editor will explain it in detail. People with this need can come and learn. I hope you can get something.

Since Kaggle was acquired by Google, a lot of Google apps have been used for data downloads and kernel on Kaggle. What is strongly related to the contestants is the download of the competition data set and the upload of files.

How to upload and download data smoothly, this article will give three solutions.

Modify DNS

Due to the network control of domestic operators, the speed of domestic and foreign visits is very slow, so you can try to modify the system DNS when downloading Kaggle data sets.

The following DNS are recommended:

Google: 8.8.8.8, 8.8.4.4

South Korea: 168.126.63.1168.126.63.2

Modified DNS may be able to download the dataset smoothly, but also speed up the access to Github, but the speed of domestic web pages will slow down.

Kaggleapi

Https://github.com/Kaggle/kaggle-apiKaggleAPI is an official API tool provided by Kaggle, which can be used to download data, upload data, submit files, view lists and many other functions, basically replacing all operations. KaggleAPI is very easy to use, you only need to configure the account information locally: # profile directory chmod 600 ~ / .kaggle/kaggle.json

# account configuration information, you can download export KAGGLE_USERNAME=datadinosaurexport KAGGLE_KEY=xxxxxxxxxxxxxx from the Kaggle personal interface and then operate directly in the command line interface, such as downloading a match dataset: # downloading the match dataset kaggle competitions download favorita-grocery-sales-forecasting

# submit the result file kaggle competitions submit favorita-grocery-sales-forecasting-f sample_submission_favorita.csv.7z-m "My submission message" so KaggleAPI is very suitable for downloading data on the server, which is generally faster than that of a direct browser. But KaggleAPI will still receive network restrictions.

Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.

Tags: Data file speed competition configuration information interface network help clarity content function reason contestant at the same time command official this tool article Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Huawei Xiaomi vpn macOS Shulou Tech Info