自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 IMDB

import osimport tarfileimport tensorflow as tfimport numpy as npimport reimport stringfrom random import randint数据文件解压# 解压数据if not os.path.exists(r"C:\Users\st\Desktop/123/aclImdb"): tfile = tarfile.open(filepath,"r:gz") print('extracting

2021-06-08 10:40:25 240

原创 CIFAR卷积

导入CIFAR数据集import pickle as pimport numpy as npimport osimport tensorflow as tf!pip install sklearnRequirement already satisfied: sklearn in c:\programdata\anaconda3\envs\tensorflow\lib\site-packages (0.0)Requirement already satisfied: scikit-learn

2021-05-17 23:31:10 133

原创 手写数字识别

1、导入相关库及数据文件import tensorflow as tffrom tensorflow.examples.tutorials.mnist import input_datamnist = input_data.read_data_sets("MNIST_data/",one_hot = True)Extracting MNIST_data/train-images-idx3-ubyte.gzExtracting MNIST_data/train-labels-idx1-ubyte.

2021-05-17 23:17:58 309

原创 超详细的Numpy学习笔记2

Numpy学习笔记2import numpy as npt5 = np.arange(12)t5array([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11])t6 = t5.reshape((3,4))t6array([[ 0, 1, 2, 3], [ 4, 5, 6, 7], [ 8, 9, 10, 11]])t6/0 #nan=>不是一个数组(无效数字) inf=>(无穷大)

2021-05-07 23:48:20 106

原创 超详细的Numpy学习笔记1

超详细的Numpy学习笔记1pip install some_package numpyimport numpydata = numpy.random.randn(2,3)#生成随机数组dataarray([[ 0.52284885, -1.70528809, 0.25272985], [-0.39302312, -0.18766107, 1.0899748 ]])data*10array([[ 4.5202907 , 1.25781872, -8.80285

2021-05-07 23:46:46 231

空空如也

空空如也

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

TA关注的人

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