官术网_书友最值得收藏!

Vectors

Vectors are one-dimensional arrays of integers. Geometrically, they store the direction and magnitude of change from a point. We'll see how this works in machine learning algorithms when we discuss principal component analysis (PCA) in the next few pages. Vectors in Python are created as numpy array objects:

my_vector = np.array([5,6])

Vectors can be written in several ways:

主站蜘蛛池模板: 北京市| 敖汉旗| 若尔盖县| 建水县| 巴林左旗| 长寿区| 壶关县| 南陵县| 吉木萨尔县| 临武县| 治县。| 岳池县| 南投县| 尼勒克县| 垣曲县| 兴和县| 金山区| 灯塔市| 九台市| 额尔古纳市| 汤原县| 泊头市| 高平市| 石棉县| 宜城市| 楚雄市| 三明市| 房产| 峨眉山市| 建阳市| 沧源| 崇左市| 舞钢市| 和田县| 通许县| 韩城市| 苏尼特右旗| 乌鲁木齐县| 临清市| 泸西县| 冕宁县|