- 博客(26)
- 收藏
- 关注

原创 深度学习的学习范式(Learning Paradigm)总结
了解不同的学习范式(paradigms)决定了模型如何学习数据、如何优化、如何推广到新任务。
2025-04-03 19:49:37
529
原创 Linux环境下GPU版本的pytorch安装
首先查看cuda版本,为保持兼容性,选择当前cuda版本或较低版本。比如CUDA版本为12.2时,我可以选择版本为12.1的。根据cuda选择兼容的torch版本,参考。
2025-02-12 17:55:37
389
原创 colour.plotting:颜色科学相关的可视化和分析
模块提供了丰富的 API,用于可视化和分析与颜色科学相关的数据。以下是对其主要 API 的分类讲解,以帮助更好地理解和使用它们。这些函数提供了颜色、光谱和图形的基本可视化功能。用于可视化标准数据,例如光源、观察者模型等。这些函数用于显示颜色转换关系或调色板。提供了用于光谱数据分析和显示的工具。用于显示不同色彩空间的分布和属性。用于快速绘制多种标准数据或属性。用于模拟不同类型的色觉缺陷。用于显示颜色差异计算的结果。用于分析高维色彩空间的数据。
2025-01-24 16:05:28
374
原创 TypeError: test() argument after * must be an iterable, not int
TypeError: test() argument after * must be an iterable, not int
2023-02-13 08:52:09
479
原创 X Error of failed request: BadAlloc (insufficient resources for operation)
X Error of failed request: BadAlloc (insufficient resources for operation)
2023-02-12 18:12:40
1314
原创 could not create folder “sftp://xxx.xxx.xxx.xxx/.../venv“. (Permission denied)
could not create folder "sftp://xxx.xxx.xxx.xxx/.../venv". (Permission denied)
2022-11-06 16:16:05
1508
3
原创 07 Python常见数据结构
Python中常见的数据结构可以统称为容器(container)。其中主要的容器有三类:序列(列表、元组和字符串等),映射(如字典)和集合(set)。序列 序列是有序的,序列中的每个元素都有自己的编号。Python有6中内建的序列,包括列表、元组、字符串、Unicode字符串、buffer对象和xrange对象。字符串元组列表映射字典集合(set)公共操作...
2022-02-26 19:13:57
807
原创 06 break or continue
循环中满足一定条件后退出循环的两种不同方式:(1)break:终止此循环# break:终止此循环i = 1while i <= 5: if i == 4: print(f'吃饱了不吃了') break print(f'吃了第{i}个苹果') i += 1output:(2)continue: 退出当前一次循环继而执行下一次循环代码i = 1while i <= 5: if i == 3:
2022-02-23 23:46:01
142
1
原创 05 运算符
运算符算数运算符赋值运算符# 单变量赋值num=1# 多变量赋值num1, float1, str1 = 10, 0.5, 'hello world' # 多变量赋相同值a = b = 10 复合赋值运算符c=10c+=1+2 # 13 先算运算符右侧1 + 2 = 3, c += 3 , 推导出c = 10 + 3比较运算符也叫关系运算符。逻辑运算符a = 0b = 1c = 2print((a < b) and (b < c)) # Tru
2022-02-23 23:32:26
93
原创 04 输出和输出
输入input(‘提示内容’)password = input('请输⼊您的密码:')print(f'您输⼊的密码是{password}') print(type(password))注意:(1)一般将input输入的数据存储为变量。(2)input接收的任何数据默认都是字符串数据类型。输出格式化输出格式化字符串age = 18name = 'TOM'weight = 75.5student_id = 1# 我的名字是TOMprint('我的名字是%s' % name)
2022-02-23 23:04:53
187
原创 数据类型的检查与转换
检测数据类型type()a=1print(type(a)) #<class 'int'>b = 1.1print(type(b)) # <class 'float'> -- 浮点型c = Trueprint(type(c)) # <class 'bool'> -- 布尔型d = '12345'print(type(d)) # <class 'str'> -- 字符串e = [10, 20, 30]print(type(e)) # <
2022-02-23 00:55:00
548
原创 注释和debug
注释 # 单行注释'''多行注释'''print('hello,world')debug打断点 --> debug文件名Debugger:变量及其细节Console:输出StepOver:按步执行
2022-02-23 00:31:14
168
原创 Jupyter notebook打开E盘文件夹
Anaconda默认打开位置在C盘,如果要打开其他盘的文件,有以下两个方法(首先当然是要打开 命令提示符 ):方法一:jupyter notebook [目标文件路径]方法二:先切换至目标文件夹,再打开jupyter notebook相关链接:https://blog.youkuaiyun.com/GoodNightBaby/article/details/108400157......
2022-02-20 22:00:48
2954
原创 如何从一台远程服务器向另一台远程服务器上读取文件
不妨设服务器A:192.168.23.230,服务器B:192.168.132.49,现在想在服务器A上读取服务器B的文件,有以下两种方法:方法一:本地复制登录服务器B,讲B上的相应文件复制到本地,然后再本地文件复制到服务器A方法二:挂载mount、...
2022-02-20 18:28:43
2341
原创 Learning English in python
Terms About PythonEnglishChineseformat string格式化字符串function函数variable变量octothorpe / pound character#注释parenthess括号exponent指数multiplication乘division除addition加substraction减underscore下划线argument参数argu
2021-12-20 09:07:48
437
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人