ESL 연구실 활동/LAB 29

오늘 한 거

pytorch에서 에러가 생겨서 cuda10.0, cudnn8.2.4 재설치 python3.8 재설치 -> 가상환경 'py38' 만들어서 관련 라이브러리 다 설치 근데도 런타임 에러 발생 RuntimeError: An attempt has been made to start a new process before the current process has finished its bootstrapping phase. This probably means that you are not using fork to start your child processes and you have forgotten to use the proper idiom in the main module: if __name__ == '__mai..

혼공머 스터디 (1~2장)

도미, 빙어 분류 문제 sklearn k-최근점 이웃 알고리즘 # 도미 데이터(길이와 무게) 준비하기 bream_length = [25.4, 26.3, 26.5, 29.0, 29.0, 29.7, 29.7, 30.0, 30.0, 30.7, 31.0, 31.0, 31.5, 32.0, 32.0, 32.0, 33.0, 33.0, 33.5, 33.5, 34.0, 34.0, 34.5, 35.0, 35.0, 35.0, 35.0, 36.0, 36.0, 37.0, 38.5, 38.5, 39.5, 41.0, 41.0] bream_weight = [242.0, 290.0, 340.0, 363.0, 430.0, 450.0, 500.0, 390.0, 450.0, 500.0, 475.0, 500.0, 500.0, 340.0, 6..

Pythorch 입문 - 다중회긔

# x가 한개면 단순 선형회귀 # x가 여러개면 다중 선형 회귀 import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim torch.manual_seed(1) # 시드 고정 # 훈련 데이터 (x세개, y한개) x1_train = torch.FloatTensor([[73], [93], [89], [96], [73]]) x2_train = torch.FloatTensor([[80], [88], [91], [98], [66]]) x3_train = torch.FloatTensor([[75], [93], [90], [100], [70]]) y_train = torch.FloatTensor([[152]..

Pytorch 입문 - 선형회귀

https://wikidocs.net/book/2788 PyTorch로 시작하는 딥 러닝 입문 이 책은 딥 러닝 프레임워크 PyTorch를 사용하여 딥 러닝에 입문하는 것을 목표로 합니다. 이 책은 2019년에 작성된 책으로 비영리적 목적으로 작성되어 출판 ... wikidocs.net import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim # 같은 결과를 위한 랜덤시드 설정 torch.manual_seed(1) x_train = torch.FloatTensor([[1] ,[2], [3]]) y_train = torch.FloatTensor([[2] ,[4], [6]]) print("x_tr..