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

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:

主站蜘蛛池模板: 大冶市| 买车| 赫章县| 娄底市| 上饶市| 大城县| 巫山县| 阿拉善盟| 龙胜| 明溪县| 林周县| 张家港市| 琼海市| 额济纳旗| 涟源市| 维西| 枣强县| 简阳市| 武川县| 高安市| 乌什县| 锡林浩特市| 绥化市| 海南省| 洞口县| 吴川市| 岑溪市| 泾阳县| 龙井市| 睢宁县| 洞头县| 巴林左旗| 玉龙| 万州区| 扶绥县| 阳山县| 夹江县| 东山县| 平罗县| 江油市| 修武县|