摘要: 弹性网络回归算法是综合lasso回归和岭回归的一种回归算法,通过在损失函数中增加L1正则和L2正则项,进而控制单个系数对结果的影响 阅读全文
posted @ 2018-06-12 15:07 绯叶阿卡丽 阅读(1243) 评论(0) 推荐(0) 编辑
摘要: import tensorflow as tf import numpy as np import matplotlib.pyplot as plt from sklearn import datasets sess=tf.Session() #加载鸢尾花集 iris=datasets.load_iris() #宽度 长度 x_vals=np.array([x[3] for x in iris... 阅读全文
posted @ 2018-06-12 00:04 绯叶阿卡丽 阅读(1544) 评论(0) 推荐(0) 编辑
摘要: import matplotlib.pyplot as plt import numpy as np import tensorflow as tf sess=tf.Session() x_vals=np.linspace(0,10,100) y_vals=x_vals+np.random.normal(0,1,100) #装换成矩阵 reshape成 (None,1) x_vals_co... 阅读全文
posted @ 2018-06-11 15:29 绯叶阿卡丽 阅读(266) 评论(0) 推荐(0) 编辑
摘要: import matplotlib.pyplot as plt import numpy as np from sklearn import datasets import tensorflow as tf sess=tf.Session() iris=datasets.load_iris() #print(iris) target=np.array([1. if x==0 else 0. ... 阅读全文
posted @ 2018-06-11 15:21 绯叶阿卡丽 阅读(216) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: utf-8 -*- """ Created on Tue Jan 30 08:46:36 2018 block:每个区块包含属性:索引(index),Unix时间戳(timestamp),交易列表(transactions),工作量证明(稍后解释)以及前一个区块的Hash值。 @author: Administrator """ import hashlib impo... 阅读全文
posted @ 2018-01-30 17:25 绯叶阿卡丽 阅读(507) 评论(0) 推荐(0) 编辑
摘要: 首先看使用方法: 插件内容介绍: 1.前台html元素格式: 2.调用方法封装 3.对象构造函数封装: 为了使图片加载一次之后不用重新加载 加入已加载完成的的图片的索引 4. prototype函数封装: 5.效果预览 // github地址:h5图片预览滑动 阅读全文
posted @ 2018-01-12 17:21 绯叶阿卡丽 阅读(1503) 评论(0) 推荐(0) 编辑
摘要: AngularJS 是一个 JavaScript 框架。它可通过 <script> 标签添加到 HTML 页面。 AngularJS 通过 指令 扩展了 HTML,且通过 表达式 绑定数据到 HTML。 eg: ng-app 指令告诉 AngularJS,<div> 元素是 AngularJS 应用 阅读全文
posted @ 2017-11-22 01:06 绯叶阿卡丽 阅读(90) 评论(0) 推荐(0) 编辑
摘要: egg: A Painless Q-learning Tutorial (一个 Q-learning 算法的简明教程) 第一种: 得到策略矩阵Q: 第二种: 得到策略矩阵Q及测试状态2: 阅读全文
posted @ 2017-11-15 16:38 绯叶阿卡丽 阅读(479) 评论(0) 推荐(0) 编辑
摘要: 给定样本x数据: 对应y数据: 如下结果: 从数据来看 成本函数一直在递减 说明 方向是正确的 整体上系数也越来越接近(2,7,3)+8 阅读全文
posted @ 2017-10-09 14:05 绯叶阿卡丽 阅读(3058) 评论(0) 推荐(0) 编辑
摘要: 前文已经讲过如何制作雪花特效demo,但是之前的雪花特效较为单一,本文将分为两部分一部分讲述如何制作复杂状态的雪花,另一部分讲述登录页面的制作 1.雪花特效的制作 2.实现颜色渐变背景及批量生产雪花 3.登录及整体HTML界面 (部分标签) 也可以灵活修改js文件实现不同效果 如下两种效果: git 阅读全文
posted @ 2017-09-27 15:54 绯叶阿卡丽 阅读(475) 评论(0) 推荐(0) 编辑