当前位置: 首页 > news >正文

网站优化包括整站优化吗中山 做网站

网站优化包括整站优化吗,中山 做网站,短视频seo获客,西安大型网站建设公司文章目录 前言1.人工神经网络2.计算机神经网络3.反向传播4.梯度下降-cost 函数1.一维2.二维3.局部最优4.迁移学习 5. theano-GPU-CPU theano介绍1.安装2.基本用法1.回归2.分类 3.function用法4.shared 变量5.activation function6.Layer层7.regression 回归例子8.classificatio… 文章目录 前言1.人工神经网络2.计算机神经网络3.反向传播4.梯度下降-cost 函数1.一维2.二维3.局部最优4.迁移学习 5. theano-GPU-CPU theano介绍1.安装2.基本用法1.回归2.分类 3.function用法4.shared 变量5.activation function6.Layer层7.regression 回归例子8.classification分类学习9.过拟合10.正则化11.save model12 总结 前言 本章主要介绍深度学习与python theano。 主要整理来自B站 1.深度学习框架简介 Theano 2.Theano python 神经网络 1.人工神经网络 2.计算机神经网络 3.反向传播 4.梯度下降-cost 函数 1.一维 2.二维 3.局部最优 大部分时间我们只能求得一个局部最优解 4.迁移学习 5. theano-GPU-CPU tenforflow鼻祖 theano介绍 1.安装 win10安装theano 设置 ldflags -lblaswindow10安装这里要说明一点的是python3.8安装theano会出现一些非常奇怪的问题所以这里选用python3.7. conda create -n theano_env python3.7 conda activate theano_env conda install numpy scipy mkl-service libpython m2w64-toolchain#如果想要安装的快点可以使用国内的镜像 pip install -i https://pypi.tuna.tsinghua.edu.cn/simple theano安装后出现了下列问题 WARNING (theano.tensor.blas): Failed to import scipy.linalg.blas, and Theano flag blas.ldflags is empty. Falling back on slower implementations for dot(matrix, vector), dot(vector, matrix) and dot(vector, vector) (DLL load failed: 找不到指定的模块。) 不过想了一下自己也只是学习一下而已慢就慢吧不用C的 2.基本用法 1.回归 拟合曲线 # View more python tutorials on my Youtube and Youku channel!!!# Youtube video tutorial: https://www.youtube.com/channel/UCdyjiB5H8Pu7aDTNVXTTpcg # Youku video tutorial: http://i.youku.com/pythontutorial# 10 - visualize resultPlease note, this code is only for python 3. If you are using python 2, please modify the code accordingly.from __future__ import print_function import theano import theano.tensor as T import numpy as np import matplotlib.pyplot as pltclass Layer(object):def __init__(self, inputs, in_size, out_size, activation_functionNone):self.W theano.shared(np.random.normal(0, 1, (in_size, out_size)))self.b theano.shared(np.zeros((out_size, )) 0.1)self.Wx_plus_b T.dot(inputs, self.W) self.bself.activation_function activation_functionif activation_function is None:self.outputs self.Wx_plus_belse:self.outputs self.activation_function(self.Wx_plus_b)# Make up some fake data x_data np.linspace(-1, 1, 300)[:, np.newaxis] noise np.random.normal(0, 0.05, x_data.shape) y_data np.square(x_data) - 0.5 noise # y x^2 - 0.5# show the fake data plt.scatter(x_data, y_data) plt.show()# determine the inputs dtype x T.dmatrix(x) y T.dmatrix(y)# add layers l1 Layer(x, 1, 10, T.nnet.relu) l2 Layer(l1.outputs, 10, 1, None)# compute the cost cost T.mean(T.square(l2.outputs - y))# compute the gradients gW1, gb1, gW2, gb2 T.grad(cost, [l1.W, l1.b, l2.W, l2.b])# apply gradient descent learning_rate 0.05 train theano.function(inputs[x, y],outputs[cost],updates[(l1.W, l1.W - learning_rate * gW1),(l1.b, l1.b - learning_rate * gb1),(l2.W, l2.W - learning_rate * gW2),(l2.b, l2.b - learning_rate * gb2)])# prediction predict theano.function(inputs[x], outputsl2.outputs)# plot the real data fig plt.figure() ax fig.add_subplot(1,1,1) ax.scatter(x_data, y_data) plt.ion() plt.show()for i in range(1000):# trainingerr train(x_data, y_data)if i % 50 0:# to visualize the result and improvementtry:ax.lines.remove(lines[0])except Exception:passprediction_value predict(x_data)# plot the predictionlines ax.plot(x_data, prediction_value, r-, lw5)plt.pause(.5)2.分类 3.function用法 4.shared 变量 5.activation function 6.Layer层 7.regression 回归例子 8.classification分类学习 9.过拟合 10.正则化 11.save model 12 总结
http://www.zqtcl.cn/news/986354/

相关文章:

  • 网站规划中的三种常用类型宁波海曙区建设局网站
  • dede做网站湖北网址大全
  • 如何注册网站的名字html表单制作
  • 中国建设工程协会标准网站什么网站做推广比较好
  • 长沙专业网站建设怎么做关于网站建设的投标书
  • 石家庄公司网站如何制作wordpress 大图 主题
  • 网站建设和管理情况如何传图片做网站
  • 网站建设流量什么意思杭州企业网站设计模板
  • 义乌网站制作是什么交互式网站
  • 淘宝客api调用到网站世界足球排名前100名
  • 网站建设合作方案wordpress 付费主题 高级功能编辑器
  • 用cms做网站的具体步骤北京市网站备案查询
  • 中国设计师网站WordPress添加live2d
  • 我是做网站的云溪网络建站宝盒
  • 为什么没人做团购网站子域名的网站放到哪里去
  • 成都做网站设企业建一个网站需要多少钱
  • 淮南建设网站菏泽兼职网站建设
  • 品牌做网站公司做网站需要一些什么东西
  • 网页制作软件三剑客网站优化排名的方法
  • 购物网站开发背景及目的做百度推广网站咱们做
  • 漳州最专业的网站建设公司网站建设工作方案
  • 江西省建设厅网站官网网站备案期间可以用二级域名访问网站吗
  • 三丰云做网站步骤php网站建设视频教程
  • 赤峰网站开发公司wordpress电子商务主题 中文
  • 网站建设运营工作业绩怎样查看网站备案号
  • 江苏常州网站建设公司外贸网站建设盲区
  • 响应式网站设计教程wordpress 医院主题
  • 手机上怎么上传网站吗舟山做网站
  • 程序员做个网站要多少钱呢网站开发设计技术路线
  • 企业网站优化与推广哪个网站seo做的最好