Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
dongjk committed May 14, 2018
2 parents f9ba073 + 51489af commit fb96bb0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
7 changes: 6 additions & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@
title: Notes for machine learning
email: hikihomori at gmail
description: >- # this means to ignore newlines until "baseurl:"
Notes for machine learning and math
All the text, images and other content being part of this Blog is property of the Author,
unless noted otherwise. You are not allowed to reproduce, sell, or modify any part of this Blog.
You are welcome to link to this blog.
本博客内容包括文字,图像,视频均为非营利性原创,未经允许,禁止转载。
本人保留所有法定权利。违者必究。
baseurl: "" # the subpath of your site, e.g. /blog
url: "" # the base hostname & protocol for your site, e.g. http://example.com
twitter_username: hikihomori
Expand Down
7 changes: 4 additions & 3 deletions _posts/2018-03-29-Numpy_axis_intuiation.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ categories: math numpy
---


Axis play a key in Numpy array operations,
it indicate the dimension of an array(or a tensor), for example, if an array have shape (2,4,6)
first dimension is axis=0 coresponding to shape 2, second dimension is axis=1 coresponding to shape 4, etc, and for the convience, Numpy also can use axis=-1 to indicate the last dimension.
Axis play a key role in Numpy array operations,
it indicate the dimension of an array(or a tensor), for example, if an array have shape (2,4,6),

the first dimension is axis=0 coresponding to shape 2, second dimension is axis=1 coresponding to shape 4, etc, and for the convience, Numpy also can use axis=-1 to indicate the last dimension.

I made an animation for intuiation.

Expand Down
2 changes: 1 addition & 1 deletion _posts/2018-03-29-Numpy_axis_直观印象.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ date: 2018-03-29 21:25:50 +0800
categories: math numpy
---

Axis在Numpy库的array操作中起了非常关键的作用, 它用于指示一个array(或者说tersor)的维度.
Axis在Numpy库的array操作中起了非常关键的作用, 它用于指示一个array(或者说tensor)的维度.

例如: 一个array的shape是(2,4,6), 那么第一个维度也就是axis=0对应的是shape 2, 第二个维度axis=1对应的是shape 4, 以此类推, 另外为了方便, axis=-1是值得倒数第一个维度.

Expand Down

0 comments on commit fb96bb0

Please sign in to comment.