上一页 1 2 3 4 5 6 7 ··· 28 下一页
摘要: module ‘tensorflow‘ has no attribute ‘placeholder‘ # import tensorflow as tf改为 import tensorflow.compat.v1 as tftf.compat.v1.disable_eager_execution() 阅读全文
posted @ 2022-05-11 16:49 星涅爱别离 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 使用import tensorflow.contrib.slim as slim时报错,版本tf2.X pip install --upgrade tf_slim 将import tensorflow.contrib.slim as slim改为 import tf_slim as slim 阅读全文
posted @ 2022-05-11 16:48 星涅爱别离 阅读(530) 评论(0) 推荐(0) 编辑
摘要: 在计算的时候,可能有函数y=m0+m1x1+m2x2+... 但是用矩阵计算时M*X时,第一个常数项m0后面没有x0,所以我们在X中新增一列1,就可以直接进行矩阵运算了 阅读全文
posted @ 2022-05-06 14:21 星涅爱别离 阅读(186) 评论(0) 推荐(0) 编辑
摘要: pip install model-log Model Log 安装成功后,Linux、Mac用户直接终端输入以下命令,Windows用户在cmd窗口输入: model-log # 第一步:先创建 ModelLog 类,并添加必要的属性 from model_log.modellog import 阅读全文
posted @ 2022-05-06 08:08 星涅爱别离 阅读(82) 评论(0) 推荐(0) 编辑
摘要: # softmax使用python代码实现训练<鸾尾花数据.csv>,(3分类)#1) 手写softmax算法方式实现。#2) 需要把数据划分训练测试集(7:3) 70%数据训练,30%测试#3) 画出训练的损失值曲线#4)计算混淆举证,准确率,召回率,精准率,f1#https://zhuanlan 阅读全文
posted @ 2022-05-04 14:37 星涅爱别离 阅读(347) 评论(0) 推荐(0) 编辑
摘要: np.r_是按列连接两个矩阵,就是把两矩阵上下相加,要求列数相等。 np.c_是按行连接两个矩阵,就是把两矩阵左右相加,要求行数相等。 具体见示例:1.np.c_的用法 a = np.array([[1, 2, 3],[7,8,9]]) b=np.array([[4,5,6],[1,2,3]]) a 阅读全文
posted @ 2022-05-01 19:15 星涅爱别离 阅读(232) 评论(0) 推荐(0) 编辑
摘要: 在Python 3中,range()与xrange()合并为range( )。 我的python版本为python3.5。 将xrange( )函数全部换为range( )。 阅读全文
posted @ 2022-05-01 10:17 星涅爱别离 阅读(42) 评论(0) 推荐(0) 编辑
摘要: wget http://xmlsoft.org/sources/libxml2-2.9.1.tar.gztar -xvf libxml2-2.9.1.tar.gzcd libxml2-2.9.1./configure && make && make install 可能报错 configure: e 阅读全文
posted @ 2022-04-18 14:53 星涅爱别离 阅读(7635) 评论(0) 推荐(0) 编辑
摘要: pkg install openssl 之后再重新pip,⚠️自己的pip版本,比如 pip3.10 install ipython -i https://pypi.tuna.tsinghua.edu.cn/simple some-package输入 ls /data/data/com.termux 阅读全文
posted @ 2022-04-18 10:18 星涅爱别离 阅读(671) 评论(0) 推荐(0) 编辑
摘要: 先执行 https://www.sqlsec.com/2020/04/termuxlinux.html安装ubuntu 再执行 http://betheme.net/news/txtlist_i163222v.html中三、安装Ubuntu桌面后的部分 之后每次使用,都需要 cd ~/Termux- 阅读全文
posted @ 2022-04-17 15:54 星涅爱别离 阅读(200) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 28 下一页