![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
tensorflow
心心强
学海无涯吧。希望跟大家多多交流。
展开
-
tensorflow 基础(1)预测广告投出和利润
#!/usr/bin/env python# coding: utf-8# In[7]:import tensorflow as tfimport pandas as pdimport numpy as npimport matplotlib.pyplot as pltget_ipython().run_line_magic('matplotlib', 'inline')# In[8]:data=pd.read_csv('./Desktop/tfData/Advertisi.原创 2021-03-18 10:40:08 · 192 阅读 · 1 评论 -
实类2:将模拟数据制作成内存对象数据集
1.生成模拟数据import numpy as npimport matplotlib.pyplot as pltimport tensorflow as tf#from sklearn.utils import shuffledef GenerateData(batchsize=100): train_X=np.linspace(-1,1,batchsize) tr...原创 2020-04-18 01:05:49 · 169 阅读 · 0 评论 -
安装tensorflow==1.13.1错误 升级numpy
ERROR: Could not find a version that satisfies the requirement grpcio>=1.8.6 (from tensorflow==1.13.1) (from versions: none)ERROR: No matching distribution found for grpcio>=1.8.6 (from tensorf...原创 2020-04-17 12:21:40 · 2918 阅读 · 0 评论 -
anaconda 各个版本下载地址
清华大学镜像:https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/?C=N&O=D原创 2020-04-16 16:13:38 · 710 阅读 · 0 评论 -
两个相乘矩阵类型不匹配
显示:TypeError: Input 'b' of 'MatMul' Op has type float32 that does not match type float64 of argument 'a这是由于两个相乘矩阵类型不匹配,调试一下发现x矩阵为tf.float64,W矩阵为tf.float32,改类型用tf.cast()函数,修改如下:y = tf.matmul(tf.ca...原创 2020-04-13 23:02:06 · 385 阅读 · 0 评论 -
Tensorflow线性回归问题(y=2x+1)
1.准备数据import numpy as npimport matplotlib.pyplot as pt#np.linspace生成100个等差数列,取值0,1之间x_data=np.linspace(0,1,100)#np.random.randn(*x_data.shape)维度跟x_data一致y_data=2*x_data +1.0+np.random.randn(*x...原创 2020-04-13 12:29:00 · 752 阅读 · 0 评论