目錄
數(shù)據(jù)表示->數(shù)據(jù)清洗->數(shù)據(jù)統(tǒng)計(jì)->數(shù)據(jù)可視化->數(shù)據(jù)挖掘->人工智能
人工智能:數(shù)據(jù)/語(yǔ)言/圖像/視覺(jué)等方面深度分析與決策
Python庫(kù)之機(jī)器學(xué)習(xí)
Numpy: 表達(dá)N維數(shù)組的最基礎(chǔ)庫(kù),http://www.numpy.org
import numpy as npdef np_sum(): a = np.array([0, 1, 2, 3, 4]) b = np.array([9, 8, 7, 6, 5]) c = a**2 b**3 return cprint(np_sum())
[729 513 347 225 141]
def py_sum(): a = [0, 1, 2, 3, 4] b = [9, 8, 7, 6, 5] c = [] for i in range(len(a)): c.append(a[i]**2 b[i]**3) return cprint(py_sum())
[729, 513, 347, 225, 141]
Pandas: Python數(shù)據(jù)分析高層次應(yīng)用庫(kù),http://pandas.pydata.org
能操作sql、json、pickle、csv、excel、ini等文件
DataFrame = 行列索引 二維數(shù)據(jù)
SciPy: 數(shù)學(xué)、科學(xué)和工程計(jì)算功能庫(kù),http://www.scipy.org
Matplotlib: 高質(zhì)量的二維數(shù)據(jù)可視化功能庫(kù),http://matplotlib.org
Seaborn: 統(tǒng)計(jì)類(lèi)數(shù)據(jù)可視化功能庫(kù),http://seaborn.pydata.org/
Mayavi:三維科學(xué)數(shù)據(jù)可視化功能庫(kù),http://docs.enthought.com/mayavi/mayavi/
PyPDF2:用來(lái)處理pdf文件的工具集,http://mstamy2.github.io/PyPDF2
from PyPDF2 import PdfFileReader, PdfFileMergermerger = PdfFileMerger()input1 = open("document1.pdf", "rb")input2 = open("document2.pdf", "rb")merger.append(fileobj=input1, pages=(0, 3))merger.merge(position=2, fileobj=input2, pages=(0, 1))output = open("document-output.pdf", "wb")merger.write(output)
NLTK:自然語(yǔ)言文本處理第三方庫(kù),http://www.nltk.org/
from nltk.corpus import treebankt = treebank.parsed_sents('wsj_0001.mrg')[0]t.draw()
Python-docx:創(chuàng)建或更新Microsoft Word文件的第三方庫(kù),http://python-docx.readthedocs.io/en/latest/index.html
from docx import Documentdocument = Document()document.add_heading('Document Title', 0)p = document.add_paragraph('A plain paragraph having some ')document.add_page_break()document.save('demo.docx')
Scikit-learn:機(jī)器學(xué)習(xí)方法工具集,與數(shù)據(jù)處理相關(guān)的第三方庫(kù),http://scikit-learn.org/
TensorFlow:AlphaGo背后的機(jī)器學(xué)習(xí)計(jì)算框架,https://www.tensorflow.org/
import tensorflow as tfinit = tf.global_variables_initializer()sess = tf.Session()sess.run(init)res = sess.run(result)print('result:', res)
MXNet:基于神經(jīng)網(wǎng)絡(luò)的深度學(xué)習(xí)計(jì)算框架,https://mxnet.incubator.apache.org/
聯(lián)系客服