๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

IT-Engineering135

urllib request.py urlopen SSL ์ธ์ฆ์„œ ์—๋Ÿฌ ๋ฌธ์ œ ํ•ด๊ฒฐ SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] URLError: PyTorch์—์„œ ResNet ์‹ ๊ฒฝ๋ง์„ ๋ถˆ๋Ÿฌ์˜ค๋‹ค๊ฐ€ ์ ‘ํ•œ ์—๋Ÿฌ์ด๋‹ค. ํšŒ์‚ฌ์—์„œ ์ž‘์—…์„ ํ•˜๋‹ค๋ณด๋ฉด, SSL์ธ์ฆ์„œ ๋ฌธ์ œ๋กœ url์ ‘๊ทผ์— ๋ฌธ์ œ๊ฐ€ ๋˜๋Š” ๊ฒฝ์šฐ๊ฐ€ ์ด์ „์—๋„ ์žˆ์—ˆ๋‹ค. 2020/04/14 - [IT-Engineering] - git push -u origin master ์‹คํ–‰์‹œ SSL certificate problem: self signed certificate in certificate chain ์—๋Ÿฌ ๋ฐœ์ƒ ํ•ด๊ฒฐ git push -u origin master ์‹คํ–‰์‹œ SSL certificate problem: self signed certificate in certificate chain ์—๋Ÿฌ ๋ฐœ์ƒ ํ•ด๊ฒฐ GitHub์— Repository๋ฅผ ๋งŒ๋“ค๊ณ  ์ž‘์€ ํ”„๋กœ์ ํŠธ๋ฅผ ํ•˜๋‚˜ ์˜ฌ๋ฆฌ๋ ค๋Š”๋ฐ, ์‚ฌ์†Œํ•œ .. 2020. 5. 26.
ํŒŒ์ด์ฌ *(๋ณ„ํ‘œ) ์—ฐ์‚ฐ์ž๋กœ ๋ฆฌ์ŠคํŠธ ์—ด๊ฑฐํ•˜๊ธฐ(feat. ๊ฐ€๋ณ€์ธ์ž ํ•จ์ˆ˜) 2020/05/26 - [IT-Engineering/Python] - ํŒŒ์ด์ฌ ๊ฐ€๋ณ€์ธ์ž ํ•จ์ˆ˜ ์ •์˜ ์˜ˆ์‹œ ํŒŒ์ด์ฌ ๊ฐ€๋ณ€์ธ์ž ํ•จ์ˆ˜ ์ •์˜ ์˜ˆ์‹œ ํŒŒ์ด์ฌ์—์„œ ํ•จ์ˆ˜์˜ ์ธ์ž๋ฅผ ๊ฐ€๋ณ€์ธ์ž๋กœ ์ฃผ๊ธฐ ์œ„ํ•ด์„œ๋Š” ์ธ์ž ์•ž์— *์—ฐ์‚ฐ์ž๋งŒ ์ ์–ด์ฃผ๋ฉด ๋œ๋‹ค. ๋‹ค์Œ์˜ ์˜ˆ์‹œ๋งŒ ์ดํ•ดํ•  ์ˆ˜ ์žˆ๋‹ค๋ฉด, ์‰ฝ๊ฒŒ ์ ์šฉ ๊ฐ€๋Šฅํ•  ๊ฒƒ์ด๋‹ค. def sum(*args): result = 0 for i in args: result += i r gentlesark.tistory.com ์œ„์˜ ๊ฐ€๋ณ€์ธ์ž ํ•จ์ˆ˜์—์„œ๋„ *(๋ณ„ํ‘œ) ์—ฐ์‚ฐ์ž๋ฅผ ์ด์šฉํ•˜์—ฌ ๊ฐ€๋ณ€์ธ์ž๋ฅผ ์ •์˜ํ–ˆ์—ˆ๋Š”๋ฐ, ์ด๋ฒˆ์—๋Š” ๋ฆฌ์ŠคํŠธ์—์„œ *(๋ณ„ํ‘œ) ์—ฐ์‚ฐ์ž๋ฅผ ์‚ฌ์šฉํ•ด์„œ ๋ฆฌ์ŠคํŠธ๋ฅผ ํ•ด์ฒด ํ˜น์€ ์—ด๊ฑฐํ•˜์—ฌ ๊ฐ€๋ณ€์ธ์ž ํ•จ์ˆ˜์— ์ง‘์–ด๋„ฃ๋Š” ์˜ˆ์‹œ๋ฅผ ๋ณด์ด๊ฒ ๋‹ค. def sum(*args): result = 0 for i in args: result +.. 2020. 5. 26.
ํŒŒ์ด์ฌ ๊ฐ€๋ณ€์ธ์ž ํ•จ์ˆ˜ ์ •์˜ ์˜ˆ์‹œ ํŒŒ์ด์ฌ์—์„œ ํ•จ์ˆ˜์˜ ์ธ์ž๋ฅผ ๊ฐ€๋ณ€์ธ์ž๋กœ ์ฃผ๊ธฐ ์œ„ํ•ด์„œ๋Š” ์ธ์ž ์•ž์— *์—ฐ์‚ฐ์ž๋งŒ ์ ์–ด์ฃผ๋ฉด ๋œ๋‹ค. ๋‹ค์Œ์˜ ์˜ˆ์‹œ๋งŒ ์ดํ•ดํ•  ์ˆ˜ ์žˆ๋‹ค๋ฉด, ์‰ฝ๊ฒŒ ์ ์šฉ ๊ฐ€๋Šฅํ•  ๊ฒƒ์ด๋‹ค. def sum(*args): result = 0 for i in args: result += i return result res = sum(1,2,3,4,5) print(res) output: 15 ๊ฒฐ๊ณผ๋Š” 1+2+3+4+5์ธ 15๋กœ ์ถœ๋ ฅ์ด ๋  ๊ฒƒ์ด๋‹ค. sumํ•จ์ˆ˜๋Š” ๊ฐ€๋ณ€์ธ์ž args๋ฅผ ๋ฐ›๋„๋ก ํ•ด๋†“๊ณ  1,2,3,4,5๋ผ๋Š” ๋‹ค์„ฏ๊ฐœ์˜ ์ •์ˆ˜๋ฅผ ํ•จ์ˆ˜ ์ธ์ž๋กœ ๋˜์ ธ์ฃผ์–ด ๋‚˜์˜จ ๊ฒฐ๊ณผ์ด๋‹ค. 2020. 5. 26.
์ดˆ์ดˆ๋ณด๋„ ์ดํ•ดํ•˜๋Š” ๋”ฅ๋Ÿฌ๋‹ 4ํƒ„ : ํ™œ์„ฑํ™” ํ•จ์ˆ˜(activation function) 2020/03/31 - [IT-Engineering/A.I.] - ์ดˆ์ดˆ๋ณด๋„ ์ดํ•ดํ•˜๋Š” ๋”ฅ๋Ÿฌ๋‹ 1ํƒ„ : ์ธ๊ณต์ง€๋Šฅ, ๋จธ์‹ ๋Ÿฌ๋‹, ๋”ฅ๋Ÿฌ๋‹ 2020/03/31 - [IT-Engineering/A.I.] - ์ดˆ์ดˆ๋ณด๋„ ์ดํ•ดํ•˜๋Š” ๋”ฅ๋Ÿฌ๋‹ 2ํƒ„ : ํผ์…‰ํŠธ๋ก (Perceptron) 2020/04/03 - [IT-Engineering/A.I.] - ์ดˆ์ดˆ๋ณด๋„ ์ดํ•ดํ•˜๋Š” ๋”ฅ๋Ÿฌ๋‹ 3ํƒ„ : ์‹ ๊ฒฝ๋ง, ํ™œ์„ฑํ™” ํ•จ์ˆ˜ ์•ž์˜ ๋”ฅ๋Ÿฌ๋‹ 3ํƒ„์— ์ด์–ด ์ดˆ์ดˆ๋ณด ๋”ฅ๋Ÿฌ๋‹ 4ํƒ„์ด๋‹ค. ๊ฒ€์ƒ‰ํ•ด๋ณด๋ฉด ๋”ฅ๋Ÿฌ๋‹์— ๋Œ€ํ•œ ์›Œ๋‚™ ์ข‹์€ ๊ธ€๋“ค์ด ๋งŽ์•„์„œ, ๋ณด๋Š” ์‚ฌ๋žŒ๋“ค์„ ์œ„ํ•ด์„œ๋‚˜ ์Šค์Šค๋กœ๋ฅผ ์œ„ํ•ด์„œ๋‚˜ ๊ฐ„๋‹จํ•œ ๋‚ด์šฉ๋งŒ ์ •๋ฆฌํ•˜๋Š” ์ฐจ์›์—์„œ ๊ธฐ๋กํ•˜๋Š” ์ปจ์…‰์œผ๋กœ ํ•˜๋ ค ํ•œ๋‹ค. 3ํƒ„์—์„œ ํผ์…‰ํŠธ๋ก ๊ณผ ์‹ ๊ฒฝ๋ง์˜ ์ •์˜์— ๊ด€ํ•ด ๋‹ค์†Œ ์• ๋งคํ•˜๊ฒŒ ํ‘œํ˜„ํ•œ ๋ถ€๋ถ„์ด ์žˆ๋Š”๋ฐ, ์•„๋ฌด๋ž˜๋„ ์‚ฌ์šฉํ•˜๋Š” ์‚ฌ๋žŒ๋งˆ๋‹ค ์•ฝ๊ฐ„์˜ ์ •์˜์ฐจ๊ฐ€ ์žˆ์–ด.. 2020. 5. 16.
Firebase ์ธ์ฆ์ด Release ๋นŒ๋“œ ํ˜น์€ Google Play Store ์ถœ์‹œ ์ดํ›„ ์•ˆ๋  ๋•Œ ํ•„์ž๋Š” Firebase ์ „ํ™”๋ฒˆํ˜ธ ์ธ์ฆ์„ ์‚ฌ์šฉํ•˜์˜€๋Š”๋ฐ, Google Play Console์„ ์ด์šฉํ•˜์—ฌ ์•ฑ์„ ์ถœ์‹œํ•œ ์ดํ›„ Firebase ์ „ํ™”๋ฒˆํ˜ธ ์ธ์ฆ์ด ๋จน์ง€ ์•Š์•„ ๋‹นํ™ฉํ–ˆ์—ˆ๋‹ค. ๋ฆด๋ฆฌ์ฆˆ๋กœ ๋นŒ๋“œํ•œ ๊ฒƒ๊ณผ ์ถœ์‹œํ•œ ์•ฑ๋งŒ ๋˜์ง€ ์•Š๋Š” ๊ฒƒ์ด ์ด์ƒํ•˜์—ฌ Firebase์—์„œ ํ™•์ธํ•ด๋ณธ ๊ฒฐ๊ณผ Firebase์˜ ํ•ด๋‹น ํ”„๋กœ์ ํŠธ ์„ค์ •์—์„œ ์•„๋ž˜์™€ ๊ฐ™์€ ๋ฉ”๋‰ด๋ฅผ ์ฐพ์•˜๋‹ค. ์ด ๊ณณ์—์„œ '๋””์ง€ํ„ธ ์ง€๋ฌธ ์ถ”๊ฐ€' ๋ฉ”๋‰ด๋ฅผ ๋ˆŒ๋Ÿฌ์ฃผ๊ณ  SHA ์ธ์ฆ์„œ ์ง€๋ฌธ์„ ์ถ”๊ฐ€ํ•˜๋ฉด ๋œ๋‹ค. Firebase์˜ ํ”„๋กœ์ ํŠธ ์„ค์ • ๋ฒ„ํŠผ์„ ๋‹ค์Œ๊ณผ ๊ฐ™์ด ๋ˆ„๋ฅด๋ฉด ์œ„์˜ ํ™”๋ฉด์„ ๋ณผ ์ˆ˜ ์žˆ๋‹ค. ์ธ์ฆ์„œ ์ง€๋ฌธ์€ Google Play Store๋กœ ์ถœ์‹œํ•œ ์•ฑ์˜ ๊ฒฝ์šฐ Google Play Console์˜ ๋‹ค์Œ๊ณผ ๊ฐ™์€ ํ™”๋ฉด์—์„œ ์ธ์ฆ์„œ ์ง€๋ฌธ์„ ์ฐพ์„ ์ˆ˜ ์žˆ๋‹ค. (์ถœ์‹œ๊ด€๋ฆฌ - ์•ฑ ์„œ๋ช…) ํ˜น์‹œ๋ผ๋„ ํ—ค๋งค๋Š” ๋ถ„๋“ค์—๊ฒŒ.. 2020. 5. 6.
git push -u origin master ์‹คํ–‰์‹œ SSL certificate problem: self signed certificate in certificate chain ์—๋Ÿฌ ๋ฐœ์ƒ ํ•ด๊ฒฐ GitHub์— Repository๋ฅผ ๋งŒ๋“ค๊ณ  ์ž‘์€ ํ”„๋กœ์ ํŠธ๋ฅผ ํ•˜๋‚˜ ์˜ฌ๋ฆฌ๋ ค๋Š”๋ฐ, ์‚ฌ์†Œํ•œ ๋ฌธ์ œ๊ฐ€ ๋ฐœ์ƒํ–ˆ๋‹ค. ํ•ด๊ฒฐํ•˜๋Š”๋ฐ ์•ฝ๊ฐ„ ํ—ค๋งธ์–ด์„œ ๊ฒฝํ—˜์„ ๊ณต์œ ํ•œ๋‹ค. git push -u origin master ๋ฅผ ์‹คํ–‰ํ–ˆ์„ ๋•Œ SSL certificate problem: self signed certificate in certificate chain ๊ฐ€ ๋ฐœ์ƒํ–ˆ๋‹ค. ์ด๋Ÿฐ ์ €๋Ÿฐ ๋ฐฉ๋ฒ•์„ ์ˆ˜ํ–‰ํ•ด๋ณด์•˜์ง€๋งŒ, ์ž˜ ๋Œ์•„์˜ค์ง€ ์•Š์•˜๋‹ค. ๊ฒฐ๋ก ์ ์œผ๋กœ ์•„๋ž˜์˜ ํ•œ์ค„๋กœ ํ•ด๊ฒฐ์ด ๋๋‹ค. ๋‹คํ–‰. git config --global http.sslVerify false Stackoverflow์˜ ์•„๋ž˜ ๊ธ€์ด ์œ ์šฉํ–ˆ๋‹ค. ์ฐธ์กฐ: https://stackoverflow.com/questions/11621768/how-can-i-make-git-accept-a-se.. 2020. 4. 14.
Anaconda Navigator - Loading Applications ๋ฉˆ์ถค ํ˜„์ƒ ํ•ด๊ฒฐ Anaconda Navigator๋ฅผ ์—…๋ฐ์ดํŠธ ํŒ์—…์— ๋”ฐ๋ผ 1.9.12๋ฒ„์ „์œผ๋กœ ์—…๋ฐ์ดํŠธํ•œ ์ดํ›„๋ถ€ํ„ฐ Loading Applications์—์„œ ๋ฉˆ์ถค ํ˜„์ƒ์ด ์ผ์–ด๋‚ฌ๊ณ , python์ด ์‘๋‹ต์—†์Œ ์ƒํƒœ์— ๋น ์ง€๋Š” ํ˜„์ƒ์ด ์ผ์–ด๋‚ฌ๋‹ค. ์ด๋ž˜์ €๋ž˜ ์‚ฝ์งˆ ๋์— ํ•ด๊ฒฐํ•ด์„œ ๋„์›€์ด ๋˜๊ณ ์ž ํ•ด๋‹น ๋‚ด์šฉ์„ ๊ณต์œ ํ•œ๋‹ค. ์„ฑ๊ณตํ•œ ๋‚ด์šฉ์„ ๊ณต์œ ํ•œ๋‹ค. ์•„๋ž˜ ํŒŒ์ผ์—์„œ anaconda์„ค์น˜๊ฒฝ๋กœ/Lib/site-packages/anaconda-navigator/api/conda_api.py ์•„๋ž˜์˜ ํ•จ์ˆ˜๋ฅผ ์ฐพ์•„ ๋‹ค์Œ๊ณผ ๊ฐ™์ด ์ˆ˜์ •ํ•˜๋ฉด ๋œ๋‹ค. ์ •ํ™•ํžˆ๋Š” data = yaml.full_load(f)๋ฅผ data = yaml.safeload(f)๋กœ ์ˆ˜์ •ํ•˜๋ฉด ๋œ๋‹ค. def load_rc(self, path=None, prefix=None, system=False): "".. 2020. 4. 10.
MS Word(์›Œ๋“œ)์— ์ฝ”๋“œ syntax(๋ฌธ๋ฒ•) ๊ฐ•์กฐํ•ด์„œ ๋„ฃ๊ธฐ IT๋ถ„์•ผ์— ์ข…์‚ฌ ํ•˜๋‹ค๋ณด๋‹ˆ, ์›Œ๋“œ์— ๋ณด๊ณ ๋ฌธ์„œ๋‚˜ ๋งค๋‰ด์–ผ ๋“ฑ์„ ์ž‘์„ฑํ•  ๋•Œ ์ฝ”๋“œ ๋ธ”๋Ÿญ์„ ๋„ฃ๊ณ  ์‹ถ์„ ๋•Œ๊ฐ€ ์žˆ๋‹ค. ์š”์ƒˆ๋Š” tistory ๋ธ”๋กœ๊ทธ๋Š” ๋ฌผ๋ก  ๋„ค์ด๋ฒ„ ๋ธ”๋กœ๊ทธ๋„ ์•„์ฃผ ํ›Œ๋ฅญํ•œ ์ฝ”๋“œ ๋ธ”๋Ÿญ ์‚ฝ์ž… ๊ธฐ๋Šฅ์„ ์ œ๊ณตํ•˜๊ณ  ์žˆ๋Š”๋ฐ, ๊ณผ๊ฑฐ ๋ฒ„์ „ ์›Œ๋“œ(Word 2013)๋ฅผ ์‚ฌ์šฉํ•˜๋Š” ํ•„์ž๋Š” ์ตœ์‹  ๋ฒ„์ „์€ ์‚ฌ์šฉ์„ ์•ˆํ•ด๋ด์„œ ๋ชจ๋ฅด๊ฒ ๊ณ , ๊ตฌ ๋ฒ„์ „์—์„œ๋Š” ์ฝ”๋“œ ๋ธ”๋Ÿญ ์‚ฝ์ž…์— ์–ด๋ ค์›€์„ ๋Š๊ปด์™”๋‹ค. ์• ์ดˆ์— IDE์—์„œ ์ž˜ ๋ถ™์—ฌ๋„ฃ์–ด์ง€๋Š” ๊ฒฝ์šฐ๋„ ์žˆ์ง€๋งŒ, ๊ทธ๋ ‡์ง€ ์•Š์€ ๊ฒฝ์šฐ๋„ ํ—ˆ๋‹คํ•˜๋‹ค. ์›Œ๋“œ์— ์ฝ”๋“œ ๋ฌธ๋ฒ•์„ ์˜ˆ์˜๊ฒŒ ๋ถ™์—ฌ๋„ฃ๊ธฐ ์œ„ํ•ด ํ•„์ž๊ฐ€ ์‚ฌ์šฉํ•œ ์‚ฌ์ดํŠธ๋Š” ์•„๋ž˜์™€ ๊ฐ™๋‹ค. Pygments๋ผ๋Š” ์‚ฌ์ดํŠธ์ธ๋ฐ, ์ œ๋ชฉ์€ Python Syntax Highlighter์ธ๋ฐ, ๋‹ค์–‘ํ•œ ์–ธ์–ด๋ฅผ ์ง€์›ํ•œ๋‹ค. https://pygments.org/demo/#try Demo — Pygments.. 2020. 4. 8.
ํ…์„œํ”Œ๋กœ์šฐ ํŠœํ† ๋ฆฌ์–ผ ์ˆ˜ํ–‰ ์ค‘ AttributeError: module 'tensorflow' has no attribute '__version__' ์—๋Ÿฌ ํ•ด๊ฒฐ https://www.tensorflow.org/tutorials/keras/classification ์ฒซ ๋ฒˆ์งธ ์‹ ๊ฒฝ๋ง ํ›ˆ๋ จํ•˜๊ธฐ: ๊ธฐ์ดˆ์ ์ธ ๋ถ„๋ฅ˜ ๋ฌธ์ œ | TensorFlow Core Note: ์ด ๋ฌธ์„œ๋Š” ํ…์„œํ”Œ๋กœ ์ปค๋ฎค๋‹ˆํ‹ฐ์—์„œ ๋ฒˆ์—ญํ–ˆ์Šต๋‹ˆ๋‹ค. ์ปค๋ฎค๋‹ˆํ‹ฐ ๋ฒˆ์—ญ ํ™œ๋™์˜ ํŠน์„ฑ์ƒ ์ •ํ™•ํ•œ ๋ฒˆ์—ญ๊ณผ ์ตœ์‹  ๋‚ด์šฉ์„ ๋ฐ˜์˜ํ•˜๊ธฐ ์œ„ํ•ด ๋…ธ๋ ฅํ•จ์—๋„ ๋ถˆ๊ตฌํ•˜๊ณ  ๊ณต์‹ ์˜๋ฌธ ๋ฌธ์„œ์˜ ๋‚ด์šฉ๊ณผ ์ผ์น˜ํ•˜์ง€ ์•Š์„ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์ด ๋ฒˆ์—ญ์— ๊ฐœ์„ ํ•  ๋ถ€๋ถ„์ด ์žˆ๋‹ค๋ฉด tensorflow/docs ๊นƒํ—™ ์ €์žฅ์†Œ๋กœ ํ’€ ๋ฆฌํ€˜์ŠคํŠธ๋ฅผ ๋ณด๋‚ด์ฃผ์‹œ๊ธฐ ๋ฐ”๋ž๋‹ˆ๋‹ค. ๋ฌธ์„œ ๋ฒˆ์—ญ์ด๋‚˜ ๋ฆฌ๋ทฐ์— ์ฐธ์—ฌํ•˜๋ ค๋ฉด docs-ko@tensorflow.org๋กœ ๋ฉ”์ผ์„ ๋ณด๋‚ด์ฃผ์‹œ๊ธฐ ๋ฐ”๋ž๋‹ˆ๋‹ค. ์ด ํŠœํ† ๋ฆฌ์–ผ์—์„œ๋Š” ์šด๋™ํ™”๋‚˜ ์…”์ธ  ๊ฐ™์€ ์˜ท ์ด www.tensorflow.org AttributeError: modu.. 2020. 4. 8.