Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use Kaggle to upload and download data smoothly

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

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.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report