분류 전체보기
-
[Docker] 도커(wsl)에서 미니콘다(miniconda)와 vscode 연결하기et al/Docker&git 2023. 6. 24. 05:55
0. windows powershell을 관리자 모드로 켠다. 1. 미니콘다 이미지 설치하기 conda 이름으로 미니콘다 컨테이너를 생성한다. docker pull continuumio/miniconda3 docker run -it --name conda continuumio/miniconda3 재진입시 exec 명령어를 사용한다. (컨테이너가 stop상태이면 컨테이너를 먼저 start해야한다. ) PS C:\WINDOWS\system32> docker start conda PS C:\WINDOWS\system32> docker exec -it conda /bin/bash 2. docker-콘다 가상환경 생성하기 test라는 이름의 가상환경을 생성한다. (base) root@ab419c785d9b:/# ..
-
[Docker] 도커 바인드 마운트(bind mount) 하는 방법et al/Docker&git 2023. 6. 24. 05:54
* 마운트(mount) 볼륨 마운트(volume mount)와 바인드 마운트(bind mount)로 나뉜다. 볼륨 마운트는 docker 내부이지만 컨테이너 밖에 있는 host의 저장공간에 컨테이너 내부의 주소를 참조하여 연결하는 것이다. 바인드 마운트는 docker 외부의 로컬 주소를 docker 컨테이너 내부에서 공간에서 참조하여 연결하는 것이다. * docker에서 bind mount 방법 run : 컨테이너 생성 -it : -it는 Docker 컨테이너를 대화형(interactive) 모드로 실행하고 터미널(terminal)에 연결할 때 사용되는 옵션. --name (컨테이너 이름) : (컨테이너 이름)으로 컨테이너를 생성한다. --volume : 마운트할 주소를 설정한다. --volume="$(p..
-
[Docker] 도커에 우분투(ubuntu) 설치하는 법et al/Docker&git 2023. 6. 19. 00:56
* 빠른 목차 0. Powershell 을 관리자모드로 오픈 1. docker version 확인 2. docker 우분투 찾기 3. docker 우분투 내려받기 4. docker 이미지 확인 5. docker 이미지 생성 6. docker 확인 7. docker 우분투 Container 시작 8. docker 우분투 접속 9. docker 우분투 UPDATE 10. docker 우분투 UPGRADE 11 ~ 17 : miniconda 설치과정 * 상세 내용 0. Powershell 을 (관리자모드로) 오픈. 아래 명령어를 차례대로 입력한다. 1. docker version 확인 PS C:\WINDOWS\system32> docker version 2. docker 우분투 찾기 PS C:\WINDOWS\..
-
[BOJ#2562번] index()카테고리 없음 2023. 6. 18. 22:41
문제 9개의 서로 다른 자연수가 주어질 때, 이들 중 최댓값을 찾고 그 최댓값이 몇 번째 수인지를 구하는 프로그램을 작성하시오. 예를 들어, 서로 다른 9개의 자연수 3, 29, 38, 12, 57, 74, 40, 85, 61 이 주어지면, 이들 중 최댓값은 85이고, 이 값은 8번째 수이다. 입력 첫째 줄부터 아홉 번째 줄까지 한 줄에 하나의 자연수가 주어진다. 주어지는 자연수는 100 보다 작다. 출력 첫째 줄에 최댓값을 출력하고, 둘째 줄에 최댓값이 몇 번째 수인지를 출력한다. 예제 입력 3 29 38 12 57 74 40 85 61 예제 출력 85 8 a=[int(input()) for i in range(9)] print(max(a)) print(a.index(max(a))+1) max(리스트)..
-
[cs231n_review#Lecture 3-1] loss functionsMachine Learning/cs231n 2023. 6. 18. 17:01
there exists some parameter matrix, W which will take this long column vector representing the image pixels, and convert this and give you 10 numbers giving scores for each of the 10 classes in the case of CIFAR-10. Where we kind of had this interpretation where larger values of those scores, so a larger value for the cat class means the classifier thinks that the cat is more likely for that ima..
-
[BOJ#10807번] count(), list(map(int,input().split()))Programming 기초/Coding Test 2023. 6. 17. 22:54
문제 총 N개의 정수가 주어졌을 때, 정수 v가 몇 개인지 구하는 프로그램을 작성하시오. 입력 첫째 줄에 정수의 개수 N(1 ≤ N ≤ 100)이 주어진다. 둘째 줄에는 정수가 공백으로 구분되어져있다. 셋째 줄에는 찾으려고 하는 정수 v가 주어진다. 입력으로 주어지는 정수와 v는 -100보다 크거나 같으며, 100보다 작거나 같다. 출력 첫째 줄에 입력으로 주어진 N개의 정수 중에 v가 몇 개인지 출력한다. 예제 입력 11 1 4 1 2 4 2 4 2 3 4 4 2 예제 출력 3 n = int(input()) array = list(map(int,input().split())) target = int(input()) print(array.count(target))
-
[cs231n_review#Lecture 2-5] Linear Classifier from viewpoint of the template matching approachMachine Learning/cs231n 2023. 6. 17. 18:40
In linear classification, we're going to take a bit of a different approach from k-nearest neighbor. So, the linear classifier is one of the simplest examples of what we call a parametric model. we usually write as X for our input data, and also a set of parameters, or weights, which is usually called W, also sometimes theta, depending on the literature. So, in the k-nearest neighbor setup there..
-
[cs231n_review#Lecture 2-4] Cross-ValidationMachine Learning/cs231n 2023. 6. 16. 19:21
idea # 4 Cross-validation Where your algorithm is able to see the labels of the training set, but for the validation set, your algorithm doesn't have direct access to the labels. We only use the labels of the validation set to check how well our algorithm is doing. (Cross-Validation can alleviates over-fitting problem) these things like Euclidean distance, or L1 distance, are really not a very g..