목록2024/01/07 (1)
hamlet-story
NUMPY - [실습] 배열 구조 활용 (axis)
이전에 배열에 대한 개념과 배열을 표현하는 방법에 대해서 다루었습니다. 차원 배열중 2차원 배열로 작업을 할 때 'axis' 인수를 사용하하여 이미지를 전처리 하는 과정이 있는데, 이번에는 이 'axis' 인수를 활용하여 구조를 어떻게 변환 하는지 포스팅 해보도록 하겠습니다. 설명은 아래와 같이 이루어 집니다. 1. axis 2. axis 행(row)과 열(column)로 더하기 axis axis 란 변수에 선언된 배열 차원에서 요소 인덱스 값을 기준으로 행렬 계산에 사용하는 인수 (argument) 입니다. 여기에서 인수 (argument) 란 함수 (function) 을 호출할 때 사용하게 되는 일련의 값들을 말하며, 아래의 예시와 같이 활용이 됩니다. 0~19까지의 숫자로 이루어진 5*4로된 2차원..
Language/Python
2024. 1. 7. 12:00