AI/Numpy

    [numpy] reshape에서 -1의 의미

    [numpy] reshape에서 -1의 의미

    https://rfriend.tistory.com/345 [Python NumPy] reshape에서 -1 은 무슨 의미인가? (reshape(-1, 1)) 파이썬 NumPy 에서 배열의 차원(Dimension)을 재구조화, 변경하고자 할 때 reshape() 메소드를 사용합니다. 가령, 3개의 행과 4개의 열로 구성된 2차원의 배열로 재설정하고 싶으면 reshape(3, 4) 처럼 reshape( rfriend.tistory.com -1은 뒤의 숫자에 따라 알아서 차원을 조절함

    [numpy] any all where

    https://davey.tistory.com/entry/Python-%ED%8C%8C%EC%9D%B4%EC%8D%AC-numpy-%ED%95%A8%EC%88%98-any-all-where-%ED%96%89%EB%A0%AC-%EC%9D%B8%EB%8D%B1%EC%8B%B1index%EA%B3%BC-%EC%8A%AC%EB%9D%BC%EC%9D%B4%EC%8B%B1 Python 파이썬 numpy 함수 any, all, where, 행렬 인덱싱(index)과 슬라이싱 안녕하세요, 오늘 포스팅한 내용은 numpy 함수 중 any, all, where 함수 그리고 numpy 행렬 인덱싱(index)와 슬라이싱에 대한 내용입니다. 수계산에 정말 많이 쓰이는 함수입니다. 1. any, all, where 함수 1) ..