-
[Machine Learning] Basic Of Machine Learning๐ณDev/Machine Learning 2022. 1. 15. 15:20
๋ชจ๋๋ฅผ ์ํ ๋ฅ๋ฌ๋ (๊น์ฑํ)
1. Machine Learning
๊ธฐ๊ณํ์ต์ ์์ง๋ ๋ฐ์ดํฐ(๋ก๊ทธ, ์์ฑ, ํ ์คํธ, ์ด๋ฏธ์ง) ์์์ ํจํด์ ์ฐพ์๋ด๋๋ก ํ์ต๋๋ ์๊ณ ๋ฆฌ์ฆ ๋ชจ๋ธ์ด๋ค. ๊ธฐ๊ณํ์ต์ ๊ฒฐ๊ณผ๊ฐ ์ฃผ์ด์ง ๋ฐ์ดํฐ๋ก ํ์ต์ ํ๋ ์ง๋ ํ์ต๊ณผ ์์จ์ ์ธ ํ์ต์ ํ๋ ๋น์ง๋ ํ์ต์ผ๋ก ๋๋๋ค.
- Supervised Learning โ
: labeled data, training set์ ์ด์ฉํด ํ์ตํ๋ ๋ฐฉ๋ฒ - UnSupervised Learning
: unlabeled data๋ฅผ ์ด์ฉํด ํ์ตํ๋ ๋ฐฉ๋ฒ
์ฐ๋ฆฌ๋ ์ง๋ํ์ต์ ํตํด, ๊ธฐ๊ณํ์ต ๊ณต๋ถ๋ฅผ ์งํํ๋ค.
2. Type of Supervised Learning
์ง๋ํ์ต์ ์ข ๋ฅ๋ ํฌ๊ฒ ๋ถ๋ฅ(Classification) ๋ฌธ์ ์ ํ๊ท(Regression) ๋ฌธ์ ๋ก ๋๋๋ค. ์ฃผ์ด์ง ์ ๋ ฅ ๋ฐ์ดํฐ์์ ๋ถ๋ฅ๋ ๋ฏธ๋ฆฌ ์ ์ ๋ ์ฌ๋ฌ ํด๋์ค์์ ์ด๋์ ์ํ๋์ง ์์ธกํ๊ณ , ํ๊ท๋ ์ฐ์์ ์ธ ์ซ์๋ฅผ ์์ธกํ๋ค. ์ด๋ค ๋ฌธ์ ๋ฅผ ๋ค๋ฃฐ ๋, ์ ์ ํ ํ์ต์ ์ฐพ๋ ๊ฒ์ ๋งค์ฐ ์ค์ํ๋ค.
- ์ ํ ํ๊ท Linear Regression
: ์ฐ์ํ ๋ณ์๋ค์ ๋ํด ๋ ๋ณ์ ์ฌ์ด์ ๋ชจํ์ ๊ตฌํ๊ณ ์ ํฉ๋๋ฅผ ์ธก์
ex) ๊ณต๋ถํ ์๊ฐ์ ๊ธฐ์ค์ผ๋ก 0~100์ ์ฌ์ด์ ๊ฒฐ๊ณผ๋ฅผ ์์ธก - ์ด์ง ๋ถ๋ฅ Binary Classification
: ๋๊ฐ์ง ๋ถ๋ฅ(0 ๋๋ 1)
ex) ๊ณต๋ถํ ์๊ฐ์ ๊ธฐ์ค์ผ๋ก pass or nonpass๋ฅผ ์์ธก - ๋ค์ค ๋ถ๋ฅ Multi-Label Classification
: ๋๊ฐ์ง ์ด์์ ๋ถ๋ฅ
ex) ๊ณต๋ถํ ์๊ฐ์ ๊ธฐ์ค์ผ๋ก ABCDF๋ฅผ ์์ธก
3. TensorFlow
: Data Flow Graph(๋ฐ์ดํฐ ํ๋ฆ ๊ทธ๋ํ) + Python
ํ ์ํ๋ก์ฐ๋ Tensor(๋ค์ฐจ์๋ฐฐ์ด)๋ค์ด ํ๋ฅธ๋ค๋ ์๋ฏธ๋ฅผ ๊ฐ์ง๋ค. Node๋ ๋ค์ฐจ์ ๋ฐฐ์ด๋ก ์ด๋ฃจ์ด์ง ์์น ์ฐ์ฐ์ผ๋ก, edge๋ ๋ ธ๋๋ค์ ์ฐ์ฐ์ ํ๋ฆ์ ์๋ฏธํ๋ค.
TensorFlow Mechanics
1. build graph(tensor)
2. feed data and run graph
3. update variables in the graph and return valuesTensor Ranks, Shapes, and Types
1. Rank : n์ฐจ์ ๋ฐฐ์ด
2. Shape : ๋ฐฐ์ด์ ๋ชจ์์ ์๋ฏธ
3. Type : DataType(์ฃผ๋ก float32 or int32)
ex) t = [[1,2], [3,4], [5,6]]
rank = 2
shape = [3, 2]
type = int32'๐ณDev > Machine Learning' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[Machine Learning] Learning Rate, Data Preprocessing, Overfitting and DataSet (0) 2022.01.12 [Machine Learning] Regression & Classification (0) 2022.01.10 [๊ธฐ๊ณํ์ต] 12. Dimensionality Reduction (0) 2022.01.01 [๊ธฐ๊ณํ์ต] 11. Kernel Method(Support Vector Machines) (0) 2021.12.26 [๊ธฐ๊ณํ์ต] 10. Deep Neural Networks (0) 2021.12.25 - Supervised Learning โ