自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(12)
  • 收藏
  • 关注

原创 anaconda保姆级安装教程(非常细)

Anaconda安装教程(保姆级),流程清晰,非常详细。供python、深度学习初学者配置环境时进行参考。

2023-03-19 21:21:05 1336

原创 RuntimeError: Unable to find a valid cuDNN algorithm to run convolution

RuntimeError: Unable to find a valid cuDNN algorithm to run convolution

2022-04-20 13:30:01 5554

原创 Can’t get attribute ‘SiLU’ on <module ‘torch.nn.modules.activation’

Can’t get attribute ‘SiLU’ on <module ‘torch.nn.modules.activation’

2022-01-14 20:36:47 2243

原创 TypeError: load() missing 1 required positional argument: ‘Loader‘

报错:TypeError: load() missing 1 required positional argument: 'Loader'

2022-01-14 20:25:34 1004

原创 python LightGBM分类 代码

python LightGBM分类 代码安装lightgbm包pip install lightgbmLightGBM分类代码#LightGBM分类import pandas as pdfrom lightgbm.sklearn import LGBMClassifier # 导入LGBMClassifier函数from sklearn.model_selection import train_test_splitfrom sklearn import metrics # 分类结果评

2021-10-22 22:36:21 2004

原创 python XGBoost 分类 代码

python XGBoost 分类 代码安装xgboostpip install xgboost分类代码#XGBoost分类import pandas as pdfrom xgboost.sklearn import XGBClassifier # 导入XGBClassifier函数from sklearn.model_selection import train_test_splitfrom sklearn import metrics # 分类结果评价函数data = pd.

2021-10-22 01:10:47 2088 2

原创 python 决策树分类 代码

python 决策树分类 代码#决策树分类import pandas as pdfrom sklearn.tree import DecisionTreeClassifier # 导入DecisionTreeClassifier函数from sklearn.model_selection import train_test_splitfrom sklearn import metrics # 分类结果评价函数data = pd.read_csv('./wm.csv', index_col

2021-10-22 01:05:55 2270

原创 python 随机森林分类 代码

python 随机森林分类 代码#随机森林分类import pandas as pdfrom sklearn.ensemble import RandomForestClassifier # 导入sklearn库的RandomForestClassifier函数from sklearn.model_selection import train_test_splitfrom sklearn import metrics # 分类结果评价函数data = pd.read_csv('./wm.

2021-10-22 00:59:28 7285 6

原创 Python Logistics回归分类 代码

Python使用Logistics回归进行分类 代码#Logistics回归分类import pandas as pdfrom sklearn.linear_model import LogisticRegression # 导入sklearn库的LogisticRegression函数from sklearn.model_selection import train_test_splitfrom sklearn import metrics # 分类结果评价函数data = pd.re

2021-10-22 00:53:11 620

原创 Jupyter安装与打开

Jupyter安装与打开1.打开控制台2.激活环境 conda activate pytorch(环境名)3.安装notebook包 conda install nb_conda4.打开Jupyter Notebook Jupyter notebook新建notebookJupyter 环境切换

2021-04-16 16:45:02 1090 1

原创 Pytorch 计算模型FLOPs 和 参数量(两种方法)

项目场景:Pytorch 框架中,计算深度神经网络的 FLOPS 和 参数量解决方案:方法一:利用thop1.安装thoppip install thop2.计算@hye from thop import profile flops, params = profile(net, (input, ))net: 需要计算的模型input: 输入的样本方法二:利用torchsummaryX1.安装torchsummaryXpip install torchs

2021-04-13 11:54:38 5231 3

原创 AttributeError: ‘tuple‘object has no attribute ‘log_softmax‘

AttributeError: ‘tuple‘ object has no attribute ‘log_softmax问题描述:pytorch 报错 “AttributeError: ‘tuple‘ object has no attribute ‘log_softmax”原因分析:在某些情况下,pytorch前向传播outputs可能不是一个tensor,而是一个tuple. 例如LSTM中输出可能为(outputs, hn), inception-v3 的输出为 (outputs, aux).

2021-04-13 11:14:34 4643 7

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除