본문 바로가기

반응형

💻프로그래밍

(47)
[Docker] 윈도우11에서 도커 설치하기 1. WSL2 (Window Subsystem for Linux 2) 활성화 - Docker는 linux기반으로 동작하기 때문에, window 환경에서 linux를 사용할 수 있도록 WSL2를 활성화 해야함. 1-1. 관리자 권한으로 Window PowerShell 실행 1-2. 명령어 실행 # Windows SubSystem Linux를 활성화시키는 명령어 > dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart # VirtualMachinePlatform 기능을 활성화시키는 명령어 : WSL2 버전에 필요한 명령어 > dism.exe /online /enable-feature /fea..
[Git] GitHub에 프로젝트 파일 올리는법 01.Git 다운로드 https://git-scm.com/downloads Git - Downloads Downloads macOS Windows Linux/Unix Older releases are available and the Git source repository is on GitHub. GUI Clients Git comes with built-in GUI tools (git-gui, gitk), but there are several third-party tools for users looking for a platform-specific exp git-scm.com 02. Github에서 레포지토리 생성 2-1) Repositories 클릭 2-2) 'New' 클릭 2-3) Repositor..
[R통계] ISLRv2 Introduction to Statistical Learning : exercise solutions - 4강 분류 13번 문제풀이 13번 문제풀이 Boston 자료를 사용하여 분류 모델들을 적합하고, 주어진 교외 지역의 범죄율이 중앙값보다 높거나 낮은지 예측하라. 설명변수들의 다양한 부분 집합을 사용하여 로지스틱회귀, LDA, KNN모델을 살펴보고 발견한 것을 설명하라. 01. 데이터 준비 library(MASS) library(class) library(tidyverse) library(corrplot) library(ISLR2) library(e1071) x median(Boston$crim)) ) set.seed(1) train median(Boston$crim)) (Boston dataset의 crim 칼럼의 값의 median값보다 높다면 True, 낮다면 Fasle를 반환하여 highcrim 칼럼에 할당) - 전체 데이터셋..
[R통계] ISLRv2 Introduction to Statistical Learning : exercise solutions - 3강 선형회귀 (14번 다중공선성 문제 풀이) 14번 문제풀이 (a) R에서 다음 명령어를 실행해라. 마지막 줄은 y가 x1과 x2의 함수인 선형 모델을 생성하는 것에 해당한다. 이때 회귀 계수들은 무엇인가? (Perform the following commands in R. The last line corresponds to creating a linear model in which y is a function of x1 and x2. Write out the form of the linear model. What are the regression coefcients?) set.seed(1) x1 = runif(100) x2 = 0.5*x1 + rnorm(100) / 10 y = 2 + 2*x1 + 0.3*x2 + rnorm(100) 답변: β0=..
R 기본 문법(1) 데이터 생성 및 확인 : c( ) / mode( ) / str( ) / length( ) /remove( ) / factor( ) / array( ) / [[ ]] / data.frame( ) 01. 변수 선언 (벡터 만들기) : data

반응형