当前位置:网站首页>[colab] [7 methods of using external data]
[colab] [7 methods of using external data]
2022-07-03 13:03:00 【Laughing cold faced ghost】
List of articles
Method 1: adopt Files explorer Upload
Click on Notebook Of Files explorer panel :
Then click the upload button :
When the upload is over , You can read it directly :
Method 2: Use Colab files Upload
Enter and run the following code :
from google.colab import files
uploaded = files.upload()
Then you can select the corresponding file , Finish uploading :
Method 3: Read Github link
stay github The page finds the corresponding file path , Note that it is a file Raw link :
Then write the link to the corresponding location .
Method 4: clone Github project
First download the project from the command line :
!git clone https://github.com/BindiChen/machine-learning.git
Then read the data from the corresponding path .
Method 5: Use wget/axel Download the file
stay Notebook Can be used in Linux System commands , have access to wget or axel Download data :
Method 6: Read Google hard disk data
After mounting Google hard disk , Write the path and finish reading :
Method 7:Kaggle API Complete data download
Please refer to previous articles for detailed steps :【Colab】 Connect 【Kaggle】 Use Kaggle Data sets / writing [email protected]
First, in the Kaggle account Kaggle API, Click on Create New API Token, Will download a kaggle.json file .
take kaggle.json After file upload , You can use kaggle-api Download game data or datasets .
!kaggle competitions download -c titanic
!kaggle datasets download -d alexanderbader/forbes-billionaires-2021-30
Reference
边栏推荐
- Luogup3694 Bangbang chorus standing in line
- Sword finger offer14 the easiest way to cut rope
- 2022-01-27 redis cluster cluster proxy predixy analysis
- Simple use and precautions of kotlin's array array and set list
- Everything comes to him who waits
- IDEA 全文搜索快捷键Ctr+Shift+F失效问题
- Powerful avatar making artifact wechat applet
- 【数据库原理及应用教程(第4版|微课版)陈志泊】【SQLServer2012综合练习】
- 解决 System has not been booted with systemd as init system (PID 1). Can‘t operate.
- Cache penetration and bloom filter
猜你喜欢
My creation anniversary: the fifth anniversary
When the R language output rmarkdown is in other formats (such as PDF), an error is reported, latex failed to compile stocks Tex. solution
【数据库原理及应用教程(第4版|微课版)陈志泊】【第四章习题】
Huffman coding experiment report
initial、inherit、unset、revert和all的区别
Xctf mobile--rememberother problem solving
对业务的一些思考
我的创作纪念日:五周年
sitesCMS v3.1.0发布,上线微信小程序
电压环对 PFC 系统性能影响分析
随机推荐
Dojo tutorials:getting started with deferrals source code and example execution summary
OpenHarmony应用开发之ETS开发方式中的Image组件
Attack and defense world mobile--ph0en1x-100
Cache penetration and bloom filter
我的创作纪念日:五周年
Mysqlbetween implementation selects the data range between two values
context. Getexternalfilesdir() is compared with the returned path
【综合题】【数据库原理】
alright alright alright
Seven second order ladrc-pll structure design of active disturbance rejection controller
Kung Fu pays off, and learning is done
2022-01-27 redis cluster brain crack problem analysis
GaN图腾柱无桥 Boost PFC(单相)七-PFC占空比前馈
(latest version) WiFi distribution multi format + installation framework
剑指 Offer 12. 矩阵中的路径
Swift bit operation exercise
Idea full text search shortcut ctr+shift+f failure problem
Sword finger offer 14- ii Cut rope II
电压环对 PFC 系统性能影响分析
Sword finger offer 17 Print from 1 to the maximum n digits