일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |
- 사랑
- 산책
- 넷플릭스
- 서귀포
- 커피
- 네이버
- 완결 웹툰
- 빅데이터 분석기사 필기
- 진심
- 네이버 웹툰
- python
- 애니메이션
- pandas
- 로맨스
- 가족
- geopandas
- 액션
- 네이버 완결 웹툰
- 아주 작은 습관의 힘
- 이기적 출판사
- 습관
- 웹툰
- 완결
- 제임스 클리어
- 만화 영화
- 제주도
- 이범선
- 빅데이터 분석기사
- 영화
- QGIS
- Today
- Total
목록Data Science (357)
JuJuKwakKwak
from sklearn.model_selection import train_test_split x = liver[liver.columns.difference(['Dataset'])] y = liver['Dataset'] train_x, test_x, train_y, test_y = train_test_split(x, y, stratify=y, train_size=0.7, random_state=1) print(train_x.shape, test_x.shape, train_y.shape, test_y.shape)
1) 열 순서 배열 변경하기 https://lazytree.tistory.com/250 QGIS 속성 테이블의 필드 위치 수정 (순서 바꾸기) GIS 작업을 하다 보면 속성 테이블에 필드를 옮겨서 보기 편한 순서대로 놓고 싶을 때가 있다. 속성 테이블에서 직접 위치를 움직일 수는 없지만 속성 테이블 위쪽의 열 구성 버튼을 눌러 위치 조 lazytree.tistory.com 속성 테이블 보기 -> 열 구성 -> 마우스로 위치 이동시키기 나중에 저장할 때는 반영이 안 된다. 필드 재작성으로 열 순서를 변경해야 저장될 때 변경된다. 2) 열 이름 변경하기 속성 -> 필드 -> 더블클릭 3) 열 삭제 속성 -> 필드 -> X 가 들어있는 아이콘 클릭 4) 열 추가 속성 -> 필드 -> 노란색 들어있는 아이콘 클..

rbf_pred = svr_rbf.predict(X) lin_pred = svr_lin.predict(X) poly_pred = svr_poly.predict(X) from sklearn.metrics import mean_squared_error, mean_absolute_error import pandas as pd import numpy as np preds = [rbf_pred, lin_pred, poly_pred] kernel = ['Random_Forest', 'Linear', 'Polynomial'] evls = ['mse', 'rmse', 'mae'] results = pd.DataFrame(index=kernel, columns=evls) for pred, nm in zip(preds, ..
1) .shp 로 끝나는 파일을 레이어에 드래그 2) 웹 -> tms for korea -> kakao street 클릭 3) 좌표계 설정 : 이때 숫자가 잘 맞아야 한다. 인터넷에는 숫자와 회사 내부 지오코딩된 숫자가 다를 수 있다
https://precommer.tistory.com/50 jupyter notebook 폰트 변경하기 Anaconda를 설치하고 jupyter notebook에서 간단한 MNIST CNN 모델을 하나 돌려보려고 했는데, jupyter notebook에서 기본적으로 제공하는 폰트와 옆의 광활한 공간이 마음에 들지 않는다. 아래의 Before와 After.. precommer.tistory.com 위의 사이트에서 하라는 대로 하면 된다 다만 custom.css 만드는 방법은 1) 메모장을 만든다 2) 이름에서 .txt 부분을 지우고 custom.css로 바꾸면 된다
In [ ]: # 라이브러리 임포트 import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns import os import random from sklearn.preprocessing import MinMaxScaler from sklearn.metrics import mean_squared_error from sklearn.model_selection import train_test_split from scipy.signal import savgol_filter from tensorflow.keras.models import Sequential from tensorflow.keras.layers..
1) 날짜 유형 바꾸기 df_sample['yearqtr'] = pd.to_datetime(df_sample['yearqtr']) 2) 분기별로 나누어 바꾸기 df_sample['yearqtr'] = pd.PeriodIndex(df_sample['yearqtr'], freq='Q') 3) 조건식을 사용해서 추출하기 df_sub = df.loc[df['행정동']=='심곡동', :] 4) str.replace(), str.split() 사용하기 df_sample['yearqtr'] = df_sample['yearqtr'].str.replace(pat=r'[ㄱ-ㅣ가-힣]', repl=r'', regex=True) # 한글 제거 # 2017년 1분기 => 2017 1 df['수정할 열'] = df['수정할 열'..
참고 https://deepflowest.tistory.com/118 tensorflow 삭제 및 재설치 tensorflow 2.1 버전을 삭제하고 tensorflow 2.0 버전으로 재설치하고자함 Anaconda Prompt 관리자 권한으로 실행 후 ▶먼저 conda로 tensorflow를 삭제하고 ▶다음과 같이 conda list 해봤을 때 tensorflow가.. deepflowest.tistory.com https://velog.io/@exoluse/tensorflow-7.-%ED%85%90%EC%84%9C%ED%94%8C%EB%A1%9C%EC%9A%B0-%EC%84%A4%EC%B9%98%EC%8B%9C-%EB%B2%84%EC%A0%84-%EB%AC%B8%EC%A0%9C