当前位置:网站首页>深度学习之环境配置 jupyter notebook
深度学习之环境配置 jupyter notebook
2022-07-06 16:54:00 【彭祥.】
今天,博主要系统的学习一下深度学习的相关内容,在此记录自己的学习过程,与大家共同进步。
内容介绍
- 深度学习基础:线性神经网络。多层感知机
- 卷积神经网络:LeNet , AlexNet , VGG , Inception , ResNet
- 循环神经网络:RNN , GRU , LSTM , seq2seq
- 注意力机制: Attention , Transformer
- 优化算法 : SGD , Adam , Momentum
- 高性能计算:并行,多GPU , 分布式
- 计算机视觉:目标检测,语义分割
- 计算机语言处理:词嵌入,BERT
深度学习是一个很“玄幻”的过程,他生成的模型之所以优秀或者如何工作有时对我们人类而言是无法理解的,这里不要过度纠结。
首先是环境的配置,博主之前已经安装了PyCharm和Anaconda并配置了相关环境,因此在这里只是安装了一个常用的包 d2l
相关的安装教程大家可以阅读我之前的博客:
Anaconda安装与PyCharm配置
这个过程可能需要等几分钟,因为要安装的包有很多
安装完成后,我们就开始学习吧
jupyter notebook使用
这里使用的是jupyter notebook,在我们安装了Anaconda后一般都会默认帮我们安装好。
在终端输入jupyter notebook --generate-config
回车,下方显示配置文档所在位置。
我们可以修改一下他的默认安装路径,方便我们使用
在记事本中查找(Ctrl+F
)NotebookApp.notebook_dir
所在位置,将后边的文件夹修改为你喜欢的文件夹位置即可。
在浏览器上打开即可
运行一个代码发现没有相应的包,原来是这个默认使用的是Anaconda的base
,而这个环境我们之前没有安装相应环境,那么我们需要切换一下自己的环境,或者说我们想换一个环境使用jupyter notebook
单一环境创建
具体方式如下:
conda create -n my-conda-env # 创建一个虚拟环境
conda activate my-conda-env # 激活我们的虚拟环境
conda install ipykernel # 安装python内核
ipython kernel install --user --name=my-conda-env-kernel # python -m ipykernel install --user --name 环境名称 --display-name "在jupyter中显示的环境名称"
jupyter notebook # 开启运行
conda install ipykernel
ipython kernel install --user --name=my-conda-env-kernel
BUG说明:
ImportError: cannot import name 'generator_to_async_generator'
BUG解决:
pip uninstall -y ipython prompt_toolkit
pip install ipython prompt_toolkit
再次安装
为所有环境创建
当然上述方式只能为一个conda环境创建,我们使用conda install nb_conda_kernels
为所有conda环境创建jupyter,从而可以有多种选择。
安装代码提示功能
此时安装完成后其无法进行代码提示,我们只需要执行以下步骤即可
1、开始菜单运行Anaconda Prompt (Anaconda3)
,逐条输入命令
pip install jupyter_contrib_nbextensions
jupyter contrib nbextension install
pip install jupyter_nbextensions_configurator
jupyter nbextensions_configurator enable
2、再次打开notebook, 执行成功后会在http://localhost:8888/tree中出现Nbextensions
勾选Hinterland
再次打开一个python文件就可以看到代码提示了
到此我们的环境配置便完成了
边栏推荐
- 接口(接口相关含义,区别抽象类,接口回调)
- Imeta | Chen Chengjie / Xia Rui of South China Agricultural University released a simple method of constructing Circos map by tbtools
- 【JokerのZYNQ7020】AXI_EMC。
- Random类的那些事
- VTK volume rendering program design of 3D scanned volume data
- Three methods to realize JS asynchronous loading
- Leecode brush questions record sword finger offer 11 Rotate the minimum number of the array
- AI超清修复出黄家驹眼里的光、LeCun大佬《深度学习》课程生还报告、绝美画作只需一行代码、AI最新论文 | ShowMeAI资讯日报 #07.06
- uniapp中redirectTo和navigateTo的区别
- Memory optimization of Amazon memorydb for redis and Amazon elasticache for redis
猜你喜欢
DAY THREE
@TableId can‘t more than one in Class: “com.example.CloseContactSearcher.entity.Activity“.
How can computers ensure data security in the quantum era? The United States announced four alternative encryption algorithms
DAY ONE
2022年PMP项目管理考试敏捷知识点(9)
深度学习之数据处理
Business process testing based on functional testing
【vulnhub】presidential1
uniapp中redirectTo和navigateTo的区别
[2022 the finest in the whole network] how to test the interface test generally? Process and steps of interface test
随机推荐
"Latex" Introduction to latex mathematical formula "suggestions collection"
Data analysis course notes (V) common statistical methods, data and spelling, index and composite index
Sword finger offer 26 Substructure of tree
以机房B级建设标准满足等保2.0三级要求 | 混合云基础设施
Uniapp uploads and displays avatars locally, and converts avatars into Base64 format and stores them in MySQL database
DAY THREE
Notes of training courses selected by Massey school
JWT signature does not match locally computed signature. JWT validity cannot be asserted and should
互动滑轨屏演示能为企业展厅带来什么
[2022 the finest in the whole network] how to test the interface test generally? Process and steps of interface test
GEO数据挖掘(三)使用DAVID数据库进行GO、KEGG富集分析
基于GO语言实现的X.509证书
rancher集成ldap,实现统一账号登录
Amazon MemoryDB for Redis 和 Amazon ElastiCache for Redis 的内存优化
英雄联盟|王者|穿越火线 bgm AI配乐大赛分享
Clipboard management tool paste Chinese version
stm32F407-------DAC数模转换
Everyone is always talking about EQ, so what is EQ?
Leetcode(547)——省份数量
Command line kills window process