Home
SmartNote
Cancel

Lotto Generator App

Lotto 생성 앱 만들기 Splash 화면 Activity로 생성 Lottie Animation 사용: 원하는 화면을 json 형태로 다운 Raw 폴더 생성 후, 위에서 다운 받은 이미지를 복사해서 넣기 Resource 안에 있는 모든 리소스들은 반드시 영소문자로 시작하고, 이들로 구성되며, 특수문자는 _ 만 가능 ...

Decision trees

Decision tree 노드, 브랜치, 리프(잎)으로 구성 가장 중요한 변수(특징)가 무엇인지 파악 가능 쉽게 가시화 가능하다는 점이 장점이지만, 과적합에 취약하다는 단점을 가진다. Random forest Decision tree를 여러 개 묶은 것 output은 이러한 tree들의 평균으로, 분류를 할 때 투표 결과 많은...

Train Test Split

import pandas as pd df = pd.read_csv("train.csv") df.sample(5) PassengerId Survived Pclass Name Sex Age SibSp Parch Ticke...

Matplotlib Graph 그리기

Matplotlib xlabel ylabel title plot show import matplotlib.pyplot as plt x = [1,2,3,4,5] # horizontal, independent variable y = [1,2,3,4,5] # vertical, dependent variable plt.plot(...

4C

4Cs Correcting outlying 데이터가 존재할 때, 이것들을 처리하는 과정 seaborn의 FacetGrid를 이용하여 outlier의 데이터를 파악하고 처리하는 코드 import pandas as pd import seaborn as sns import matplotlib.pyplot as plt df = pd.read_c...

Basic Visualization

import pandas as pd import seaborn as sns import matplotlib.pyplot as plt df = pd.read_csv("train.csv") Categorical Plots Factorplot seaborn.factorplot(x, y, hue, data, row, col…, aspect, si...

Basic Dataframe

import pandas as pd Basic Dataframe Handling # read_csv 결과를 df에 저장 df = pd.read_csv("train.csv") # shape (행,열) df.shape (891, 12) # size (크기 = 행 X 열) df.size 10692 # numerical descr...

DataFrame Basic

DataFrame kaggle 웹사이트에서 가장 유명한 데이터인 타이타닉 데이터를 이용하여 실습을 진행 pandas 파이썬에서 사용하는 데이터 분석 라이브러리 행과 열로 이루어진 데이터 객체 (데이터프레임)를 다루며, 대규모 데이터 처리 시 매우 편리