会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
LCZ
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
···
21
下一页
2024年5月24日
实验21-正向最大匹配算法
摘要: 出现 UnicodeDecodeError: 'gbk' codec can't decode byte 0x9f in position 16: illegal multibyte sequence 修改为 即可 实验结果:
阅读全文
posted @ 2024-05-24 21:23 lcz111
阅读(10)
评论(0)
推荐(0)
2024年5月14日
1
摘要: base_dir = './dc' train_dir = base_dir + '/train' train_dog_dir = train_dir + '/dog' train_cat_dir = train_dir + '/cat' test_dir = base_dir + '/test'
阅读全文
posted @ 2024-05-14 22:28 lcz111
阅读(22)
评论(0)
推荐(0)
实验12-使用keras预训练模型完成猫狗识别
摘要: win10 python3.7 tensorflow-gpu2.6.0 keras2.6.0 出现 ValueError: Asked to retrieve element 0, but the Sequence has length 0 原因:老师给的代码中标红的文件夹下没有所需文件或缺失 解决
阅读全文
posted @ 2024-05-14 22:21 lcz111
阅读(147)
评论(0)
推荐(0)
实验11-使用keras完成逻辑回归
摘要: VMware虚拟机 Ubuntu20-LTS python3.6 tensorflow1.15.0 keras2.3.1 运行截图: 代码: import numpy as np from keras.models import Sequential from keras.layers import
阅读全文
posted @ 2024-05-14 22:00 lcz111
阅读(12)
评论(0)
推荐(0)
实验10-使用keras完成线性回归
摘要: VMware虚拟机 Ubuntu20-LTS python3.6 tensorflow1.15.0 keras2.3.1 运行截图: 代码: import numpy as np np.random.seed(1337) from keras.models import Sequential fro
阅读全文
posted @ 2024-05-14 21:59 lcz111
阅读(16)
评论(0)
推荐(0)
实验8-tensorboard
摘要: VMware虚拟机 Ubuntu20-LTS python3.6 tensorflow1.15.0 keras2.3.1 运行截图: 代码: 实验8-1tensorboard可视化 import tensorflow as tf #定义命名空间 with tf.name_scope('input')
阅读全文
posted @ 2024-05-14 21:57 lcz111
阅读(24)
评论(0)
推荐(0)
实验7-使用TensorFlow完成MNIST手写体识别
摘要: VMware虚拟机 Ubuntu20-LTS python3.6 tensorflow1.15.0 keras2.3.1 运行截图: 代码: import os os.environ['TF_CPP_MIN_LOG_LEVEL']='2' import numpy as np import tens
阅读全文
posted @ 2024-05-14 21:53 lcz111
阅读(33)
评论(0)
推荐(0)
实验6-使用TensorFlow完成线性回归
摘要: VMware虚拟机 Ubuntu20-LTS python3.6 tensorflow1.15.0 keras2.3.1 运行截图: 代码: %matplotlib inline import numpy as np import tensorflow as tf import matplotlib
阅读全文
posted @ 2024-05-14 21:49 lcz111
阅读(17)
评论(0)
推荐(0)
实验4-交叉验证
摘要: VMware虚拟机 Ubuntu20-LTS python3.6 tensorflow1.15.0 keras2.3.1 运行截图: 代码: from sklearn.model_selection import train_test_split,cross_val_score,cross_vali
阅读全文
posted @ 2024-05-14 21:46 lcz111
阅读(40)
评论(0)
推荐(0)
实验3-特征处理
摘要: VMware虚拟机 Ubuntu20-LTS python3.6 tensorflow1.15.0 keras2.3.1 运行截图: 代码: 实验3-1标准化 from sklearn.preprocessing import StandardScaler from sklearn.preproce
阅读全文
posted @ 2024-05-14 21:44 lcz111
阅读(17)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
···
21
下一页
公告