自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(11)
  • 资源 (1)
  • 收藏
  • 关注

原创 Tensorflow 2.0 的 “placeholder” 问题

AttributeError: module ‘tensorflow’ has no attribute ‘placeholder’解决方法:import tensorflow.compat.v1 as tf如果还出现报错,则需要关闭代码中关闭eager运算:tf.disable_eager_execution()2.0版本和1.0有很多不兼容,还需要大家去发现。...

2020-03-28 15:54:56 11463 8

原创 python读取文件

1、简单open写法了解一下完整格式:open(file, mode='r', buffering=None, encoding=None, errors=None, newline=None, closefd=True)参数说明:file: 必需,文件路径(相对或者绝对路径)。mode: 可选,文件打开模式(只读模式‘r’,写入模式‘w’)buffering: 设置缓冲enco...

2020-03-25 14:46:37 189

原创 AttributeError: module 'tensorflow' has no attribute 'X'

AttributeError: module ‘tensorflow’ has no attribute ‘X’.:关于模块“tensorflow”没有属性“X”的问题问题原因:因为tensorflow2.0以后,有了很大的整改,对模块没有属性问题只是一个方法就可以解决问题解决:第一种方法:import tensorflow as tf调用属性时:tf.compat.v1.属...

2020-03-22 14:14:02 229

原创 AttributeError: module 'tensorflow' has no attribute 'reset_default_graph'

AttributeError:模块“tensorflow”没有属性“reset_default_graph”环境配置:python3.7tensorflow2.0Window 10初始代码:tf.reset_default_graph()执行错误:解决方法:import tensorflow as tftf.compat.v1.reset_default_graph()...

2020-03-22 14:05:25 18981 2

原创 AttributeError: module 'tensorflow' has no attribute 'Session'

AttributeError:模块“tensorflow”没有属性“Session”环境配置:python3.7tensorflow2.0Window 10初始代码:# Launch the graph in a session.with tf.Session() as sess: # Run the variable initializer. sess.run(...

2020-03-22 09:42:22 448

原创 AttributeError: module 'tensorflow' has no attribute 'global_variables_initializer'

AttributeError:模块“tensorflow”没有属性“global_variables_initializer”环境配置:python3.7tensorflow2.0window 10初始代码:init = tf.global_variables_initializer()执行错误:错误原因:这不是安装错误,是因为在新的Tensorflow 2.0版本中已经...

2020-03-22 09:35:34 13805 5

原创 AttributeError: module 'tensorflow' has no attribute 'assign'

AttributeError:模块“tensorflow”没有属性“assign”环境配置:python3.7tensorflow2.0window 10初始代码:update_value = tf.assign(value, new_value)会出现以下错误AttributeError: module 'tensorflow' has no attribute 'assi...

2020-03-22 09:29:02 6299 3

原创 python去掉索引保存文本写入.txt文件

这是一个关于.xlsx文件或者是.csv文件处理后,去掉索引,保存成.txt文件的方法。我是做了一个留言文本处理,数据量500条,我是提取了“留言主题”这一列内容,下面先来看一下我们处理后的文件是怎么样的:data = pd.read_excel('附件2.xlsx') #读取文件comment_data = data.loc[:,['留言主题']] #只提取评论数据#去除重复值com...

2020-03-18 23:39:42 1232

原创 计算机三级数据库考点(二)- 需求分析

需求分析—————————————————————————————————一、需求分析数据需求分析的主要工作是从用户视图出发,分析与辨识应用领域所管理的各类数据项和数据结构。在需求分析阶段,系统需求分析员与用户充分沟通,并形成文档化的需求描述。需求分析过程,需要系统描述整个应用系统的功能特征、性能特征和约束,并形成需求规范说明文档。二、需求分析方法1、DFD需求建模方法DFD...

2020-03-16 23:07:35 1085

原创 最新Bert安装教程

BERT的全称是Bidirectional Encoder Representation from Transformers,即双向Transformer的Encoder,因为decoder是不能获要预测的信息的。模型的主要创新点都在pre-train方法上,即用了Masked LM和Next Sentence Prediction两种方法分别捕捉词语和句子级别的representation。相...

2020-03-09 12:09:37 6349 9

原创 计算机三级数据库考点(一)- 数据库应用系统开发方法

数据库应用系统(DBAS)开发方案一、数据库应用系统生命周期用现代工程的概念管理软件生产与开发全过程的典型方法有:(1)瀑布模型,也称为软件生命周期模型(2)快速原型模型(3)螺旋模型基于严格的、明确的需求作为软件系统开发基础的软件开发模型是瀑布模型二、规划与分析三、需求分析采用合适的工具和符号,系统地描述DBAS的功能特征、性能特征和约束,并形成需求规范说明文档。--...

2020-03-04 16:10:08 383 1

"rank()、dense_rank()和row_number()的区别"score.txt

“rank()、dense_rank()和row_number()的区别”文章的date

2021-03-02

空空如也

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

TA关注的人

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