전체 글 (68) 썸네일형 리스트형 E-Commerce Part Ⅵ: K Means Clustering 응용 K Means Clustering¶ ⅰ. 모듈 불러오기 & DATA 특성 파악¶ In [1]: import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns In [2]: df = pd.read_csv("Data/Mall_Customers.csv", index_col = 0) df.head() Out[2]: Gender Age Annual Income (k$) Spending Score (1-100) CustomerID 1 Male 19 15 39 2 Male 21 15 81 3 Female 20 16 6 4 Female 23 16 77 5 Female 31 17 40 In [3]: df.info() .. E-Commerce Part Ⅴ: Random Forest 모델 응용 Random Forest¶ ⅰ. 모듈 & DATA 특성 확인¶ In [1]: import numpy as pn import pandas as pd import matplotlib.pyplot as plt import seaborn as sns In [2]: member = pd.read_csv("Data/member.csv") trans = pd.read_csv("Data/transaction.csv") member.head() Out[2]: id recency zip_code is_referral channel conversion 0 906145 10 Surburban 0 Phone 0 1 184478 6 Rural 1 Web 0 2 394235 7 Surburban 1 Web 0 3 130152 9 .. E-Commerce Part Ⅳ: Decision Tree 모델 응용 Decision Tree¶ ⅰ. 모듈 불러오기 & DATA 특성 확인¶ In [1]: import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns In [2]: df = pd.read_csv("Data/galaxy.csv") df.info() RangeIndex: 1485 entries, 0 to 1484 Data columns (total 9 columns): # Column Non-Null Count Dtype --- ------ -------------- ----- 0 BuyItNow 1485 non-null int64 1 startprice 1485 non-null float64 2 carri.. E-Commerce Part Ⅲ: KNN 모델 응용 K Nearest Neighbour¶ ⅰ. 모듈 불러오기 & DATA 확인¶ In [1]: import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns In [2]: df = pd.read_csv("Data/churn.csv") df.info() RangeIndex: 7043 entries, 0 to 7042 Data columns (total 21 columns): # Column Non-Null Count Dtype --- ------ -------------- ----- 0 customerID 7043 non-null object 1 gender 7043 non-null object 2 Seni.. E-Commerce Part Ⅱ: 로지스틱회귀분석 응용 로지스틱 회귀분석, Logistic Regression¶ ⅰ. 모듈 불러오기 & DATA 특성 확인¶ In [1]: import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns In [2]: df = pd.read_csv("Data/advertising.csv") df.info() RangeIndex: 1000 entries, 0 to 999 Data columns (total 10 columns): # Column Non-Null Count Dtype --- ------ -------------- ----- 0 Daily Time Spent on Site 1000 non-null float64 1 .. Linux Shell Commands : FTP & Tomcat [ Step 1: FTP 설치여부 확인 ] ]# rpm -qa vsftpd* [ Step 2: FTP 설치 ] ]# yum -y install vsftpd [ Step 3: FTP 설치여부 재확인 ] ]# yum -y install vsftpd [ Step 4: vsftpd.conf 파일 수정 ] ]# vi/etc/vsftpd/vsftpd.conf ]# vi/etc/vsftpd/chroot_list ← 사용자 등록 (root / test) 더보기 #익명계정 접속허용여부 anonymous_enable=NO # 로컬계정 사용자의 접속허용여부 local_enable=YES # 쓰기(upload) 허용여부 write_enable=YES local_umask=022 dirmessage_enable=YES # 파일.. Linux Shell Commands : vi 문서 편집 기능 [ vi 명령 ] 1. vi 편집기 실행 ]# vi 파일명 2. vi 편집기의 3가지 상태 직접명령모드, Command Mode 키보드를 눌러 명령을 실행하는 상태(기본) 상태영역에 아무런 상태메세지가 없는 경우 간접명령모드, Last Line Mode 상태영역에 :이 표시되며 키보드를 누르면 상태영역에 메세지가 입력되는 경우 편집모드, Edit Mode 키보드를 눌러 문서(파일)를 편집하는 경우 3. 직접 및 간접명령모드에서 사용할 수 있는 vi 편집기 명령 불러오기 :r file :e file :e! file :set nu :set nonu 현재 vi에 file 내용 붙여넣기 file 불러오기 강제로 file 불러오기 기존 파일 저장 X 행에 번호 표시 행에 번호 표시 취소 단어 검색 / 변경 :ra.. Linux Shell Commands : 검색 / 압축 / 묶음 명령 [ 검색명령 ] grep whereis find 파일에서 원하는 단어를 검색하여 단어가 포함된 행을 출력하는 명령 명령을 검색하는 명령 원하는 위치에서 원하는 형식의 파일을 검색 1. grep / egrep 더보기 2. whereis ]# whereis 명령 3. find ]# find 검색디렉토리 검색옵션 검색값 검색후처리 더보기 ]# find /etc -name '*conf' -print = /etc 디렉토리에서 파일의 이름이 conf로 끝나는 파일을 검색하여 출력 ※ -print 옵션은 생략 가능 ]# find /root -type d = 파일의 종류가 디렉토리인 것을 검색하여 출력 ※ -type 옵션은 파일의 종류를 검색 => d : 디렉토리 f : 파일 l : 링크파일 ]# find /var -.. 이전 1 2 3 4 5 6 7 8 9 다음