-
- np.linspace(start, end, nums)
- rng.integers/uniform(low, high, size)
- rng.normal(loc, scale, size)
-
- arr.shape
- arr.sum/max/min(axis, keepdims)
- np.average(arr, axis)
-
- arr.reshpae/np.reshape
- np.expand_dims(arr, axis)
- np.squeeze(arr axis)
- np.transpose(arr, axis)
- arr.T
-
- arr[start:stop:step, ...]
- np.concatenate((arr1, arr2), axis)
- np.stack((arr1, arr2), axis)
- np.repeat(arr, repeat_num, axis)
- np.split(arr, part_num, axis)
-
- np.where(condition, arr, replaced_val)
- rng.choice(a, size, replace=False, p=probs_size_equals_a)
- rng.argmax/argmin/argsort(arr, axis)
-
- +-*/
- np.dot(a, b) == a.dot(b)
- np.matmul(a, b) == a @ b
-
Notifications
You must be signed in to change notification settings - Fork 0
MorvanLi/numpyTutorial
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published