会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
奉孝郭嘉
博客园
首页
新随笔
联系
订阅
管理
2023年4月4日
python3.9pkuseg分词工具包安装下载失败
摘要: 解决方法:使用3.8及以下的版本下载
阅读全文
posted @ 2023-04-04 00:36 奉孝郭嘉
阅读(146)
评论(0)
推荐(0)
2023年3月18日
肖莱《深度学习》第六章6-8系统找不到指定的路径。: 'D:\\pythonProject\\keras_code\\aclImdb\\train\\neg
摘要: 将dir_name = os.path.join(train_dir, label_type)中的 train_dir换成其代表的真实地址, 即dir_name = os.path.join(train_dir, label_type)换成 dir_name = os.path.join(r'D:\
阅读全文
posted @ 2023-03-18 22:54 奉孝郭嘉
阅读(57)
评论(0)
推荐(0)
2023年3月17日
tensorflow.keras.datasets 中关于imdb.load_data的使用说明
摘要: python深度学习在加载数据时(num_words=10000)所代表的意义首先写一段深度学习加载数据集的代码: from keras.datasets import reuters(train_data, train_labels), (test_data, test_labels) = reu
阅读全文
posted @ 2023-03-17 10:41 奉孝郭嘉
阅读(409)
评论(0)
推荐(0)
2023年3月16日
肖莱《深度学习》第六章6-22解决from keras.preprocessing import sequence在pycharm上报错的问题
摘要: 将from keras.preprocessing import sequence 改成from tensorflow.keras.preprocessing import sequence
阅读全文
posted @ 2023-03-16 23:04 奉孝郭嘉
阅读(82)
评论(0)
推荐(0)
2023年3月14日
肖莱《深度学习》第五章5-33,报错RuntimeError: tf.gradients is not supported when eager execution is enabled.
摘要: 在程序开头加上这两行代码 import tensorflow as tftf.compat.v1.disable_eager_execution()
阅读全文
posted @ 2023-03-14 22:40 奉孝郭嘉
阅读(92)
评论(0)
推荐(0)
肖莱《深度学习》第五章5-12显示几个随机增强后的训练图像报错,module 'keras.preprocessing.image' has no attribute 'load_img'
摘要: 原因: 版本问题 解决方法: 将导包 from keras.preprocessing import image 改为 from keras.utils import image_utils,使用 image_utils 下面的 load_img(), img_to_array() 两个方法即可。
阅读全文
posted @ 2023-03-14 10:43 奉孝郭嘉
阅读(139)
评论(0)
推荐(0)
2023年3月13日
肖莱《深度学习》第五张猫狗分类报错Invalid argument: 'D:\\pythonProject\\keras_code\\dogs-vs-cats\train\train1\
摘要: 解决方法:将地址里的所有\改成\\
阅读全文
posted @ 2023-03-13 11:38 奉孝郭嘉
阅读(0)
评论(0)
推荐(0)
2022年12月30日
神经网络的学习步骤
摘要:
阅读全文
posted @ 2022-12-30 15:39 奉孝郭嘉
阅读(70)
评论(0)
推荐(0)
2022年12月15日
深度学习入门No module named 'common'问题
摘要: 这⾥的“common”模块是源代码中作者⾃⼰写的,将下载的源⽂件夹“【源代码】深度学习⼊门:基于Python的理论与实现”改名为book_code, 并且将 sys.path.append(os.pardir) # 为了导入父目录中的文件而进行的设定import numpy as npfrom co
阅读全文
posted @ 2022-12-15 17:28 奉孝郭嘉
阅读(541)
评论(0)
推荐(0)
2022年12月7日
x_train, x_test, y_train, y_test到底是什么?
摘要: 1. x_train:包括所有自变量,这些变量将用于训练模型,同样,我们已经指定测试_size=0.4,这意味着来自完整数据的60%的观察值将用于训练/拟合模型,其余40%将用于测试模型。2. y_train-这是因变量,需要此模型进行预测,其中包括针对自变量的类别标签,我们需要在训练/拟合模型时指
阅读全文
posted @ 2022-12-07 16:35 奉孝郭嘉
阅读(498)
评论(0)
推荐(0)
下一页
公告