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

๐Ÿ‘ฉ๐Ÿป‍๐Ÿ’ป Programming

(18)
[๋งˆ์ธ๋“œ๋งต ์‹œ๊ฐํ™” ํˆด ์ถ”์ฒœ] ์ฝ”๊ธ€(coggle) ๐Ÿ‘‹Hello World! I'm Dona! ๋ถ€ํŠธ ์บ ํ”„์—์„œ ์—ฌํƒœ๊ป ๊ณต๋ถ€ํ–ˆ๋˜ ๋‚ด์šฉ์„ ์ •๋ฆฌํ•ด ๋ณด๊ณ ์ž ๋งˆ์ธ๋“œ๋งต์œผ๋กœ ์‹œ๊ฐํ™”๋ฅผ ํ•ด๋ณด์•˜์Šต๋‹ˆ๋‹ค. '์ฝ”๊ธ€' ์ด๋ผ๋Š” ํˆด์ธ๋ฐ์š”, ์ €๋ฒˆ์— ํ”„๋กœ์ ํŠธ๋ฅผ ์ค€๋น„ํ•˜๋ฉด์„œ ์ฒ˜์Œ ์ ‘ํ–ˆ๋Š”๋ฐ, ๊น”๋”ํ•˜๊ณ  ๊ฐ€์‹œ์„ฑ๋„ ์ข‹์•„์„œ ์†Œ๊ฐœํ•˜๋ ค๊ณ  ํ•ด์š”โœจ ๋‚˜์ค‘์— ํ”„๋กœ์ ํŠธ, ํฌํŠธํด๋ฆฌ์˜ค ๋งŒ๋“ค ๋•Œ๋„ ํ™œ์šฉํ•ด ๋ณด๋ ค๊ณ  ํ•ฉ๋‹ˆ๋‹ค :) ์ฝ”๊ธ€(coggle) : https://coggle.it/ Coggle - Simple Collaborative Mind Maps Coggle is a collaborative mind-mapping tool that helps you make sense of complex things. Create unlimited mind maps and easily share them with friends a..
[Error] MAC Anaconda ์‹คํ–‰ ์˜ค๋ฅ˜ zsh: command not found: conda ๊ดœํžˆ ํ„ฐ๋ฏธ๋„ ๊พธ๋ฏธ๊ฒ ๋‹ค๊ณ  zsh, iTerm2 ์ด๊ฒƒ์ €๊ฒƒ ๊น”๋‹ค๊ฐ€ ๊ฐ‘์ž๊ธฐ conda๊ฐ€ ์•ˆ๋ผ์„œ 1์‹œ๊ฐ„ ๋„˜๊ฒŒ ์‚ฝ์งˆ์„ ํ–ˆ๋‹ค.. ๐Ÿ”จ ์Šฌํ”„์ง€๋งŒ ํ† ์š”์ผ์ด๋‹ˆ๊นŒ ๊ดœ์ฐฎ์•„.. ํ„ฐ๋ฏธ๋„ ๊พธ๋ฏธ๊ธฐ ์„ฑ๊ณตํ–ˆ์œผ๋‹ˆ๊นŒ ๊ดœ์ฐฎ์•„.. ์ด ํฌ์ŠคํŒ…์€ ๋‹ค์Œ์— ๋˜ ์ด๋Ÿฐ ์—๋Ÿฌ๋ฅผ ๋งŒ๋‚ฌ์„ ๋•Œ ๊ฐ•๋ ฅํ•˜๊ฒŒ ๋ฌด์ฐŒ๋ฅด๊ธฐ ์œ„ํ•œ ๊ธ€์ด๋‹ค.. ๐Ÿ‘Š 1๏ธโƒฃ ๊ฒฝ๋กœ ์„ค์ • ์•„๋‚˜์ฝ˜๋‹ค๋ฅผ ์„ค์น˜ํ•  ๋•Œ, ๋”ฐ๋กœ ๊ฒฝ๋กœ๋ฅผ ์ง€์ •ํ•˜์ง€ ์•Š๊ณ  default ๊ฒฝ๋กœ์— ๋‹ค์šด๋กœ๋“œ ํ•˜๋ฉด opt ๋˜๋Š” Userํด๋”์— ์ €์žฅ๋œ๋‹ค. ๋‚˜์˜ ๊ฒฝ์šฐ์—๋Š” opt ํด๋”์— ์ €์žฅ์ด ๋˜์–ด์žˆ์—ˆ๋‹ค. # export PATH="๋ณธ์ธ์ด ์•„๋‚˜์ฝ˜๋‹ค๋ฅผ ์„ค์น˜ํ•œ ํด๋”/anaconda3/bin:$PATH" export PATH="/opt/anaconda3/bin:$PATH" 2๏ธโƒฃ conda ์„ค์ •๊ฐ’์„ ์ดˆ๊ธฐํ™” Mac์˜ ๊ธฐ๋ณธ ์‰˜์€ bash ๋˜๋Š” zsh์ด๋‹ค. ๋‚˜๋Š”..
[home brew&git] Mac M1pro home brew๐Ÿบ & git ์„ค์น˜ํ•˜๊ธฐ ๐Ÿ‘‹Hello world! I'm Dona! ์ตœ๊ทผ์— ๋งฅ๋ถ M1pro๋ฅผ ๊ตฌ๋งคํ•ด์„œ ๊ฐ์ข… ํ™˜๊ฒฝ, ํˆด๋“ค์„ ํ•˜๋‚˜์”ฉ ์„ค์น˜ํ•˜๋ฉฐ ๊ฒช์—ˆ๋˜ ์ผ๋“ค์— ๋Œ€ํ•ด ๊ณต์œ ํ•˜๊ณ ์ž ํ•ฉ๋‹ˆ๋‹ค! ์˜ค๋Š˜์€ home brew์ž…๋‹ˆ๋‹ค! ๐Ÿบ๐Ÿบ ๋งฅ๋ถ ์ด์ „์—๋„ ์•„์ด๋งฅ์„ ์‚ฌ์šฉํ•˜๊ธด ํ–ˆ์—ˆ์ง€๋งŒ, ์ธํ…” ์นฉ์ด ๋“ค์–ด์žˆ์—ˆ๋Š”๋ฐ, ์ด๋ฒˆ ๋งฅ๋ถ์€ M1์ด๋ผ์„œ ์กฐ๊ธˆ ๋‹ค๋ฅด๋”๋ผ๊ณ ์š”! ์ฐจ๊ทผ์ฐจ๊ทผ ๋ณด๋ฉด์„œ ๋”ฐ๋ผ ํ•˜๋ฉด ์‰ฝ๊ฒŒ ์Š‰์Š‰ ์„ค์น˜๊ฐ€ ๊ฐ€๋Šฅํ•  ๊ฑฐ์˜ˆ์š”! ๐Ÿบ๊ทธ๋ž˜์„œ home brew๊ฐ€ ๋ญ์•ผ? ํ™ˆ๋ธŒ๋ฃจ๋Š” ์ž์œ -์˜คํ”ˆ ์†Œ์Šค ์†Œํ”„ํŠธ์›จ์–ด ํŒจํ‚ค์ง€ ๊ด€๋ฆฌ ์‹œ์Šคํ…œ์˜ ํ•˜๋‚˜๋กœ์„œ ์• ํ”Œ์˜ macOS ์šด์˜ ์ฒด์ œ์˜ ์†Œํ”„ํŠธ์›จ์–ด ์„ค์น˜๋ฅผ ๋‹จ์ˆœํ•˜๊ฒŒ ๋งŒ๋“ค์–ด์ค€๋‹ค. ์›๋ž˜ ๋งฅ์Šค ํ˜ธ์›ฐ์ด ๊ฐœ๋ฐœํ•œ ์ด ํŒจํ‚ค์ง€ ๊ด€๋ฆฌ์ž๋Š” ๋ฃจ๋น„ ์˜จ ์›จ์ผ์ฆˆ ๊ณต๋™์ฒด์—์„œ ์ธ๊ธฐ๋ฅผ ์–ป์—ˆ์œผ๋ฉฐ ํ™•์žฅ์„ฑ์œผ๋กœ ํ˜ธํ‰์„ ๋ฐ›์•˜๋‹ค. - ์œ„ํ‚ค๋ฐฑ๊ณผ๐Ÿ“– ๊ฐ„๋‹จํ•˜๊ฒŒ ์š”์•ฝํ•˜๋ฉด ๋งฅOS ์šฉ ํŒจํ‚ค์ง€ ๊ด€๋ฆฌ์ž๋ผ๊ณ  ์ƒ๊ฐ..
[Error] Tensorflow | ๋”ฅ๋Ÿฌ๋‹ ์ด์ง„๋ถ„๋ฅ˜ | valueerror: classification metrics can't handle a mix of binary and continuous targets tensorflow๋ฅผ ์ด์šฉํ•˜์—ฌ ๋”ฅ๋Ÿฌ๋‹์„ ๊ตฌํ˜„ํ•˜๋˜ ์ค‘, ๋งˆ์ง€๋ง‰ ๋ชจ๋ธ ํ‰๊ฐ€ ๋ถ€๋ถ„์—์„œ ์•„๋ž˜์™€ ๊ฐ™์€ ์—๋Ÿฌ๊ฐ€ ๋‚ฌ๋‹ค. valueerror: classification metrics can't handle a mix of binary and continuous targets ์ฒ˜์Œ์—๋Š” ๋‹ค์งœ๊ณ ์งœ ๊ตฌ๊ธ€๋ง๋ถ€ํ„ฐ ํ•˜์˜€๋Š”๋ฐ, ๋‚˜์™€ ๋‹ค๋ฅธ ๊ฒฝ์šฐ์˜ ์‚ฌ๋žŒ๋“ค๋„ ๊ฐ™์€ ์—๋Ÿฌ๊ฐ€ ๊ต‰์žฅํžˆ ๋งŽ์ด ๋‚œ ๊ฒƒ์„ ํ™•์ธํ•  ์ˆ˜ ์žˆ์—ˆ๋‹ค. ์—๋Ÿฌ ๋ฉ”์„ธ์ง€ ์ž์ฒด๋ฅผ ํ•ด์„ํ•ด ๋ณด๋ฉด ๊ฐ’ ์˜ค๋ฅ˜ : ๋ถ„๋ฅ˜ ๋ฉ”ํŠธ๋ฆญ์€ ์ด์ง„ ๋ฐ ์—ฐ์† ๋Œ€์ƒ์˜ ํ˜ผํ•ฉ์„ ์ฒ˜๋ฆฌํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค. ๊ฒฐ๊ตญ ๋‹ค์‹œ ์ฝ”๋“œ๋กœ ๋Œ์•„์™€์„œ ํ™•์ธ์„ ํ•ด๋ณด๋‹ˆ, ์นœ์ ˆํ•˜๊ฒŒ๋„ Traceback์—์„œ ์–ด๋””์„œ ์˜ค๋ฅ˜๊ฐ€ ์‹œ์ž‘๋˜์—ˆ๋Š”์ง€ ํžŒํŠธ๋ฅผ ์ฃผ๊ณ  ์žˆ์—ˆ๋‹ค. ๋ฌธ์ œ๊ฐ€ ๋˜์—ˆ๋˜ ์ฝ”๋“œ๋Š” ์•„๋ž˜์™€ ๊ฐ™๋‹ค. from sklearn.metrics import classi..
[Error]Mac zsh - brew install heroku $ brew install heroku heroku๋ฅผ ์‚ฌ์šฉํ•˜๊ธฐ ์œ„ํ•ด zsh ์‰˜์— ํ•ด๋‹น ๋ช…๋ น์–ด๋ฅผ ์ž…๋ ฅํ•˜์˜€์œผ๋‚˜ ์•„๋ž˜์™€ ๊ฐ™์€ ์˜ค๋ฅ˜๊ฐ€ ๋‚ฌ๋‹ค. ๊ณต์‹์ ์ธ ์ด๋ฆ„์ด ์—†๋‹ค๊ณ  ํ•˜๋Š”๋ฐ ์ด๊ฒŒ ๋ฌด์Šจ ์ผ์ด์•ผ.. Warning: No available formula with the name "heroku". ==> Searching for similarly named formulae... Error: No similarly named formulae found. ==> Searching for a previously deleted formula (in the last month)... Error: No previously deleted formula found. ==> Searching taps on GitHub... Error:..
[HTTPS]๋Œ€์นญํ‚ค์™€ ๋น„๋Œ€์นญํ‚ค & ๊ณต๊ฐœํ‚ค ์•”ํ˜ธํ™” ๋ฐฉ์‹ Hello, I'm Dona! ์ง€๋‚œ ํฌ์ŠคํŒ…์— ์–ธ๊ธ‰ํ•œ HTTPS ๊ณต๊ฐœํ‚ค ์•”ํ˜ธํ™” ๋ฐฉ์‹์— ๋Œ€ํ•˜์—ฌ ๊ฐ„๋žตํ•˜๊ฒŒ ํฌ์ŠคํŒ…ํ•˜๋ ค ํ•ฉ๋‹ˆ๋‹ค. ์ง€๋‚œ ํฌ์ŠคํŒ…์ด ๋„ˆ๋ฌด ๊ธธ์–ด์ ธ ๋ถ„๋ฆฌํ•˜๊ณ  ์‹ถ์—ˆ์Šต๋‹ˆ๋‹ค. ์ •๋ณด์ฒ˜๋ฆฌ๊ธฐ์‚ฌ ํ•„๊ธฐ๋ฅผ ๊ณต๋ถ€ํ•˜๋ฉด์„œ ํ•ด๋‹น ๊ฐœ๋…์— ๋Œ€ํ•ด์„œ ์ฒ˜์Œ ์ ‘ํ–ˆ์—ˆ๋Š”๋ฐ, ์š”์ฆ˜์— ๋– ์˜ค๋ฅด๊ณ  ์žˆ๋Š” ๋ธ”๋ก์ฒด์ธ์—์„œ๋„ ์‚ฌ์šฉ์„ ํ•œ๋‹ค๊ณ  ํ•ด์š”! ์šฐ์„  ๊ฐœ๋…์„ ๋ฝ€๊ฐœ๋ด…์‹œ๋‹ค! ๋Œ€์นญํ‚ค์™€ ๋น„๋Œ€์นญํ‚ค์˜ ์›๋ฆฌ ๊ทธ๋ฆผ๊ณผ ํ•จ๊ป˜ ์ดํ•ดํ•ด๋ด…์‹œ๋‹ค! ๋Œ€์นญํ‚ค๋Š” ๋˜‘๊ฐ™์ด ๋Œ€์นญ์ ์œผ๋กœ ์ƒ๊ฒจ์„œ ๋Œ€์นญํ‚ค์ž…๋‹ˆ๋‹ค. ๊ฐ™์€ ํ‚ค๋กœ ์•”ํ˜ธํ™”์™€ ๋ณตํ˜ธํ™”๋ฅผ ํ•  ์ˆ˜ ์žˆ์–ด์š”. ๋น„๋Œ€์นญํ‚ค ๋‹ค๋ฅด๊ฒŒ ์ƒ๊ฒจ์„œ ๋น„๋Œ€์นญํ‚ค์ž…๋‹ˆ๋‹ค. ์•”ํ˜ธํ™”์™€ ๋ณตํ˜ธํ™”์— ๊ฐ๊ฐ ๋‹ค๋ฅธ ํ‚ค๋ฅผ ์‚ฌ์šฉํ•˜๋Š” ์•”ํ˜ธํ™” ๋ฐฉ์‹์ด์—์š”! ๊ทธ๋ž˜์„œ ๋‹ค๋ฅธ ์ด๋ฆ„์œผ๋กœ "๊ณต๊ฐœํ‚ค์™€ ๊ฐœ์ธํ‚ค"๋ผ๊ณ ๋„ ํ•˜๋Š”๋ฐ ์ด์œ ๋Š” ์•„๋ž˜์—์„œ ์•Œ๊ฒŒ ๋˜์‹ค ๊ฑฐ์˜ˆ์š”! ๋Œ€์นญํ‚ค ๋ฐฉ์‹ ๊ตฌ๊ธ€๊ณผ ์‚ฌ์šฉ์ž(=User=Client)๊ฐ€ ๋กœ๊ทธ..
[TIL] API, HTTP, REST๊ฐœ๋… & python์œผ๋กœ ์‚ฌ์šฉํ•ด๋ณด๊ธฐ API 'Application Programming Interface'์˜ ์•ฝ์ž๋กœ, ํ”„๋กœ๊ทธ๋žจ๋“ค์ด ์†Œํ†ตํ•  ์ˆ˜ ์žˆ๋Š” ์ธํ„ฐํŽ˜์ด์Šค๋ผ๊ณ  ํ•ฉ๋‹ˆ๋‹ค. (ํ”„๋กœ๊ทธ๋žจ๋“ค์˜ ์†Œํ†ต์€ ๋‹น์—ฐํžˆ code๋กœ ํ•˜๊ฒ ์ฃ ?!) ๐Ÿ‘ฉ๐Ÿป‍๐Ÿ’ป ๊ทธ๋ ‡๋‹ค๋ฉด ์ธํ„ฐํŽ˜์ด์Šค๋Š” ๋ญ˜๊นŒ์š”?! ์‚ฌ์ „์  ์˜๋ฏธ๋กœ๋Š” '์–ด๋– ํ•œ ๋‘ ๊ฐ€์ง€์˜ ์˜์‚ฌ์†Œํ†ต์„ ๋ชฉ์ ์œผ๋กœ ๋งŒ๋“ค์–ด์ง„ ๋ฌผ๋ฆฌ์ , ๊ฐ€์ƒ์  ๋งค๊ฐœ์ฒด'์ž…๋‹ˆ๋‹ค. ๊ต‰์žฅํžˆ ์ถ”์ƒ์ ์ธ ์˜๋ฏธ์ด๊ธด ํ•˜์ง€๋งŒ, ์ €ํฌ๋Š” ์ด๋ฏธ ๋งŽ์€ ์ธํ„ฐํŽ˜์ด์Šค๋“ค์„ ์‚ฌ์šฉํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค! ๊ทธ์ค‘์˜ ํ•˜๋‚˜๋กœ UI(User Interface : ์‚ฌ์šฉ์ž ์ธํ„ฐํŽ˜์ด์Šค)์˜ ํ•˜๋‚˜์ธ GUI(Graphic User Interface)๊ฐ€ ์žˆ์Šต๋‹ˆ๋‹ค. ์ง€๋‚œ ํฌ์ŠคํŒ…์—์„œ, CLI์™€ GUI์— ๋Œ€ํ•œ ์ฐจ์ด์— ๋Œ€ํ•ด์„œ ์ด์•ผ๊ธฐํ–ˆ์—ˆ์Šต๋‹ˆ๋‹ค :) ์ง๊ด€์ ์œผ๋กœ UI๋Š” ๋””์ง€ํ„ธ ๊ธฐ๊ธฐ์— ๋ช…๋ น์— ๋‚ด๋ฆฌ๋Š” ๋ฐฉ๋ฒ•์ด๋ผ๊ณ  ์ƒ๊ฐํ•˜์‹œ๋ฉด ๋ฉ๋‹ˆ๋‹ค! ์˜ˆ๋ฅผ ๋“ค..
[๊ฐ€์ƒํ™˜๊ฒฝ] ๊ฐ€์ƒํ™˜๊ฒฝ์ด๋ž€ & ์•„๋‚˜์ฝ˜๋‹ค ์‹ค์Šต๊ณผ ๋ช…๋ น์–ด ๋ชจ์Œ๐Ÿ  ๊ฐ€์ƒํ™˜๊ฒฝ(Virtual Environments)์ด ๋ญ์˜ˆ์š”โ“ ๊ธฐ๋ณธ์ ์œผ๋กœ ๊ฐ€์ƒ ํ™˜๊ฒฝ์ด ์žˆ๋Š” ๊ฐ€์žฅ ํฐ ์ด์œ ๋Š” "ํ”„๋กœ์ ํŠธ๋ฅผ ์œ„ํ•œ ๊ฒฉ๋ฆฌ๋œ ํ™˜๊ฒฝ์„ ๋งŒ๋“œ๋Š” ๊ฒƒ"์ž…๋‹ˆ๋‹ค. ์‰ฝ๊ฒŒ ๋งํ•ด์„œ ํ”„๋กœ์ ํŠธ๋งˆ๋‹ค ํ•ด๋‹น ํ”„๋กœ์ ํŠธ์— ํ•„์š”ํ•œ ๋ชจ๋“ˆ๋งŒ ๋‹ด์•„์„œ ๋งŒ๋“  ๋ฐ”๊ตฌ๋‹ˆ๋ผ๊ณ  ์ƒ๊ฐํ•˜์‹œ๋ฉด ๋ฉ๋‹ˆ๋‹ค!๐Ÿงบ๐Ÿงบ๐Ÿงบ ์•„์ง๊นŒ์ง€๋Š” ์ดํ•ด๊ฐ€ ์ž˜ ์•ˆ๊ฐ€์‹ค ์ˆ˜๋„ ์žˆ์Šต๋‹ˆ๋‹ค. ์•„๋ž˜์˜ ๊ฐ€์ƒํ™˜๊ฒฝ์˜ ํ•„์š”์„ฑ์„ ์ฝ์–ด๋ด…์‹œ๋‹ค! ๊ฐ€์ƒํ™˜๊ฒฝ์˜ ํ•„์š”์„ฑ Python์„ ํฌํ•จํ•˜์—ฌ ๋Œ€๋ถ€๋ถ„์˜ ํ”„๋กœ๊ทธ๋ž˜๋ฐ ์–ธ์–ด๋“ค์€ ํŒจํ‚ค์ง€(๋˜๋Š” ๋ชจ๋“ˆ)์˜ ๋ฒ„์ „์„ ๊ณ„์†ํ•ด์„œ ์ตœ์‹ ํ™”ํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฒ„์ „๋งˆ๋‹ค ์ผ๋ถ€ ๊ธฐ๋Šฅ๋“ค์€ ์—†์–ด์ง€๊ฑฐ๋‚˜ ์ƒˆ๋กœ ์ƒ๊น๋‹ˆ๋‹ค. ์ง€๊ธˆ ์ €์—๊ฒŒ ํ•„์š”ํ•œ ํŠน์ • ๊ธฐ๋Šฅ์ด ์ตœ์‹  ๋ฒ„์ „์—๋Š” ์—†์„ ์ˆ˜๋„ ์žˆ๊ธฐ ๋•Œ๋ฌธ์— ์ตœ์‹  ๋ฒ„์ „์ด ๋ฌด์กฐ๊ฑด ์ข‹์€ ๊ฒƒ์€ ์•„๋‹ˆ๊ฒ ์ฃ ? :) ํ•˜์ง€๋งŒ ํ•˜๋‚˜์˜ ํ™˜๊ฒฝ์—๋Š” ํŒจํ‚ค์ง€๋‹น ํ•˜๋‚˜์˜ ๋ฒ„์ „๋งŒ ์„ค์น˜ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. (์—ฌ๋Ÿฌ..