일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
- 그래프색상
- naver
- 도시계획
- connectivity
- 파이썬
- multinomiallogitregression
- graphtheory
- 베이지안
- 서울데이터
- pandas
- 도시설계
- digitalgeography
- 스마트시티
- digital geography
- 웹크롤링
- 베이지안뉴럴네트워크
- platformurbanism
- 핫플레이스
- 네이버
- 그래프이론
- 공간분석
- QGIS
- 공간데이터
- Python
- 도시인공지능
- 도시공간분석
- postgres
- 서울
- spacesyntax
- SQL
- Today
- Total
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
- 그래프색상
- naver
- 도시계획
- connectivity
- 파이썬
- multinomiallogitregression
- graphtheory
- 베이지안
- 서울데이터
- pandas
- 도시설계
- digitalgeography
- 스마트시티
- digital geography
- 웹크롤링
- 베이지안뉴럴네트워크
- platformurbanism
- 핫플레이스
- 네이버
- 그래프이론
- 공간분석
- QGIS
- 공간데이터
- Python
- 도시인공지능
- 도시공간분석
- postgres
- 서울
- spacesyntax
- SQL
- Today
- Total
목록Python (2)
이언배 연구노트
내가 쓸 모델들은 총 4개. 1. Multinomial Logit Regression from sklearn.linear_model import LogisticRegressionfrom sklearn.metrics import accuracy_score, confusion_matrix, precision_score, recall_score, f1_scorefrom sklearn.model_selection import train_test_split######################학습, 테스트 셋 구분# Split the dataset into training and testing setsX_train, X_test, y_train, y_test = train_test_split(X, Y, test..

NAVER web crawling 결과로 도무지 파악할 수 없었던 인허가 데이터를NAVER API 를 활용해 하나하나 쿼리해본 결과를 csv로 저장해뒀다. 이제 이 결과물을 PostGRES 로 옮겨서 SQL로 다시 한 번 매칭해볼 것이다. 폴더에 저장된 csv 들을 불러들여 PostGRES로 이동시키는 건 간단하다. import pandas as pdfrom sqlalchemy import create_engine #Dataframe -> SQL 에는 sqlalchemy 를 불러오자from glob import glob# csv 파일들 불러오기filenames = glob('./폴더이름이뭐에요/*.csv') #glob 함수에서 '*.csv' 는 모든 csv 파일을 불러준다. 이 결과물은 'text의 리스..