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

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:

主站蜘蛛池模板: 邹城市| 南丰县| 武平县| 沂源县| 屯留县| 安顺市| 长岛县| 麻江县| 壤塘县| 定陶县| 东平县| 南投市| 宣恩县| 保德县| 关岭| 华宁县| 乐陵市| 瓦房店市| 河北省| 曲松县| 铅山县| 双柏县| 甘泉县| 同江市| 新野县| 会理县| 奎屯市| 农安县| 蓝山县| 杭锦后旗| 九龙县| 佛教| 龙里县| 古田县| 宿松县| 威海市| 东海县| 珲春市| 吉隆县| 清原| 公安县|