margin-left

反向传播算法简介

我与影子孤独终老i 提交于 2019-11-28 15:19:14
<!doctype html> 反向传播算法 */ /*--> */ 反向传播算法简介(BP,Backpropagation algorithm) 原文: http://neuralnetworksanddeeplearning.com/chap2.html BP 算法所关注的是神经网络中损失函数 C (cost function) 与每一个权重 和偏置 的偏导。BP 不仅仅是一个快速的算法,其同时为我们提供了一个视角,让我们观察权值和偏置是如何影响网络输出的。 译者注:本文中所描述的网络以层为单位,如果把层当做图的节点,数据流向作为图的有向边,那么本文所描述的网络所抽象出的图一定是有向无环的。 本文并没有翻译原文所有内容 。 热身:利用矩阵实现网络计算 先介绍一个网络权重的数学标记法: ,这个数学标记表示神经网络中第 层网络的第 个元素和第 层第 个元素之间的权重。同样, 表示第 层第 个元素的偏置值, 表示 层第 个元素的激活函数输出值。利用这种数学表示, 可以表示为: 使用矩阵形式表示上述表达式: 定义 为激活函数的输入值则可以将上面表达式 表示为: 损失函数的两个特点 BP 算法用于计算网络中所有权重 和偏置 关于损失函数 的偏导数 和 。为了使 BP 算法正常运行,损失函数需要满足两个条件。在给出这两个条件前,我们先介绍一种常用的均方差损失函数,如式 所示: 表达式

反向传播算法简介

走远了吗. 提交于 2019-11-28 15:05:48
<!doctype html> 反向传播算法 */ /*--> */ 反向传播算法简介(BP,Backpropagation algorithm) 原文: http://neuralnetworksanddeeplearning.com/chap2.html BP 算法所关注的是神经网络中损失函数 C (cost function) 与每一个权重 和偏置 的偏导。BP 不仅仅是一个快速的算法,其同时为我们提供了一个视角,让我们观察权值和偏置是如何影响网络输出的。 译者注:本文中所描述的网络以层为单位,如果把层当做图的节点,数据流向作为图的有向边,那么本文所描述的网络所抽象出的图一定是有向无环的。 本文并没有翻译原文所有内容 。 热身:利用矩阵实现网络计算 先介绍一个网络权重的数学标记法: ,这个数学标记表示神经网络中第 层网络的第 个元素和第 层第 个元素之间的权重。同样, 表示第 层第 个元素的偏置值, 表示 层第 个元素的激活函数输出值。利用这种数学表示, 可以表示为: 使用矩阵形式表示上述表达式: 定义 为激活函数的输入值则可以将上面表达式 表示为: 损失函数的两个特点 BP 算法用于计算网络中所有权重 和偏置 关于损失函数 的偏导数 和 。为了使 BP 算法正常运行,损失函数需要满足两个条件。在给出这两个条件前,我们先介绍一种常用的均方差损失函数,如式 所示: 表达式

写得不好 慢慢领悟吧

自闭症网瘾萝莉.ら 提交于 2019-11-27 19:49:09
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Document</title> <link rel="stylesheet" href="indexl.css"> </head> <body> <div class="box"> <div class="heder"> <img src="logo.png" alt=""> </div> <div class="content"> <div class="content-left"><img src="page_1.gif" alt=""></div> <div class="content-three"> <div class="content-three1"><p> <b> Business.Co</b> is one of <a href="">ferr website templates created by</a><br>TemplateMonster.com team This

双飞翼布局

孤街醉人 提交于 2019-11-27 18:40:43
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>双飞翼布局</title> <style> *{ padding: 0; margin: 0; } .container{ width: 100%; height: 100%; background-color: red; min-height: 500px; float: left; } .container .center{ margin-left: 200px; margin-right: 150px; background-color: green; } .left{ float: left; width: 200px; height: 100px; background-color: pink; margin-left: -100%; } .right{ float: left; width: 150px; height: 100px; background-color: purple; margin-left: -150px; } </style></head><body></body><div class="container"> <div class="center"> 451 </div></div><div class=

圣杯布局 和 双飞翼布局

穿精又带淫゛_ 提交于 2019-11-27 04:58:43
圣杯布局和双飞翼布局的目的:    1.三栏布局,中间一栏最先加载和渲染(内容最重要)   2. 两侧内容固定,中间内容随着宽度自适应   3. 一般用于 PC 网页 圣杯布局实现思路:    1. 将最外层的container的padding 设置为 padding: 0 150px 0 200px; 为左右两块让出空间;   2. 将.middle,.left ,.right 三者设为浮动;   3. 将middle 的 width设置为 100%;   4. 分别给.left设置margin-left,.right设置margin-right;将left 和right 拉到与middle同一水平;   5. 再用定位将左右位置设置好 圣杯布局具体代码实现:    html代码: <div class="container"> <div class="middle">middle</div> <div class="left">left</div> <div class="right">right</div> </div>    css代码: .container{ padding: 0 150px 0 200px; overflow: hidden; } .middle,.left,.right{ float: left; height: 200px; } .left{

终于学会怎么写后台侧列表(隐藏滚动条)

北战南征 提交于 2019-11-26 17:22:03
终于学会怎么写后台侧列表(隐藏滚动条) 首先一个标准后台程序有三部分组成: 顶部条 左侧列表 右侧正文内容 现在要求如下: 左侧列表可以滑动,但不可见滚动条 左侧列表滑动时,顶部条不能动 右侧内容区高度不够时,左侧依然可以滑动 实现和办法: 左侧列表和顶部条定位使用 position:fixed 左侧列表要使用 bottom:0(left:0) ,否则不能滑动 左侧列表使用 overflow-x:hidden;overflow-y:scroll; 左侧列表 宽度 要和右侧内容的 margin-left 后对齐, 其实就是要用右侧正文内容盖住左侧列表的滚动条而隐藏,而盖住的方式是左侧使用 fixed ,右侧使用 relative 。 html,body 使用 height:100% (为满足右侧正文高度) 右侧正文内容区使用 height:100% (来撑起高度) 右侧正文内容区使用 position:relative;(用来覆盖左侧多余的滚动条) body使用 overflow-x:hidden; (非必须) 右侧内容区一定要给个背景颜色,用来盖住左侧滚动条 左侧列表使用height:100% 简单用代码来写就是: html,body{ height:100%; overflow-x:hidden; /*非必须*/ } .topbar{ position:fixed; /*必须*/

三栏布局(草稿)

血红的双手。 提交于 2019-11-26 12:36:00
死妈的 三栏布局 分两种: 中间自适应,两边定宽 1.左边 float:left 右边float:right 中间 margin 上下0 左右分别是 左边和右边 的宽 中间 : min-width: 100px; /* 最小宽度,防止浏览器缩小后中间部分被隐藏 */ 2.左边右边绝对定位 top:0 left,right:0 中间 margin 上下0 左右分别是 左边和右边 的宽 3.用容器包裹三栏,并将容器的display设置为flex,左右两部分宽度设置为固定,中间flex设置为1 以上三种方法 中间部分都不设宽 所以叫自适应 圣杯布局: 1.container padding-left padding-right 留出左、右部分宽度 2.dom结构时 center写在前面 3.center、left、right 三个都float:left 4.center 100% 左边,右边 各自设置 固定宽度 5.footer 清除浮动 6.左边:margin-left:-100% 相对定位 right:左部分宽度 这个效果我不懂 就这么记吧 7.右边:margin-right:- 右部分宽度 8.body:min-width:左宽度x2 + 右宽度 dom: <div id="header"></div> <div id="container"> <div id="center"

10种有用的CSS技巧

℡╲_俬逩灬. 提交于 2019-11-26 11:47:20
重置浏览器的默认设置 首先将以下代码加到你的全局css文件中: /* 1.Reset browser defaults then reset the browser font size */ body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p, blockquote,th,td { margin : 0 ; padding : 0 ; } table { border-collapse : collapse ; border-spacing : 0 ; } fieldset,img { border : 0 ; } address,caption,cite,code,dfn,em,strong,th,var { font-style : normal ; font-weight : normal ; } ol,ul { list-style : none ; } caption,th { text-align : left ; } h1,h2,h3,h4,h5,h6 { font-size : 100% ; font-weight : normal ; } q:before,q:after { content : “ ; } abbr,acronym { border : 0