自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

bqw的博客

没什么描述

  • 博客(24)
  • 资源 (2)
  • 收藏
  • 关注

原创 【TensorFlow】使用Tensorboard绘制网络结构

import tensorflow as tf# 加载数据from tensorflow.examples.tutorials.mnist import input_datamnist = input_data.read_data_sets('/tmp/data',one_hot=True)Extracting /tmp/data/train-images-idx3-ubyte.gzE...

2018-11-29 22:43:13 3982

原创 【TensorFlow】使用全连接网络+dropout对MNIST进行分类

import tensorflow as tf# 加载数据from tensorflow.examples.tutorials.mnist import input_datamnist = input_data.read_data_sets('/tmp/data',one_hot=True)Extracting /tmp/data/train-images-idx3-ubyte.gzE...

2018-11-26 22:54:20 2124

原创 【TensorFlow】使用TensorFlow执行K-Means

import numpy as npimport tensorflow as tffrom tensorflow.contrib.factorization import KMeans加载数据from tensorflow.examples.tutorials.mnist import input_datamnist = input_data.read_data_sets("/tmp/...

2018-11-18 22:21:11 1034

原创 【TensorFlow】使用Tensorflow实现KNN

import numpy as npimport tensorflow as tffrom tensorflow.examples.tutorials.mnist import input_datamnist = input_data.read_data_sets("/tmp/data/", one_hot=True)Extracting /tmp/data/train-images-...

2018-11-18 00:41:23 1323 5

原创 【TensorFlow】使用TensorFlow的Eager API实现LR

import tensorflow as tf开始eager模式tf.enable_eager_execution()tfe = tf.contrib.eager加载数据from tensorflow.examples.tutorials.mnist import input_datamnist = input_data.read_data_sets("/tmp/data/", o...

2018-11-18 00:11:13 689

原创 【TensorFlow】使用TensorFlow实现LR

import tensorflow as tfimport numpy as npimport matplotlib.pyplot as pltload datafrom tensorflow.examples.tutorials.mnist import input_datamnist = input_data.read_data_sets("/tmp/data/", one_hot...

2018-11-17 23:04:51 5883

原创 【TensorFlow】使用TensorFlow的Eager API实现线性回归

import tensorflow as tfimport numpy as npimport matplotlib.pyplot as plt开启eager模式tf.enable_eager_execution()tfe = tf.contrib.eager参数learning_rate = 0.01training_epochs = 1000display_step = ...

2018-11-17 22:29:13 562

原创 【TensorFlow】使用TensorFlow实现线性回归

import tensorflow as tfimport numpy as npimport matplotlib.pyplot as plt参数learning_rate = 0.01training_epochs = 1000display_step = 50生成数据X_train = np.array([3.3,4.4,5.5,6.71,6.93,4.168,9.779...

2018-11-17 21:56:33 543

原创 【TensorFlow】:Eager Mode(动态图模式)

TensorFlow的Eager模型,也可以看做是动态图模型。该模型下不需要先构造图,然后再使用Session.run(),而是可以得到即时的反馈。这样在研究和开发时会更加符合直觉。import numpy as npimport tensorflow as tf设置eager modetf.enable_eager_execution()tfe = tf.contrib.eager...

2018-11-17 21:04:59 5131 2

原创 【深度学习框架Keras】RNN、RNN的droput、stacking RNN、双向RNN的应用

说明:主要参考Francois Chollet《Deep Learning with Python》代码运行环境为kaggle中的kernels;数据集jena_climate_2009_2016需要手动添加;# This Python 3 environment comes with many helpful analytics libraries installed# It is...

2018-11-09 20:48:35 3287 6

原创 【深度学习】:L1与L2正则化的原理

参考文献:Ian Goodfellow,Yoshua Bengio,Aaron Courville.Deep Learing.

2018-11-09 14:37:23 1236

原创 【深度学习框架Keras】Batch Normalization与深度可分离卷积

说明:主要参考Francois Chollet《Deep Learning with Python》;一、Batch Normalization在训练神经网络时,对输入进行normalization可以提高训练的速度。但是在只对输入normalization是不够的,那么如果对各个隐藏层进行normalization呢?这就是batch normalization的作用。batch no...

2018-11-08 16:19:03 4412

原创 【深度学习框架Keras】在Keras中使用TensorBoard

一、TensorBoard介绍TensorBoard是一个内置于TensorFlow中的基于浏览器的可视化工具。只有当Keras使用TensorFlow后端时,这一方法才能用于Keras模型。TensorBoard的主要用途是在训练过程中帮助你可视化的监控模型内部发生的一切,这样就可以更清楚地了解模型做了什么、没做什么。TensorBoard具有以下功能:在训练过程中以可视化的方式监控指...

2018-11-08 15:52:13 3155

原创 【深度学习框架Keras】Keras回调函数

说明:主要参考Francois Chollet《Deep Learning with Python》;代码运行环境为kaggle中的kernels;# This Python 3 environment comes with many helpful analytics libraries installed# It is defined by the kaggle/python do...

2018-11-08 13:11:25 2626

原创 【深度学习框架Keras】非Sequential模型(函数式API)

说明:主要参考Francois Chollet《Deep Learning with Python》;代码运行环境为kaggle中的kernels;# This Python 3 environment comes with many helpful analytics libraries installed# It is defined by the kaggle/python do...

2018-11-07 21:13:42 2954

原创 【深度学习框架Keras】在IMDB上应用双向LSTM

说明:主要参考Francois Chollet《Deep Learning with Python》代码运行环境为kaggle中的kernels;数据集IMDB需要手动添加;循环神经网络及双向循环神经网络请参考:【深度学习】:循环神经网(RNN)、【深度学习】:长期依赖与LSTM# This Python 3 environment comes with many helpful a...

2018-11-07 17:20:44 1390

原创 【深度学习框架Keras】循环神经网络(SimpleRNN与LSTM)

说明:主要参考Francois Chollet《Deep Learning with Python》代码运行环境为kaggle中的kernels;数据集IMDB需要手动添加;循环神经网络和LSTM请参考:【深度学习】:循环神经网(RNN)、【深度学习】:长期依赖与LSTM# This Python 3 environment comes with many helpful analy...

2018-11-05 17:21:55 17848 1

原创 【深度学习框架Keras】NLP中的n-gram、one-hot与word-embeddings

说明:主要参考Francois Chollet《Deep Learning with Python》;代码运行环境为kaggle中的kernels;数据集IMDB、IMBD RAW以及GloVe需要手动添加# This Python 3 environment comes with many helpful analytics libraries installed# It is d...

2018-11-05 02:36:20 3070

原创 【深度学习框架Keras】在小数据集上训练图片分类模型的技巧

说明:1.主要参考Francois Chollet《Deep Learning with Python》;2.代码运行环境为kaggle中的kernels;3.数据集和预训练模型VGG-16需要手动添加;4.卷积神经网络请参考:【深度学习】:卷积神经网络(CNN)# This Python 3 environment comes with many helpful analytics...

2018-11-02 15:35:41 12825 8

原创 《剑指offer》学习笔记_面试题16_数值的整数次方

#include <cfloat>class Solution {public: double Power(double base, int exponent) { //0的负数次方直接返回 if(equal(base,0.0)&&exponent<0)return 0.0; unsigned i...

2018-11-01 21:09:28 514

原创 《剑指offer》学习笔记_面试题15_二进制中1的个数

    1.解法1 int NumberOf1(int n){ int count = 0; unsigned int flag = 1; while(flag){//当flag中的1移到越界后,flag值会转变为0 //当n&flag不为0时,表示当前flag中1对应的位置不为0 ...

2018-11-01 18:28:53 500

原创 【C++】:位运算的五种操作

2018-11-01 15:52:18 592

原创 《剑指offer》学习笔记_面试题13_机器人的运动范围

一、题目描述           地上有一个m行n列的方格。一个机器人从坐标(0,0)的格子开始移动,它每次可以向左、右、上、下移动一格,但不能进入行坐标和列坐标的数位之和大于k的格子。例如,当k为18时,机器人能够进入方格(35,37),因为3+5+3+7=18。但它不能进入方格(35,38),因为3+5+3+8=19。请问该机器人能够到达多少个格子? 二、思路        ...

2018-11-01 14:27:34 549

原创 《剑指offer》学习笔记_面试题12_矩阵中的路径

一、题目描述          设计一个函数,用来判断在一个矩阵中是否存在一条包含某字符串所有字符的路径。路径可以从矩阵中的任意一格开始,每一步可以在矩阵中向左、右、上、下移动一格。如果一条路径经过了矩阵的某一格,那么该路径不能再进入该格子。 二、思路          典型的回溯题。在回归的过程中需要全局变量来记录当前的访问状态,已经字符串已经匹配的长度。 三、C++实现...

2018-11-01 13:25:19 514

basic-miktex-2.9.6643-x64.exe

MikTeX是Tex/LaTex最新的实现程序,使用Anaconda将文档保存成PDF时需要安装。

2018-04-04

Linux下模拟软件互斥实现算法

在Linux下,模拟实现四种软件互斥算法:Dekker,Peterson,Lamport,Eisenburg-Mcguire.

2012-09-07

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除