개념공부108 파이토치 버전 확인 PyTorch Version Check PyTorch 버전 확인(파이토치 버전 확인) 아나콘다 프롬포트에서 확인 가능 쥬피터 노트북으로도 확인 가능 Python import torch print(torch.__version__) 실행 결과 2023. 1. 25. PyTorch 설치 Pytorch Fackbook이 개발한 오픈소스 머신 러닝 라이브러리 Python에 친화적인 라이브러리 최적화 모듈, 이미지 처리 모듈, 오디오 처리 모듈 등 다양한 모듈을 제공 클라우드 플랫폼 (Amazon Web Services, Google Cloud Platform)에도 손쉽게 적용 가능 ANACONDA 아나콘다는 운영체제 내 가상 Python 환경을 설정함 가상 환경 별로 간섭 없이 개별적으로 패지키를 유지 관리 할 수 있음 Pytorch CPU 설치 아나콘다를 통해 PyTorch를 설치할 수 있음 아나콘다를 사용하지 않는다면 PIP(Package Manager)를 통해 설치 가능 Pythorch는 최적화 모듈, 이미지 처리 모듈, 오디오 처리 모듈 등 다양한 라이브러리를 제공함 pytorch .. 2023. 1. 25. 아나콘다(Anaconda) 명령어 모음 프롬포트 명령어 리스트 cd 디렉토리 : 디렉토리 이동 mkdir 폴더명 : 폴더 생성 dir : 현재 디렉토리의 폴더/파일 리스트 del 파일/폴더명 : 파일/폴더 삭제 드라이브명: : 드라이브간 이동은 ex) c: , d: 처럼 드라이브명:으로 사용 ls : 현재 폴더의 파일/폴더 리스트 아나콘다 명령어 리스트 conda create -n 가상환경이름 python=버젼 : 가상환경 생성 ex) conda create -n TestEnv python=3.7 conda env remove -n 가상환경이름 : 가상환경 삭제 conda env list : 가상환경 목록 보기 conda activate 가상환경이름 : 가상환경 실행 conda deactivate : 가상환경 종료 conda list : 현재.. 2023. 1. 25. Trie 자료 구조 우리나라 발음으로 트리에 인줄 알았는데, 트라이 라고 함 ㅎㅎ. Trie 자료 구조 Trie 자료 구조는 string으로 인덱싱 할 수 있는 Look Up 자료 구조의 형태이다. 이는 사전식 순서로 데이터를 저장하거나 string을 탐색하는데 효율적인 방식으로 문장이나 단어 예측 및 자동 완성, 스펠 체크 등에 사용된다. Trie 자료 구조는 Tree 형태의 자료 구조로 digital tree, prefix tree 라고도 불린다. 주로 string을 저장하는데 사용되며 Tree Node는 각 character를 저장한다. 모든 자식 노드는 공통된 prefix string의 부모 노드들을 가지고, root 노드는 empty string이다. (이렇게 prefix로 접근해 데이터를 접근하는 방식이 메모리를.. 2023. 1. 25. Bitwise Operation, Operator (비트연산) Reference : https://en.wikipedia.org/wiki/Bitwise_operation Bitwise operation is fast and simple action. because it is directly supported by the processor. On low-cost processors, bitwise operations are substantially faster than division, several times faster than multiplication, somtimes significantly faster than addition. (really??) Bitwise Operator NOT(bitwise complement) NOT 0111 -> 1000, NO.. 2023. 1. 17. [C++ STL] unordered_map std::unordered_map This data structure is an associative container the contains key-value pairs with unique keys. Search, insertion, and removal of elements have average constane-time complexity Internally, the elements are not osorte in any particular order, but organized into buckets. Properties Associative container Unique keys Reference : https://en.cppreference.com/w/cpp/container/unordered.. 2023. 1. 16. 이전 1 ··· 7 8 9 10 11 12 13 ··· 18 다음