pytorch

Numpy ๊ธฐ๋ณธ์ ์ธ ๊ธฐ๋Šฅ ์ •๋ฆฌ

๊ท€์ฐฎ์•„์„œ github gist๋กœ... <script src="https://gist.github.com/yceffort/06df6e7b6caf336040d445616ebc3463.js"></script>...

Read
pytorch

Pytorch (3-1) - CNN: ๊ณค์ถฉ ์ด๋ฏธ์ง€ ๋ถ„๋ฅ˜ํ•˜๊ธฐ

pytorch์—์„œ ์ฃผ๋Š” ๊ณค์ถฉ ์ด๋ฏธ์ง€๋ฅผ ๋ถ„๋ฅ˜ํ•˜๋Š” ์ž‘์—…์„ ํ•ด๋ณด๋ ค๊ณ  ํ•œ๋‹ค. ๋ฒŒ๊ณผ ๊ฐœ๋ฏธ ์ด๋ฏธ์ง€๊ฐ€ ์žˆ๋Š”๋ฐ, ๊ฐ๊ฐ์˜ ์ด๋ฏธ์ง€๋ฅผ ์ž ๊น ์‚ดํŽด๋ณด๋ฉด ![ant1](../images/ant1.jpg) ![ant2](../images/ant2.jpg) ![ant3](../images/ant3.jpg) ![ant4](../.....

Read
pytorch

Pytorch (3-2) - CNN: Convolutional Neural Network

์•ž์„œ CNN๋„คํŠธ์›Œํฌ๋ฅผ ์ง„ํ–‰ํ•˜๋ฉด์„œ ๋ชจ๋ฅด๋Š” ๋ถ€๋ถ„์ด ์ข€ ์žˆ์–ด์„œ, ์ด๋ก ์ ์ธ ์ธก๋ฉด์„ ์ข€๋” ๊ฐ•์กฐํ•ด์„œ ๊ธ€์„ ์จ๋ณด๋ ค๊ณ  ํ•œ๋‹ค. ## ๊ตฌ์กฐ ์ผ๋‹จ ์ค‘๊ฐ„์ธต์ด Convolutional Layer, Pooling Layer, Fully-connted Layer๋กœ ๊ตฌ์„ฑ๋˜์–ด ์žˆ๋‹ค. ๊ทธ๋ฆฌ๊ณ  ๋งˆ์ง€๋ง‰์—” Dropouut Layer๋ฅผ ๋„ฃ๋Š” ๊ฒฝ์šฐ๋„ ์žˆ๊ณ , Softmax ํ•จ์ˆ˜๋กœ ๋งˆ๋ฌด๋ฆฌ ํ•œ๋‹ค. ...

Read
pytorch

Pytorch (3) - ํ•ฉ์„ฑ๊ณฑ์‹ ๊ฒฝ๋ง (CNN - Convolutional neural Network)

ํ•ฉ์„ฑ๊ณฑ์‹ ๊ฒฝ๋ง(CNN - Convolutaional Neural Network, ์ดํ•˜ CNN)์€ ๋ง๊ทธ๋Œ€๋กœ, ํ•ฉ์„ฑ๊ณฑ ์—ฐ์‚ฐ์„ ์‚ฌ์šฉํ•˜๋Š” ์ธ๊ณต์‹ ๊ฒฝ๋ง์˜ ํ•œ ์ข…๋ฅ˜๋‹ค. Convolution์„ ํ™œ์šฉํ•˜๋ฉด 3์ฐจ์› ๋ฐ์ดํ„ฐ์˜ ๊ณต๊ฐ„์  ์ •๋ณด๋ฅผ ์œ ์ง€ํ•œ ์ƒํƒœ๋กœ ๋‹ค์Œ ๋ ˆ์ด์–ด๋กœ ๋ณด๋‚ด๋Š” ๊ฒƒ์ด ๊ฐ€๋Šฅํ•˜๋‹ค. CN N์—ญ์‹œ ์ž…๋ ฅ์ธต, ์ค‘๊ฐ„์ธต, ์ถœ๋ ฅ์ธต์œผ๋กœ ๊ตฌ์„ฑ๋˜์–ด ์žˆ์œผ๋ฉฐ ๊ฐ ์ธต์€ ๋‹ค์‹œ ๋…ธ๋“œ๋กœ ์ด๋ฃจ์–ด์ ธ ...

Read
pytorch

Pytorch (2-4) - ์ด์ƒ ๋‚ ์”จ ํƒ์ง€

๋‹ค์ธต ํผ์…‰ํŠธ๋ก  ๋งˆ์ง€๋ง‰ ์˜ˆ์ œ๋กœ ์ด์ƒ ๋‚ ์”จ ํƒ์ง€๋ฅผ ์ง„ํ–‰ํ•ด๋ณด์ž. 2011๋…„ 1์›” 1์ผ ๋ถ€ํ„ฐ 2016๋…„ 12์›” 31์ผ๊นŒ์ง€ ์„œ์šธ์‹œ์˜ ์ผ ํ‰๊ท  ๊ธฐ์˜จ๋ฐ์ดํ„ฐ๋ฅผ ํ™œ์šฉํ•ด ๋ณธ๋‹ค. [์—ฌ๊ธฐ](https://data.kma.go.kr/stcs/grnd/grndTaList.do?pgmNo=70)์—์„œ ๋ฐ์ดํ„ฐ๋ฅผ ๋ฐ›์„ ์ˆ˜ ์žˆ๋‹ค. ![seoul-temperature](../../../....

Read