GoldenRaven / test-org2gfm

This is a gfm version of my repository MachineLearning_notebook to test the performance of Github rendering.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

这个笔记是我个人在学习机器学习过程中的学习记录。其中有大量前人的总结成果,但此词条并不简单的重复 摘抄,而是我在学习中选择性地参考了不同资料的不同部分,自己学习的理解与总结。原词条都有相关链接, 请自行跳转。

Python Numpy库笔记

Copy or View?

  • vew
    • Slice view
    • Dtype view
  • shallow copy
  • deep copy

数组的in place改变

以下是不同的操作过程:

# y = np.arange(8)
y += 1 # 更快
y = y + 1 # 更慢

常用函数

import numpy as np
a = np.arange(3)
b = np.arange(3,6)
c = np.r_[a, b, 1, [3]] # 合并数组
d = np.c_[a, b] # 合并数组
e = np.ones((4, 1)) # 接收元组
d.shape
d.resize(2, 3) # 无返回值,将原数组形变,接收元组
f = d.reshape((2,3)) # 返回变形后的数组,原数组不变,接收元组

一些其他有用的东西

About

This is a gfm version of my repository MachineLearning_notebook to test the performance of Github rendering.