摘要:
利用tensorflow实现数据的线性回归 导入相关库 import tensorflow as tf import numpy import matplotlib.pyplot as plt rng = numpy.random 参数设置 learning_rate = 0.01 training 阅读全文
posted @ 2018-10-30 23:53
既生喻何生亮
阅读(442)
评论(2)
推荐(0)
摘要:
tensorflow常数操作 结果 a=2, b=3 Addition with constants: 5 Multiplication with constants: 6 tensorflow变量操作 变量作为图形输入,构造器的返回值作为变量的输出,在运行会话时,传入变量的值,在进行运算。 结果 阅读全文
posted @ 2018-10-30 23:12
既生喻何生亮
阅读(360)
评论(0)
推荐(0)
摘要:
tensorflow急切执行概述 Eager execution is an imperative, define by run interface where operations are executed immediately as they are called from Python. T 阅读全文
posted @ 2018-10-30 22:47
既生喻何生亮
阅读(410)
评论(0)
推荐(0)
摘要:
代码展示 知识点理解 random库 随机数中使包括0和35,或者其中的一个。 在python中的 用于生成一个指定范围内的整数。其中参数a是下限,参数b是上限,生成的随机数n: a 代码来源 "github" 阅读全文
posted @ 2018-10-30 20:21
既生喻何生亮
阅读(445)
评论(0)
推荐(1)
摘要:
古诗 来自百度 It's cool. It is neat. It's righteous! It's righteous! 酷毙了! righteous是 cool 的高级了 如果一件事让你无法用 neat 形容,那就只好用这个字了 有人说他刚环游世界一周回来, 你就可以跟他说: "It's ri 阅读全文
posted @ 2018-10-30 18:48
既生喻何生亮
阅读(930)
评论(0)
推荐(0)
摘要:
为什么使用枚举 枚举类型是定义常量的一种最优选择。 常量 的广义概念是: 不变化的量 对于 常量 的通俗比喻—— 如同大山不被轻而易举地改变 地球上的重力加速度到海枯石烂也会改变 人们使用的常量是时间不很漫长的那一段时期基本上不会改变的量 真空状态中的光速是常量理论上不可改变,是常量 看下图: 采用 阅读全文
posted @ 2018-10-30 09:32
既生喻何生亮
阅读(304)
评论(0)
推荐(0)
摘要:
字符串的创建 字符串创建符号 ' ' " " ''' ''' """ """ 转义符\ >>> string_long = """This is another long string ... value that will span multiple ... lines in the output 阅读全文
posted @ 2018-10-30 00:06
既生喻何生亮
阅读(365)
评论(0)
推荐(0)

浙公网安备 33010602011771号