自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(8)
  • 收藏
  • 关注

原创 卷积多层实现手写数字识别

import tensorflow as tfimport randomimport matplotlib.pyplot as pltfrom tensorflow.examples.tutorials.mnist import input_datatf.set_random_seed(777)mnist = input_data.read_data_sets(‘MNIST_data’,...

2019-09-07 17:18:42 158

原创 卷积实现手写数字识别

import tensorflow as tfimport randomimport matplotlib.pyplot as pltfrom tensorflow.examples.tutorials.mnist import input_datatf.set_random_seed(777)mnist = input_data.read_data_sets(‘MNIST_data/’...

2019-09-07 17:16:04 291

原创 卷积神经网络调库实现手写数字识别

import tensorflow as tfimport randomfrom tensorflow.examples.tutorials.mnist import input_data随机种子tf.set_random_seed(777)加载数据mnist = input_data.read_data_sets(‘MNIST_data’, one_hot=True)trainin...

2019-09-07 17:13:31 240

原创 多层神经网络实现(异或)问题

import numpy as npimport tensorflow as tfimport matplotlib.pyplot as pltimport warningswarnings.filterwarnings(‘ignore’)tf.set_random_seed(777)xdata = [[0, 0], [0, 1], [1, 0], [1, 1]]ydata = [[...

2019-09-07 17:04:28 1122

原创 德国面试官-单层神经网络

import tensorflow as tfimport numpy as nptf.set_random_seed(777)获取数据x_data = np.array([[0,0,1],[1,0,1],[1,1,1],[0,1,1]])y_data = np.array([[0],[1],[1],[0]])测试数据test_x = [[1,0,0],[0,1,0]]x = tf...

2019-09-07 17:02:29 160

翻译 简单实现封装MNIST_data代码实现

Lab 11 MNIST and Deep learning CNNimport tensorflow as tfimport matplotlib.pyplot as pltfrom tensorflow.examples.tutorials.mnist import input_datatf.set_random_seed(777) # reproducibilitymnist =...

2019-09-07 16:58:46 224

原创 最简单的正则表达式例题

import restr1 = ‘中文名:贝拉克·侯赛因·奥巴马,外文名:Barack Hussein Obama II,’ ‘别名:欧巴马,国籍:美国,民族:德裔族,出生地:美国夏威夷州檀香山,’ ‘出生日期:1961年8月4日,职业:政治家、律师、总统,毕业院校:哥伦比亚大学、’ ‘哈佛大学,信仰:新教,主要成就:1996年伊利诺伊州参议员、美国第56届、5’ ‘7届总统、2009年...

2019-04-18 20:00:59 601

原创 正则表达式1-2-3

1.5之后增加了re模块,提供了正则表达式re模块使python语言拥有了全部的表达式功能import re # -------------re模块-------------------------------re.match 函数-----------------------原型:match(pattern, string, flags=0)pattern:匹配的正则表达式str...

2019-04-17 15:25:29 2041

空空如也

空空如也

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

TA关注的人

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