
TensorFlow
雙重底
量化金融分析師
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
[TensorFlow] TensorFlow学习的方向
教程本节包含演示如何在 TensorFlow 中执行特定任务的教程。如果您是 TensorFlow 的新手,那么在阅读这些教程之前,我们建议阅读“入门”一节中的文档。[1]以下教程解释了 TensorFlow 系统上CPU和GPU的交互:(1)使用GPU[2]以下教程介绍了图像识别的不同方面:(1)图像识别,它引入了图像识别领域和一个用于识别图像的模型(Incept原创 2017-12-11 14:59:48 · 696 阅读 · 0 评论 -
[TensorFlow] demo1 tf.square 函数
tensorflow/python/ops/math_ops.py.就是求平方的函数库原创 2017-12-18 20:01:58 · 1894 阅读 · 0 评论 -
[TensorFlow] demo1 tf.zeros 函数
定义的文件路径:tensorflow/python/ops/array_ops.py.举个例子:tf.zeros([3, 4], tf.int32) # [[0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]]可以看出,创建一个数组并初始化它们都为0Args:shape: A list of integers, a tuple of integ原创 2017-12-18 19:58:49 · 4960 阅读 · 0 评论 -
[TensorFlow] demo1 tf.random_uniform 函数
tensorflow/tensorflow/python/ops的 random_ops.py 文件有定义# pylint: disable=protected-accessdef random_normal(shape, mean=0.0, stddev=1.0, dtype=dty原创 2017-12-18 19:40:49 · 1755 阅读 · 0 评论 -
[TensorFlow] python3-tk 库的安装作为tensorflow的可视化库
jhczz@vaio:~$ suPassword: root@vaio:/home/jhczz# apt-get install python3-tkReading package lists... DoneBuilding dependency tree Reading state information... DoneThe following packag原创 2017-12-16 22:34:13 · 1223 阅读 · 0 评论 -
[TensorFlow] git clone 官方的tensorflow代码
原创 2017-12-18 19:00:09 · 3650 阅读 · 0 评论 -
[TensorFlow] demo1 创建100个float32的随机数x_data
import numpy as npx_data = np.random.rand(100).astype(np.float32)print(x_data)运行效果如下:原创 2017-12-18 18:35:30 · 806 阅读 · 0 评论 -
[TensorFlow] demo1 导入tensorflow相关的包,并生成Weights和biases
import tensorflow as tfimport numpy as npx_data = np.random.rand(100).astype(np.float32)y_data = x_data*0.1 + 0.3#print(x_data)#print(y_data)Weights = tf.Variable(tf.random_uniform([1], -1.0, 1.原创 2017-12-18 18:43:27 · 675 阅读 · 0 评论 -
[TensorFlow] demo1 创建100个float32的随机数y_data
import numpy as npx_data = np.random.rand(100).astype(np.float32)y_data = x_data*0.1 + 0.3print(x_data)print(y_data)原创 2017-12-18 18:38:07 · 2592 阅读 · 0 评论 -
[TensorFlow] windows 安装TensorFlow
C:\Users\Administrator>pip install tensorflowCollecting tensorflow Downloading tensorflow-1.4.0-cp36-cp36m-win_amd64.whl (28.3MB) 100% |████████████████████████████████| 28.3MB 72kB/sColle原创 2017-12-15 10:49:37 · 903 阅读 · 0 评论 -
[TensorFlow] Ubuntu16.04 更新最新的pip3 正确方式
root@xxx:/home/czz# pip3 install --upgrade pipCollecting pip Using cached pip-9.0.1-py2.py3-none-any.whlInstalling collected packages: pip Found existing installation: pip 8.1.1 Not uni原创 2017-12-14 09:17:32 · 3199 阅读 · 2 评论 -
[TensorFlow] ubuntu16.04 pip3安装 TensorFlow
[08:40:08]root@xxx:/home/czz# pip3 install tensorflow[08:40:15]Collecting tensorflow[08:40:16] Downloading tensorflow-1.4.1-cp35-cp35m-manylinux1_x86_64.whl (40.7MB)[08:42:15] 100% |||||||||原创 2017-12-14 08:49:59 · 1714 阅读 · 0 评论 -
[TensorFlow] demo1 完整的代码和运行结果
import tensorflow as tfimport numpy as npx_data = np.random.rand(100).astype(np.float32)y_data = x_data*0.1 + 0.3#print(x_data)#print(y_data)Weights = tf.Variable(tf.random_uniform([1], -1.0,原创 2017-12-19 22:57:09 · 1492 阅读 · 0 评论 -
[TensorFlow] demo1 tf.initialize_all_variables函数换成新的tf.global_variables_initializer函数
WARNING:tensorflow:From /usr/local/lib/python3.5/dist-packages/tensorflow/python/util/tf_should_use.py:107: initialize_all_variables (from tensorflow.python.ops.variables) is deprecated and will be re原创 2017-12-18 22:43:10 · 2130 阅读 · 0 评论