
深度学习
happy5205205
感兴趣可以加,多多交流。
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Python图像数据基本概念及操作
数据链接:https://pan.baidu.com/s/1cz8SihL2HYh_cFudc7y07Q 密码:tr35 1、图像数据基本操作import cv2import matplotlib.pyplot as pltimport numpy as npfrom matplotlib import pyplot as plt# 随机生成500x500的多维数组random_i...原创 2018-07-03 11:26:57 · 431 阅读 · 0 评论 -
Python文本特征及分类
1、情感分析# 简单的例子import nltkfrom nltk.stem import WordNetLemmatizerfrom nltk.corpus import stopwordsfrom nltk.classify import NaiveBayesClassifiertext1 = 'I like the movie so much!'text2 = 'That ...原创 2018-07-05 17:24:29 · 2151 阅读 · 0 评论 -
Python自然语言处理
1、NLTK基本操作import nltknltk.download()import nltkfrom nltk.corpus import brown # 需要下载brown语料库# 引用布朗大学的语料库# 查看语料库包含的类别print(brown.categories())# 查看brown语料库print('共有{}个句子'.format(len(brown.sents...原创 2018-07-05 17:14:49 · 399 阅读 · 0 评论 -
Python文本数据处理
1、文本基本操作text1 = 'Python is a widely used high-level programming language for general-purpose programming, created by Guido van Rossum and first released in 1991.'# 字符个数print(len(text1))# 获取单词te...原创 2018-07-04 15:20:32 · 1956 阅读 · 0 评论 -
Pandas时间序列处理
1、创建from datetime import datetimeimport pandas as pdimport numpy as np# 指定index为datetime的listdate_list = [datetime(2018, 3, 3), datetime(2018, 3, 4), datetime(2018, 3, 10), dateti...原创 2018-07-04 10:38:50 · 1157 阅读 · 0 评论 -
Python的日期和时间处理
1、datetime模块from datetime import datetimenow = datetime.now()print(now)print(type(now))print('年: {}, 月: {}, 日: {}'.format(now.year, now.month, now.day))diff = datetime(2018, 3, 25, 17) - dateti...原创 2018-07-04 10:17:50 · 681 阅读 · 0 评论 -
TensorFlow识别手写数字
数据链接:https://pan.baidu.com/s/1ICxdODACssxtbf3hs_PT3w 密码:rsx3# 加载MNIST数据集from tensorflow.examples.tutorials.mnist import input_datamnist = input_data.read_data_sets('MNIST_data', one_hot=True)# 查看...原创 2018-07-03 12:42:09 · 251 阅读 · 0 评论 -
TensorFlow入门
import tensorflow as tf计算模式–计算图a = tf.constant([1.0, 2.0], name='a')b = tf.constant([1.0, 2.0], name='b')result = a + bprint(result)# 如果没有特殊声明,a.graph返回其所属的计算图,即默认的计算图print(a.graph == tf.get_...原创 2018-07-03 12:29:58 · 269 阅读 · 0 评论 -
人工神经网络
import numpy as npimport matplotlib.pyplot as pltimport pandas as pdimport seaborn as snsfrom sklearn.model_selection import train_test_splitANN建模import numpy as npimport matplotlib.pyplot as...原创 2018-07-03 12:23:26 · 333 阅读 · 0 评论 -
K-Means聚类及图像压缩
数据链接:https://pan.baidu.com/s/1cz8SihL2HYh_cFudc7y07Q 密码:tr35import numpy as npimport cv2import matplotlib.pyplot as plt original_img = cv2.imread('./images/ColorfulBird.jpg')print('图像维度:', orig...原创 2018-07-03 11:55:53 · 1398 阅读 · 0 评论 -
Python中常用的图像特征
数据链接:https://pan.baidu.com/s/1cz8SihL2HYh_cFudc7y07Q 密码:tr35import cv2import numpy as np1、颜色特征img_gray_data = cv2.imread('./images/messi.jpg', cv2.IMREAD_GRAYSCALE)hist, bins = np.histogram(im...原创 2018-07-03 11:51:56 · 1321 阅读 · 0 评论 -
自然语言处理中的词袋模型
词袋模型from sklearn.feature_extraction.text import CountVectorizerimport osimport reimport jieba.posseg as pseg# 加载停用词表stop_words_path = './stop_words/'stopwords1 = [line.rstrip() for line in ...原创 2018-07-05 17:42:21 · 537 阅读 · 0 评论