Python(108)
-
[python] 사이킷런으로 머신러닝
Ver. Jupyter Notebook (Anaconda3) ▶ 머신러닝의 용어 # 피처(Feature), 속성 : 데이터, 타겟값을 제외한 나머지 속성 ex) 꽃잎의 크기 (length, width) # 레이블, 클래스, 타겟값, 결정값 : 정답 데이터 ex) 품종 (Setosa, Vesicolor, Virginica) # 학습 데이터 : 지도학습 할 데이터 # 테스트 데이터 : 학습을 기반으로 테스트할 데이터 ▶ 머신러닝의 종류 # 교차 검증 - KFold - Stratified KFold * cross_val_score() : 간략한 코드 * GridSearchCV : 교차 검증 + 하이퍼 파라미터 튜닝 (모델의 성능을 최대로 끌어올리는 학습 조건) ▶ GridSearchCV >>> import p..
2021.05.04 -
[python] numpy
Ver. Jupyter Notebook (Anaconda3) ▶ Numpy ndarray 개요 >>> import numpy as np # ndarray 생성 np.array() >>> list1 = [1, 2, 3] >>> print("list1:", list1) >>> print("list1 type:", type(list1)) list1: [1, 2, 3] list1 type: >>> array1 = np. array(list1) >>> print("array1:", array1) >>> print("array1 type:", type(array1)) array1: [1 2 3] array1 type: # ndarray의 형태(shape)와 차원 ## 1차원 >>> array1 = np.array(..
2021.05.03 -
[anaconda] 가상환경 (64bit에서 32bit)
▶ 64bit가 설치된 상황에서 32bit 가상환경 설정 방법 anaconda prompt 실행 버전 확인 python --version 아나콘다 32bit 설치 set conda_force_32bit=1 버전 값 입력 conda create -n py38_32 python=3.8.5 anaconda ▶ 설정 후 주피터 실행 방법 anaconda prompt 실행 32bit 가상환경으로 도입 conda activate py38_32 주피터 실행 jupyter notebook bit 확인 방법-1 (urs창 확인) - localhost:8888 : 32bit - localhost:8889 : 64bit bit 확인 방법-2 (주피터에서 확인) >>> import platform >>> print(platf..
2021.05.03 -
[python] crawler (공공데이터포털_관광코스별 관광지 상세 날씨 조회서비스_JSON)
Ver. Jupyter Notebook (Anaconda3) ▶ crawler_공공데이터포털_관광코스별 관광지 상세 날씨 조회서비스_JSON # 공공데이터 이용 방법 1. 공공데이터포털 (http://data.go.kr) 2. 필요한 데이터 검색 3. 활용신청 4. 참고문서.docx 참고하여 작성 # 요청url = 'http:서버에 요청하는 주소?요청변수(parameters)' # .docx파일의 항목구분 : 1은 필수 0은 선택 코딩: github JeongJaeyoung0/crawler Contribute to JeongJaeyoung0/crawler development by creating an account on GitHub. github.com 2021.05.11 # 관광코스별 관광지 상세 날..
2021.05.01 -
[python] crawler (공공데이터포털_여객터미널실시간 운항정보_XML)
Ver. Jupyter Notebook (Anaconda3) ▶ crawler_공공데이터포털_여객터미널실시간 운항정보_XML # 공공데이터 이용 방법 1. 공공데이터포털 (http://data.go.kr) 2. 필요한 데이터 검색 3. 활용신청 4. 참고문서.docx 참고하여 작성 # 요청url = 'http:서버에 요청하는 주소?요청변수(parameters)' # .docx파일의 항목구분 : 1은 필수 0은 선택 코딩: github JeongJaeyoung0/crawler Contribute to JeongJaeyoung0/crawler development by creating an account on GitHub. github.com 2021.05.10 # "백령도" 관련 여객정보 가져오기 pwd ..
2021.05.01 -
[python] crawler (instagram)
Ver. Jupyter Notebook (Anaconda3) ▶ crawler_instagram 수집: 사진, 날짜, 좋아요, 태그 코딩: github JeongJaeyoung0/crawler Contribute to JeongJaeyoung0/crawler development by creating an account on GitHub. github.com 2021.05.09 # crawler_instagram Step 1. 인스타 > 검색어 입력 > 첫번째 검색어 선택 > 사진 클릭 > 데이터 수집 Step 2. 이미지 저장할 폴더 생성 > 이미지 저장 pwd ### step 0. 준비 import pandas as pd import numpy as np from selenium import webd..
2021.05.01