随笔分类 - data-python
ARIMA
摘要:ARIMA(p,d,q) forecasting equation: ARIMA models are, in theory, the most general class of models for forecasting a time series which can be made to be
阅读全文
Python Class Recap -2 tricky problems
摘要:Test cases as below:$ python3 >>> from quiz_8 import * >>> Point() ... quiz_8.PointError: Need two coordinates, point not created. >>> Point(0) ... qu
阅读全文
python coding感想,持续更新
摘要:发觉很多python coding不怎么用,很多基本结构有所生疏。近期会持续把常用的数据结构用python搞一搞,会更新: d = {} res = '' for i in range(11): d[i] = chr(i) for i in range(11): key = list(d.keys(
阅读全文
Word Vectors/Attention - hands on after lecture
摘要:1. Write the co-occurrence matrix {\rm X}X for this sentence, using a 4-word context window (i.e. two context words on either side of the central word
阅读全文
缺失数据清洗
摘要:数据缺失分为两种:一是行记录的缺失;二是列值的缺失。 不同的数据存储和环境中对于缺失值的表示不同,例如数据库中是Null、Python返回对象是None、Pandas或Numpy中是NaN。 #导入相关库import pandas as pd import numpy as np #random d
阅读全文
plt.legend ax.legend
摘要:#显示图例# box = ax.get_position()# ax.set_position([box.x0, box.y0, box.width*0.8 , box.height]) #若是将图例画在坐标外边,如果放在右边,一般要给width*0.8左右的值,在上边,要给height*0.8左右
阅读全文
浙公网安备 33010602011771号