-
[ TIL 220920 ]Today I Learned 2022. 9. 21. 12:18
๐ADsP 3,4์ผ์ฐจ
— ๋ธ๋ก์ฒด์ธ : ๊ฑฐ๋์ ๋ณด๋ฅผ ์ฐจ๋ก๋ก ์ฐ๊ฒฐํ ๊ฑฐ๋ ์ฅ๋ถ
- ์ค์ ์ง์คํ์ด ์๋ ๊ฑฐ๋์ ์ฐธ์ฌํ๋ ๋ชจ๋ ์ฌ์ฉ์์๊ฒ ๊ฑฐ๋ ๋ด์ญ์ ๋ณด๋ด ์ฃผ๋ฉฐ ๊ฑฐ๋ ๋๋ง๋ค ์ด๋ฅผ ๋์กฐํด ๋ฐ์ดํฐ ์์กฐ๋ฅผ ๋ง๋ ๋ฐฉ์ ์ฌ์ฉ
- XML ( Extensible Markup Language )
: ๋ค๋ชฉ์ ๋งํฌ์ ์ธ์ด ( ํ๊ทธ ์ด์ฉ, ์ธํฐ๋ท ์ฐ๊ฒฐ๋ ์์คํ ๋ผ๋ฆฌ ๋ฐ์ดํฐ ์ฝ๊ฒ ์ฃผ๊ณ ๋ฐ์ ์ ์๊ฒ ํจ ) html์ ํ๊ณ ๊ทน๋ณต ๋ชฉ์
xml ๊ธฐ๋ฐ์ xhtml, svg ๋ฑ์ด ์์
Part 2 ๋ฐ์ดํฐ ๋ถ์ ๊ธฐํ
1์ฅ . ๋ฐ์ดํฐ ๋ถ์ ๊ธฐํ์ ์ดํด
๋ฐ์ดํฐ ๋ถ์์ ์์ด์ ์ดํด๊ด๊ณ์๋ค์ด ๋ถ์์ ๋ชฉํ ๋ฐ ๊ณผ์ ์ ์ ์ดํดํ๋ ๊ฒ์ด ์ค์. ๋ค์ํ ๋ถ์ ๋ฐฉ๋ฒ๋ก ํ์ต
- ๋ถ์ ๊ธฐํ ๋ฐฉํฅ์ฑ ๋์ถ
- ๋ถ์ ๋ฐฉ๋ฒ๋ก
- ๋ถ์ ๊ณผ์ ๋ฐ๊ตด
- ๋ถ์ ํ๋ก์ ํธ ๊ด๋ฆฌ ๋ฐฉ์
2์ฅ . ๋ถ์ ๋ง์คํฐ ํ๋
๋ถ์๊ณผ์ ์ํ์ํ ํ๋ก์ ํธ ๊ด๋ฆฌ๋ฐฉ์์ ์ดํด๋ณด๊ณ ์ค,์ฅ๊ธฐ์ ์ธก๋ฉด์์ ๋ถ์ ๋ง์คํฐ ํ๋์ ์๋ฆฝํ๋ ๋ฐฉ๋ฒ๊ณผ ๋ถ์ ๊ฑฐ๋ฒ๋์ค ์ฒด๊ณ๋ฅผ ์ด๋ป๊ฒ ์๋ฆฝํ๋์ง ์ดํด
- ๋ง์คํฐ ํ๋ ์๋ฆฝ ํ๋ ์์ํฌ
- ๋ถ์ ๊ฑฐ๋ฒ๋์ค ์ฒด๊ณ ์๋ฆฝ
- ๋์ฉ๋ ๋ฐ์ดํฐ๋ฒ ์ด์ค๋ฅผ ํตํด ์ ํํ๋ ๋ฐ์ดํฐ๋ฒ ์ด์ค๋ฅผ ๋ถ์ํ๋ ์ ํ ๋ฐ์ดํฐ๋ง์ด๋ ํ๋ก์ธ์ค๋ก ๊ฐ์ฅ ๋ง์ด ํ์ฉ๋๊ณ ์๋ ํ๋ก์ธ์ค๋ KDD ( Knowledge Discoveryin Databases ) ๋ถ์ ๋ฐฉ๋ฒ๋ก ๊ณผ CRISP-DM ํ๋ก์ธ์ค์ด๋ค
- ๋ถ์ ๊ธฐํ : ์ค์ ๋ถ์์ ์ํํ๊ธฐ์ ์์ ๋ถ์์ ์ํํ ๊ณผ์ ๋ฅผ ์ ์ํ๊ณ , ์๋ํ๋ ๊ฒฐ๊ณผ๋ฅผ ๋์ถํ ์ ์๋๋ก ์ด๋ฅผ ์ ์ ํ๊ฒ ๊ด๋ฆฌํ ์ ์๋ ๋ฐฉ์์ ์ฌ์ ์ ๊ณํํ๋ ์ผ๋ จ์ ์์
What , Why, How
- ๋ฐ์ดํฐ ์ฌ์ด์ธํฐ์คํธ์ ์ญ๋ : ๊ท ํ์กํ ์๊ฐ, ๋ฐฉํฅ์ฑ ๋ฐ ๊ณํ ์๋ฆฝ
- ๋ชฉํ ์์ ๋ณ ๋ถ์ ๊ธฐํ ๋ฐฉ์
1. ๊ณผ์ ์ค์ฌ์ ์ ๊ทผ ๋ฐฉ์
2. ์ฅ๊ธฐ์ ์ธ ๋ง์คํฐ ํ๋ ๋ฐฉ์
- ์๋ฏธ์๋ ๋ถ์์ ์ํด์ : ๋ถ์ ๊ธฐ์ , IT ๋ฐ ํ๋ก๊ทธ๋๋ฐ, ๋ถ์ ์ฃผ์ ์ ๋ํ ๋๋ฉ์ธ ์ ๋ฌธ์ฑ, ์์ฌ์ํต์ด ์ค์
- ๋ถ์ ๊ธฐํ์ ๊ณ ๋ ค์ฌํญ
๊ฐ. ๋ถ์์ ๊ธฐ๋ณธ์ธ ๊ฐ์ฉ๋ฐ์ดํฐ ๊ณ ๋ ค
๋. ์ ์ ํ ํ์ฉ ๋ฐฉ์๊ณผ ์ ์ค์ผ์ด์ค ํ์ ( ๊ธฐ์กด์ ์ ๊ตฌํ๋์ด ์๋ ์ ์ฌ ๋ถ์ ์๋๋ฆฌ์ค ๋ฐ ์๋ฃจ์ ์ต๋ํ ํ์ฉ )
๋ค. ๋ถ์ ์ํ์ ๋ฐ์ํ๋ ์ฅ์ ์์๋ค์ ๋ํ ์ฌ์ ๊ณํ ์๋ฆฝ ( ์กฐ์ง์ ์ญ๋์ผ๋ก ๋ด์ฌํํ๊ธฐ ์ํด์ ์ถฉ๋ถํ๊ณ ๊ณ์์ ์ธ ๊ต์ก ๋ฐ ํ์ฉ ๋ฐฉ์ ๋ฑ์ ๋ณํ ๊ด๋ฆฌ๊ฐ ๊ณ ๋ ค๋์ด์ผํ๋ค )
์๋ฌต์ง : ํ์ต๊ณผ ๊ฒฝํ์ ํตํด ๊ฐ์ธ์๊ฒ ์ฒดํ๋์ด ์์ง๋ง ๊ฒ์ผ๋ก ๋๋ฌ๋์ง ์๋ ์ง์
ํ์์ง : ๋ฌธ์๋ ๋งค๋ด์ผ์ฒ๋ผ ํ์ํ๋ ์ง์
< ๋ฐฉ๋ฒ๋ก ์ ์ ์ฉ ์ ๋ฌด์ ํน์ฑ์ ๋ฐ๋ฅธ ๋ชจ๋ธ >
1. ํญํฌ์ ๋ชจ๋ธ ( waterfall model )
2. ํ๋กํ ํ์ ๋ชจ๋ธ prototype model : ์ฐ์ ๊ฐ๋ฐ -> ๊ฒฐ๊ณผ ๊ฐ์ -> ???????๊ทธ .. ๋ฌด์จ ๊ฐ๋ฐ๋ก ๊ทธ๊ฑฐ๋ ๋๊ฐ์๋ฐ.. ์์ ๊ฑฐ์์ ์๋์ฐจ๋๊ณ ๊ทธ๊ฑฐ ๋ญ๋๋ผ ..
3. ๋์ ํ ๋ชจ๋ธ spiral model : ๋ฐ๋ณต์ ํตํด ์ ์ฆ์ ์ผ๋ก ๊ฐ๋ฐ
KDD๋ถ์ ๋ฐฉ๋ฒ๋ก knowledge discoveryin databases
๋ฐ์ดํฐ ๋ง์ด๋ ํ๋ก์ธ์ค
- ๋ถ์ ์ ์ฐจ
0) ๋น์ง๋์ค ๋๋ฉ์ธ์ ๋ํ ์ดํด, ํ๋ก์ ํธ ๋ชฉํ์ค์
1) ๋ฐ์ดํฐ์ ์ ํ selection
: ๋ฐ์ดํฐ ๋ง์ด๋์ ํ์ํ ๋ชฉํ๋ฐ์ดํฐ ๊ตฌ์ฑ
2) ๋ฐ์ดํฐ ์ ์ฒ๋ฆฌ
: ์ก์, ์ด์์น, ๊ฒฐ์ธก์น ์๋ณ, ์ ๊ฑฐ, ์ฌ์ฒ๋ฆฌ
์ถ๊ฐ๋ก ์๊ตฌ๋๋ ๋ฐ์ดํฐ์ ํ์ํ ๊ฒฝ์ฐ ๋ฐ์ดํฐ ์ ํ ํ๋ก์ธ์ค ์ฌ์คํ
3) ๋ฐ์ดํฐ ๋ณํ
๋ถ์ ๋ชฉ์ ์ ๋ง๊ฒ ๋ณ์ ์์ฑ, ์ ํ ๋ฐ์ดํฐ์ ์ฐจ์ ์ถ์, ํจ์จ์ ์ผ๋ก ๋ฐ์ดํฐ ๋ง์ด๋ํ ์ ์๋๋ก ๋ฐ์ดํฐ ๋ณ๊ฒฝ
๋ฐ์ดํฐ๋ง์ด๋ ํ๋ก์ธ์ค ์งํํ๊ธฐ ์ํด ํ์ต์ฉ ๋ฐ์ดํฐ : training data ์ ๊ฒ์ฆ์ฉ ๋ฐ์ดํฐ test data ๋ก ๋ฐ์ดํฐ ๋ถ๋ฆฌํ๋ ๋จ๊ณ
4) ๋ฐ์ดํฐ ๋ง์ด๋
ํ์ต์ฉ ๋ฐ์ดํฐ ์ด์ฉํด ๋ถ์๋ชฉ์ ์ ๋ง๋ ๋ฐ์ดํฐ๋ง์ด๋ ๊ธฐ๋ฒ ์ ํ, ์ ์ ์๊ณ ๋ฆฌ์ฆ ์ ์ฉํด ๋ฐ์ดํฐ ๋ง์ด๋ ์คํ
ํ์์ ๋ฐ๋ผ ์ ์ฒ๋ฆฌ์ ๋ณํ ํ๋ก์ธ์ค ์ถ๊ฐ๋ก ์คํํด ์ต์ ์ ๊ฒฐ๊ณผ ์ฐ์ถ
5) ๋ฐ์ดํฐ๋ง์ด๋ ๊ฒฐ๊ณผ ํ๊ฐ : interpretation /Evaluation
๋ถ์์ ๋ชฉ์ ๊ณผ์ ์ผ์น์ฑ ํ์ธ
๋ฐ์ดํฐ ๋ง์ด๋ฐ ํตํด ๋ฐ๊ฒฌํ ์ง์์ ์ ๋ฌด์ ํ์ฉํ๊ธฐ ์ํ ๋ฐฉ์ ๋ง๋ จ์ ๋จ๊ณ
crisp dm : ๊ณ์ธต์ ํ๋ก์ธ์ค ๋ชจ๋ธ
6๋จ๊ณ ํ๋ก์ธ์ค. ๋จ๋ฐฉํฅ x ๋จ๊ณ ๊ฐ ํผ๋๋ฐฑ ํตํด ๋จ๊ณ๋ณ ์์ฑ๋๋ฅผ ๋์
- ์ ๋ฌด ์ดํด
- ๋ฐ์ดํฐ ์ดํด
- ๋ฐ์ดํฐ ์ค๋น : ๋ฐ์ดํฐ ์ ์ ํ, ๋ฐ์ดํฐ ์ ์
- ๋ชจ๋ธ๋ง : ๋ชจ๋ธ ํ๊ฐ
- ํ๊ฐ : ๋ถ์๊ฒฐ๊ณผ ํ๊ฐ, ๋ชจ๋ธ๋ง๊ณผ์ ํ๊ฐ, ๋ชจ๋ธ ์ ์ฉ์ฑ ํ๊ฐ
- ์ ๊ฐ Deployment
< ๋น ๋ฐ์ดํฐ ๋ถ์์ ๊ณ์ธต์ ํ๋ก์ธ์ค >
1 ๋จ๊ณ : ํ๋ก์ธ์ค ๊ทธ๋ฃน ํตํด ์์ฑ๋ ๋จ๊ณ๋ณ ์ฐ์ถ๋ฌผ ์์ฑ๋๋ค. ๊ธฐ์ค์ ์ผ๋ก ๊ฐ๋จ๊ณ๋ ์ค์ ๋์ด ๊ด๋ฆฌ๋์ด์ผ ํ๋ฉฐ, ๋ฒ์ ๊ด๋ฆฌ configuration management ๋ฑ์ ํตํ์ฌ ํต์ ๊ฐ ์ด๋ฃจ์ด์ ธ์ผ ํ๋ค.
2 ํ์คํฌ : ๊ฐ ๋จ๊ณ๋ ์ฌ๋ฌ ๊ฐ์ ํ์คํฌ๋ก ๊ตฌ์ฑ. ๊ฐ ํ์คํฌ๋ ๋จ๊ณ๋ฅผ ๊ตฌ์ฑํ๋ ๋จ์ ํ๋, ๋ฌผ๋ฆฌ์ ๋๋ ๋ ผ๋ฆฌ์ ๋จ์์ ํ์ง ๊ฒํ ์ ํญ๋ชฉ์ด ๋ ์ ์๋ค
3 ์คํ : wbs Work Breakdown Structure ์ ์ํฌ ํจํค์ง work package ์ ํด๋น, ์ ๋ ฅ์๋ฃ, ์ฒ๋ฆฌ๋ฐ๋๊ตฌ, ์ถ๋ ฅ์๋ฃ๋ก ๊ตฌ์ฑ๋ ๋จ์ ํ๋ก์ธ์ค๐๊ธฐํ
- ๋ผ์ด๋ธ๋ฌ๋ฆฌ : ๊ณตํต์ผ๋ก ์ฌ์ฉ๋ ์ ์๋ ํน์ ํ ๊ธฐ๋ฅ๋ค์ ๋ชจ๋ํํ ๊ฒ, ๋๊ตฌ
- ํ๋ ์์ํฌ : ๊ท์น, ์๊ฒฉ, ํ๋ ์์ํฌ
1.1 ๋์์ธ ํจํด: ํ๋ก๊ทธ๋จ ์ค๊ณํ ๋ ๋ฐ์ํ๋ ๋ฌธ์ ์ ์ ๊ฐ์ฒด ๊ฐ์ ์ํธ ๊ด๊ณ ๋ฑ์ ์ด์ฉํ์ฌ ํด๊ฒฐํ ์ ์๋๋ก ํ๋์ ‘๊ท์ฝ’ ํํ๋ก ๋ง๋ค์ด ๋์ ๊ฒ
1.1.1 ์ฑ๊ธํค ํจํด singleton pattern ํ๋์ ํด๋์ค์ ์ค์ง ํ๋์ ์ธ์คํด์ค๋ง ๊ฐ์ง๋ ํจํด ,
๋ฐ์ดํฐ๋ฒ ์ด์ค ์ฐ๊ฒฐ ๋ชจ๋์ ๋ง์ด ์ฌ์ฉ
ํ๋์ ์ธ์คํด์ค๋ฅผ ๋ง๋ค์ด ๋๊ณ ํด๋น ์ธ์คํด์ค๋ฅผ ๋ค๋ฅธ ๋ชจ๋๋ค์ด ๊ณต์ ํ๋ฉฐ ์ฌ์ฉํ๊ธฐ ๋๋ฌธ์ ์ธ์คํด์ค ์์ฑ์ ๋น์ฉ์ด ์ค์ด๋๋ ์ฅ์ , ์์กด์ฑ์ด ๋์์ง๋ค๋ ๋จ์
js ๋ฆฌํฐ๋ด {} ๋๋ new object ๋ก ๊ฐ์ฒด ์์ฑํ๊ฒ ๋๋ฉด ๋ค๋ฅธ ์ด๋ค ๊ฐ์ฒด์๋ ๊ฐ์ง ์๊ธฐ ๋๋ฌธ์ ์์ฒด๋ง์ผ๋ก ์ฑ๊ธํค ํจํด ๊ตฌํ๊ฐ๋ฅ'Today I Learned' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[ TIL 220922 ] THU (0) 2022.09.24 [ TIL 220921 ] (1) 2022.09.22 [ TIL : 220913 ] (0) 2022.09.21 [ TIL - 220912 ] (1) 2022.09.13 [TIL - 220906] (0) 2022.09.07