当前位置:网站首页>【Colab】【使用外部数据的7种方法】
【Colab】【使用外部数据的7种方法】
2022-07-03 12:03:00 【爱笑的冷面鬼】
文章目录
方法1:通过Files explorer上传
点击Notebook的Files explorer面板:
然后点击上传按钮:
当上传结束后,就可以直接读取:
方法2:使用Colab files上传
输入并运行下面代码:
from google.colab import files
uploaded = files.upload()
然后就可以选择对应的文件,完成上传:
方法3:读取Github链接
在github页面找到对应的文件路径,注意是文件的Raw链接:
然后将链接写到对应的位置。
方法4:克隆Github项目
先从命令行下载项目:
!git clone https://github.com/BindiChen/machine-learning.git
然后从对应的路径完成数据读取。
方法5:使用wget/axel下载文件
在Notebook中可以使用Linux系统命令,可以使用wget或axel下载数据:
方法6:读取谷歌硬盘数据
挂载了谷歌硬盘后,写好路径完成读取:
方法7:Kaggle API完成数据下载
详细步骤可以参考以前的文章:【Colab】连接【Kaggle】使用Kaggle数据集/文[email protected]
首先在Kaggle账户的Kaggle API,点击Create New API Token,会下载一个kaggle.json文件。
将kaggle.json文件上传后,就可以使用kaggle-api下载比赛数据或者数据集。
!kaggle competitions download -c titanic
!kaggle datasets download -d alexanderbader/forbes-billionaires-2021-30
Reference
边栏推荐
- Harmonic current detection based on synchronous coordinate transformation
- A large select drop-down box, village in Chaoyang District
- CNN MNIST handwriting recognition
- It feels great to know you learned something, isn‘t it?
- Ten workplace rules
- The upward and downward transformation of polymorphism
- Approve iPad, which wants to use your icloud account
- 最新版抽奖盲盒运营版
- Define a list, store n integers, and calculate the length, maximum value, minimum value and average value of the list
- 【习题五】【数据库原理】
猜你喜欢
【数据挖掘复习题】
[combinatorics] permutation and combination (the combination number of multiple sets | the repetition of all elements is greater than the combination number | the derivation of the combination number
2021 autumn Information Security Experiment 1 (password and hiding technology)
电压环对 PFC 系统性能影响分析
剑指Offer10- I. 斐波那契数列
Low code platform international multilingual (I18N) technical solution
Node.js: express + MySQL的使用
01 three solutions to knapsack problem (greedy dynamic programming branch gauge)
[review questions of database principles]
Sword finger offer09 Implementing queues with two stacks
随机推荐
Airflow installation jump pit
[judgment question] [short answer question] [Database Principle]
[comprehensive question] [Database Principle]
Swift return type is a function of function
Detailed explanation of the most complete constraintlayout in history
【数据挖掘复习题】
Kung Fu pays off, and learning is done
Public and private account sending prompt information (user microservice -- message microservice)
Summary of error prone knowledge points: Calculation of define s (x) 3*x*x+1.
社交社区论坛APP超高颜值UI界面
studio All flavors must now belong to a named flavor dimension. Learn more
Redhat5 installing socket5 proxy server
Define a list, store n integers, and calculate the length, maximum value, minimum value and average value of the list
Quickly learn member inner classes and local inner classes
Xctf mobile--app1 problem solving
CNN MNIST handwriting recognition
RedHat5 安装Socket5代理服务器
记录自己vulnhub闯关记录
基于同步坐标变换的谐波电流检测
【習題五】【數據庫原理】