![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
深度学习
happy5205205
感兴趣可以加,多多交流。
展开
-
Python图像数据基本概念及操作
数据链接:https://pan.baidu.com/s/1cz8SihL2HYh_cFudc7y07Q 密码:tr35 1、图像数据基本操作 import cv2 import matplotlib.pyplot as plt import numpy as np from matplotlib import pyplot as plt # 随机生成500x500的多维数组 random_i...原创 2018-07-03 11:26:57 · 377 阅读 · 0 评论 -
Python文本特征及分类
1、情感分析 # 简单的例子 import nltk from nltk.stem import WordNetLemmatizer from nltk.corpus import stopwords from nltk.classify import NaiveBayesClassifier text1 = 'I like the movie so much!' text2 = 'That ...原创 2018-07-05 17:24:29 · 2070 阅读 · 0 评论 -
Python自然语言处理
1、NLTK基本操作 import nltk nltk.download() import nltk from nltk.corpus import brown # 需要下载brown语料库 # 引用布朗大学的语料库 # 查看语料库包含的类别 print(brown.categories()) # 查看brown语料库 print('共有{}个句子'.format(len(brown.sents...原创 2018-07-05 17:14:49 · 351 阅读 · 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 · 1900 阅读 · 0 评论 -
Pandas时间序列处理
1、创建 from datetime import datetime import pandas as pd import numpy as np # 指定index为datetime的list date_list = [datetime(2018, 3, 3), datetime(2018, 3, 4), datetime(2018, 3, 10), dateti...原创 2018-07-04 10:38:50 · 1116 阅读 · 0 评论 -
Python的日期和时间处理
1、datetime模块 from datetime import datetime now = 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 · 617 阅读 · 0 评论 -
TensorFlow识别手写数字
数据链接:https://pan.baidu.com/s/1ICxdODACssxtbf3hs_PT3w 密码:rsx3 # 加载MNIST数据集 from tensorflow.examples.tutorials.mnist import input_data mnist = input_data.read_data_sets('MNIST_data', one_hot=True) # 查看...原创 2018-07-03 12:42:09 · 194 阅读 · 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 + b print(result) # 如果没有特殊声明,a.graph返回其所属的计算图,即默认的计算图 print(a.graph == tf.get_...原创 2018-07-03 12:29:58 · 211 阅读 · 0 评论 -
人工神经网络
import numpy as np import matplotlib.pyplot as plt import pandas as pd import seaborn as sns from sklearn.model_selection import train_test_split ANN建模 import numpy as np import matplotlib.pyplot as...原创 2018-07-03 12:23:26 · 289 阅读 · 0 评论 -
K-Means聚类及图像压缩
数据链接:https://pan.baidu.com/s/1cz8SihL2HYh_cFudc7y07Q 密码:tr35 import numpy as np import cv2 import matplotlib.pyplot as plt original_img = cv2.imread('./images/ColorfulBird.jpg') print('图像维度:', orig...原创 2018-07-03 11:55:53 · 1359 阅读 · 0 评论 -
Python中常用的图像特征
数据链接:https://pan.baidu.com/s/1cz8SihL2HYh_cFudc7y07Q 密码:tr35 import cv2 import numpy as np 1、颜色特征 img_gray_data = cv2.imread('./images/messi.jpg', cv2.IMREAD_GRAYSCALE) hist, bins = np.histogram(im...原创 2018-07-03 11:51:56 · 1243 阅读 · 0 评论 -
自然语言处理中的词袋模型
词袋模型 from sklearn.feature_extraction.text import CountVectorizer import os import re import jieba.posseg as pseg # 加载停用词表 stop_words_path = './stop_words/' stopwords1 = [line.rstrip() for line in ...原创 2018-07-05 17:42:21 · 495 阅读 · 0 评论