728x90
๋ฐ˜์‘ํ˜•

Computer Science 99

[Android Studio] device selection์— virtual device ์•ˆ๋œจ๋Š” ์ด์Šˆ ๐Ÿ˜ซ (ํ•ด๊ฒฐ ํฌํ•จ)

Device Manager์—์„œ virtual device ๊นŒ์ง€ ๋‹ค ์„ค์น˜ํ–ˆ๋Š”๋ฐ device selection์— ๋„๋ฌด์ง€!!! ๋œจ์งˆ ์•Š์•„์„œ ๋นŒ๋“œ๋ฅผ ํ•ด๋ณผ ์ˆ˜๊ฐ€ ์—†์—ˆ๋‹ค ใ… ใ… ใ…  ์ง„์งœ ๊ฑฐ์˜ ๋ช‡์ผ์„ ๊ณ ์ƒํ–ˆ๋Š”๋ฐ.. ์ •๋ง ํ„ฐ๋ฌด๋‹ˆ ์—†๋Š” ์ด์Šˆ์˜€๋”ฐ๋Š”....ใ…Ž flutter doctor ์šฐ์„  ๋‹ค๋“ค ์ด๊ฑฐ ํ•œ๋ฒˆ๋งŒ ๋Œ๋ ค๋ณด์„ธ์š”... ์—ฌ๊ธฐ์„œ ์˜ค๋ฅ˜๊ฐ€ ์žˆ์œผ๋ฉด ์•ˆ๋ฉ๋‹ˆ๋‹ค! Unable to locate Android SDK ์ €๋Š” Unable to locate Android SDK (android sdk ๊ฒฝ๋กœ ์„ค์ •์ด ์ œ๋Œ€๋กœ ์•ˆ๋˜์–ด์žˆ๋‹ค) ๊ณ  ์˜ค๋ฅ˜๊ฐ€ ๋œจ๋”๋ผ๊ตฌ์š” "android sdk ๊ฒฝ๋กœ๊ฐ€ ์–ด๋””์ง€..?" ์‹ถ์œผ์‹  ๋ถ„๋“ค์€ ์•„๋ž˜ ๋นจ๊ฐ„ ๋ฐ•์Šค ํด๋ฆญํ•˜๋ฉด ์ด๋ ‡๊ฒŒ ๊ฒฝ๋กœ๋ฅผ ์•Œ๋ ค์ค€๋‹ต๋‹ˆ๋‹ค~! ๊ฒฝ๋กœ๊ฐ€ ํ™•์ธ๋˜์…จ๋‹ค๋ฉด, ํ„ฐ๋ฏธ๋„์— ์•„๋ž˜ ๋ช…๋ น์–ด๋ฅผ ์ž…๋ ฅํ•ด์ฃผ์–ด ๊ฒฝ๋กœ ์ง€์ •์„ ํ•ด์ฃผ์„ธ์š”!..

[Flutter] ios ๋ฐฐํฌํ•˜๊ธฐ!!

ํ„ฐ๋ฏธ๋„์—์„œ ์•„๋ž˜ ๋ช…๋ น ์น˜๊ณ  ์˜ค๋ฅ˜์—†์ด ๋Œ์•„๊ฐ€๋ฉด ๋ฉ๋‹ˆ๋‹น ์•„๋ž˜ ๋ช…๋ น์–ด๋Š” dev ๋ฒ„์ „ ๋ฐฐํฌํ•˜๋Š” ๋ช…๋ น์–ด์ž…๋‹ˆ๋‹ค! flutter build ipa --release --flavor dev ์ฃผ์˜์‚ฌํ•ญ ๐Ÿ–– ๋‚ด๊ฐ€ ์ง์ ‘ ๋ฐฐํฌ๋ฅผ ํ•  ์ˆ˜ ์žˆ์œผ๋ ค๋ฉด ๊ด€๋ฆฌ์ž๊ฐ€ ๋˜์–ด์•ผํ•ฉ๋‹ˆ๋‹ค appstore connect์— ๋“ค์–ด๊ฐ€์„œ ๋‚˜์˜ ์—ญํ• ์ด '๊ด€๋ฆฌ์ž'๋กœ ๋˜์–ด์žˆ๋Š”์ง€ ๊ผญ ํ™•์ธํ•ด์ฃผ์„ธ์š”! ๊ทธ๋ ‡์ง€ ์•Š์œผ๋ฉด ๊ถŒํ•œ์ด ์—†์–ด ๋ฐฐํฌ๊ฐ€ ๋ถˆ๊ฐ€๋Šฅํ•ฉ๋‹ˆ๋‹ค

[react] react-query: refetch์—๋„ status๊ฐ€ ๊ณ„์† success์ธ ์ด์œ ?

react-query์—์„œ query๋ฅผ refetchํ•  ๋•Œ status๊ฐ€ idle๋ถ€ํ„ฐ ๋œจ๋Š”๊ฒŒ ์•„๋‹ˆ๋ผ success๋ถ€ํ„ฐ ๋œจ๋Š” ๊ฒฝ์šฐ.. ์™œ๊ทธ๋Ÿด๊นŒ?? (status๋ฟ๋งŒ ์•„๋‹ˆ๋ผ isLoading์ด๋‚˜ isFetching๊ณผ ๊ฐ™์€ ์ƒํƒœ๋„ true๋ถ€ํ„ฐ ์‹œ์ž‘ํ•˜๋Š”๊ฒŒ ์•„๋‹ˆ๋ผ false๋กœ ๋œฌ๋‹ค.) refetchOnMount: true, keepPreviousData: false ๋กœ ๋‹ค ์„ค์ •ํ–ˆ๋Š”๋ฐ๋„ ๋ง์ด๋‹ค. ํ•ด๋‹น ์ƒํ™ฉ ์žฌํ˜„ useQuery๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ data fetch any event์— ์˜ํ•ด ํ•ด๋‹น data ๋‹ค์‹œ refetch ์ฝ˜์†”์— ๋กœ๊ทธ ์ฐ์–ด๋ดค์„๋•Œ data์˜ status: success ๋ถ€ํ„ฐ ์‹œ์ž‘ (์•„๋ž˜ ์ฝ˜์†” ์บก์ณ ์‚ฌ์ง„์—์„œ ๋งจ ๋งˆ์ง€๋ง‰ ์ค„๋งŒ ๋œธ) ๋‚ด๊ฐ€ ์˜ˆ์ƒํ–ˆ๋˜ behavior : status: idle๋ถ€ํ„ฐ ์‹œ์ž‘ํ•ด์„œ idle ->..

[javascript][typescript] default export vs export ~

javascript, typescript๋ฅผ ์‚ฌ์šฉํ•˜๋‹ค๋ณด๋ฉด ๋ชจ๋“ˆ์„ ๋งŽ์ด ๋งŒ๋“ค๊ฒŒ ๋˜๊ณ  ๊ทธ๋•Œ๋งˆ๋‹ค ํŒŒ์ผ ํ•˜๋‹จ์—๋Š” "export default ~" ํ˜น์€ "export const ~" ๋“ฑ์˜ export ๋ฌธ๋ฒ•์„ ์‚ฌ์šฉํ•˜๊ฒŒ ๋œ๋‹ค. ์ด๊ธ€์€ ๋ฌด์ง€์„ฑ์œผ๋กœ export ํ•˜๋Š” ๊ฒƒ์„ ๋ง‰๊ธฐ ์œ„ํ•œ ๊ธ€์ด๋‹ค. export์—๋Š” default export์™€ named export๊ฐ€ ์žˆ๋‹ค 1. default export - ํŒŒ์ผ๋‹น ์ตœ๋Œ€ 1๊ฐœ์˜ default export๊ฐ€ ์žˆ์„ ์ˆ˜ ์žˆ์Œ - ๋ณดํ†ต ํŒŒ์ผ ๋‚ด์—์„œ ํ•œ๊ฐœ๋งŒ exportํ•  ๋•Œ vs ๋Œ€ํ‘œ๋กœ exportํ•  ๊ฒƒ์ด ์žˆ์„ ๋•Œ ๋งŽ์ด ์‚ฌ์šฉ - ํ•ด๋‹น ๋ชจ๋“ˆ์—๋Š” ๊ฐœ์ฒด๊ฐ€ ํ•˜๋‚˜๋งŒ ์žˆ๋‹ค๋Š” ์‚ฌ์‹ค์„ ์˜๋ฏธ - importํ•  ๋•Œ ์ค‘๊ด„ํ˜ธ{} ์—†์ด ๊ฐ€์ ธ์˜ฌ ์ˆ˜ ์žˆ์Œ - ์œ„์™€ ๊ฐ™์ด exportํ•  ๊ฒฝ์šฐ importํ•  ๋•Œ ์•„๋ฌด ์ด..

[React] useEffect์˜ dependency ์—ญํ• 

useEffect๋ฅผ ์‚ฌ์šฉํ•˜๋‹ค๋ณด๋ฉด, dependency์— ๋นˆ ๋ฐฐ์—ด์„ ๋„ฃ๋Š” ๊ฒฝ์šฐ๋„, ์ผ๋ถ€ state๊ฐ’๋“ค์„ ๋„ฃ๊ธฐ๋„ํ•˜๊ณ , ํ˜น์€ dependency๋ฅผ ์ƒ๋žตํ•˜๊ธฐ๋„ ํ•œ๋‹ค. ์ด ์…‹์˜ ์ฐจ์ด๋ฅผ ์•Œ๊ณ ์ž ํ•œ๋‹ค. ๋จผ์ € dependency๋ฅผ ์•„์˜ˆ ์ƒ๋žตํ•˜๋Š” ๊ฒฝ์šฐ์ด๋‹ค. useEffect(() => {}); dependency๊ฐ€ ์—†๊ธฐ ๋•Œ๋ฌธ์— ์ œ์ผ ์ฒ˜์Œ ๋ Œ๋”๋ง ํ•  ๋•Œ ํ•œ๋ฒˆ ๋ถˆ๋ฆฌ๊ณ , ๊ทธ ๋’ค๋กœ ์–ด๋–ค ์ž‘์€ state๋“ค์ด๋‚˜ ์š”์†Œ๋“ค์ด ๋ณ€ํ™”ํ•  ๋•Œ๋งˆ๋‹ค ๊ณ„์† ๋ถˆ๋ฆฐ๋‹ค. ์ฆ‰, ๋ถˆํ•„์š”ํ•œ ์ฝœ์ด ๋งŽ์•„์ง„๋‹ค. (์œ„ ํ˜•ํƒœ๋Š” ๊ฑฐ์˜ ์‚ฌ์šฉํ•˜์ง€ ์•Š๋Š”๋‹ค) ๋‹ค์Œ์€ dependency๋กœ ๋นˆ ๋ฐฐ์—ด์ด ๋“ค์–ด๊ฐ€๋Š” ๊ฒฝ์šฐ์ด๋‹ค. useEffect(() => { },[]); ๋ Œ๋”๋ง ํ›„์— ๋”ฑ ํ•œ ๋ฒˆ๋งŒ ์‹คํ–‰์‹œํ‚ค๊ณ  ์‹ถ์„ ๋•Œ ์œ„์™€ ๊ฐ™์ด ์ž‘์„ฑํ•œ๋‹ค. ๋งˆ์ง€๋ง‰์œผ๋กœ ๋ฐฐ์—ด์— ๋ณ€์ˆ˜๋“ค์„ ๋„ฃ๋Š” ๊ฒฝ์šฐ์ด๋‹ค. cons..

[๋จธ์‹ ๋Ÿฌ๋‹] Likelihood "์šฐ๋„" ๋ž€?

์šฐ๋ฆฌ๊ฐ€ ๋จธ์‹ ๋Ÿฌ๋‹์„ ๊ณต๋ถ€ํ•˜๋‹ค๋ณด๋ฉด MLE(Maximum LIkelihood Estimation)์„ ๋งŽ์ด ์ ‘ํ•œ๋‹ค. ์—ฌ๊ธฐ์„œ ์˜๋ฏธํ•˜๋Š” Likelihood๊ฐ€ ๋ฌด์—‡์ธ๊ฐ€? ์ตœ๋Œ€์šฐ๋„๋ฒ•(MLE)๋ž€ - ๋ชจ์ˆ˜์ ์ธ ๋ฐ์ดํ„ฐ ๋ฐ€๋„ ์ถ”์ • ๋ฐฉ๋ฒ• - ํŒŒ๋ผ๋ฏธํ„ฐ ๐œƒ = (๐œƒ1,๐œƒ2,..๐œƒn)์œผ๋กœ ๊ตฌ์„ฑ๋œ ์–ด๋–ค ํ™•๋ฅ ๋ฐ€๋„ํ•จ์ˆ˜ P์—์„œ ๊ด€์ธก๋œ ํ‘œ๋ณธ ๋ฐ์ดํ„ฐ ์ง‘ํ•ฉ์„ x = (x1,x2,..,xn)๋ผ ํ•  ๋•Œ, ์ด ํ‘œ๋ณธ๋“ค์—์„œ ํŒŒ๋ผ๋ฏธํ„ฐ ๐œƒ = (๐œƒ1,๐œƒ2,..๐œƒn)์„ ์ถ”์ •ํ•˜๋Š” ๋ฐฉ๋ฒ•์ด๋‹ค. ์ข€ ๋” ์‰ฌ์šด ์ดํ•ด๋ฅผ ์œ„ํ•ด ๊ทธ๋ฆผ๊ณผ ์—์‹œ๋ฅผ ๋ณด๋ฉด์„œ MLE๋ฅผ ๋” ์ž˜ ์ดํ•ดํ•ด๋ณด์ž ์˜ˆ์‹œ ) ์˜ˆ๋ฅผ ๋“ค์–ด ๋‹ค์Œ๊ณผ ๊ฐ™์ด ๋ฐ์ดํ„ฐ๊ฐ€ ์žˆ๋‹ค๊ณ  ํ•˜์ž x = { 1, 4, 5, 6, 9 } ์ด๋•Œ ๋ฐ์ดํ„ฐ x๋Š” ์•„๋ž˜ ๊ทธ๋ฆผ์˜ ์ฃผํ™ฉ์ƒ‰ ๊ณก์„ ๊ณผ ํŒŒ๋ž€์ƒ‰ ๊ณก์„  ์ค‘ ์–ด๋–ค ๊ณก์„ ์œผ๋กœ๋ถ€ํ„ฐ ์ถ”์ถœ๋˜์—ˆ์„ ํ™•๋ฅ ์ด ๋” ๋†’์€๊ฐ€?..

[๋จธ์‹ ๋Ÿฌ๋‹์„ ์œ„ํ•œ ํ†ต๊ณ„์ง€์‹]

1. ๋จธ์‹ ๋Ÿฌ๋‹์„ ํ•˜๋Š”๋ฐ ํ†ต๊ณ„๊ฐ€ ํ•„์š”ํ•œ๊ฐ€์š”? - ๋ฐ์ดํ„ฐ๋ฅผ ๋‹ค๋ฃฐ ๋•Œ ํ†ต๊ณ„์—์„œ ์ฃผ๋กœ ์‚ฌ์šฉํ•˜๋Š” ๊ฐ€์ •์„ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค. ๊ธฐ๋ณธ์ ์œผ๋กœ ์ „์ฒด๋ฅผ ์•Œ์ง€ ๋ชปํ•˜๋Š” ์ƒํ™ฉ์—์„œ sampling๋œ ๋ฐ์ดํ„ฐ๋งŒ์„ ๋ณด๊ณ  ๋ชจ๋ธ์„ ๋งŒ๋“ค๊ธฐ ๋•Œ๋ฌธ์— ๊ธฐ๋ณธ์ ์œผ๋กœ ๋ถˆํ™•์‹ค์„ฑ์„ ์ง€๋‹ ์ˆ˜ ๋ฐ–์— ์—†๊ธฐ ๋•Œ๋ฌธ์ด์ฃ . ๋ชจ๋ธ์„ ๋งŒ๋“œ๋Š” ์ผ์€ parameter๋ฅผ ์ถ”์ •ํ•˜๋Š” ์ผ์ด๋ผ๊ณ  ์ƒ๊ฐํ•ด๋ณผ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์ด ๊ณผ์ •์—์„œ ๋ฐ์ดํ„ฐ ๋ถ„ํฌ ๋˜๋Š” ๋ชจ๋ธ์— ๋Œ€ํ•œ ๊ฐ€์ •์„ ํ•  ๋•Œ ํ†ต๊ณ„์ง€์‹ ํ•„์š”ํ•˜์ฃ . 2. ํ™•๋ฅ ๋ถ„ํฌ์— ์–ด๋–ค ๊ฒƒ๋“ค์ด ์žˆ๋‚˜์š”? ๊ทธ๋ฆฌ๊ณ  ์–ธ์ œ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋‚˜์š”? - uniform distribution, ์ •๊ทœ๋ถ„ํฌ, ๋ฒ ๋ฅด๋ˆ„์ด ๋ถ„ํฌ, ์ดํ•ญ๋ถ„ํฌ, ๋ฒ ํƒ€๋ถ„ํฌ, ๋””๋ฆฌํด๋ ˆ ๋ถ„ํฌ ๋“ฑ์ด ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐ์ดํ„ฐ์— ๋Œ€ํ•œ ์ •๋ณด๋ฅผ ์ „ํ˜€ ๋ชจ๋ฅด๋Š” ์ƒํ™ฉ์—์„œ๋Š” ์ •๊ทœ๋ถ„ํฌ๋กœ ๊ฐ€์ •ํ•˜๋Š” ๊ฒƒ์ด ์ข‹์Šต๋‹ˆ๋‹ค. ๋ถ„๋ฅ˜ ๋ฌธ์ œ๋Š” ์ฃผ๋กœ ๋ฒ ๋ฅด๋ˆ„์ด ๋ถ„..

[xcode] Info.plist ํŒŒ์ผ์˜ ์ •์ฒด ์•Œ์•„๋ณด๊ธฐ

Info.plistํŒŒ์ผ์€ ๋ฌด์—‡์ธ๊ฐ€ - information Property List ํŒŒ์ผ - ์‹คํ–‰ ํŒจํ‚ค์ง€์— ๊ด€ํ•œ ํ•„์ˆ˜ ์„ค์ • ์ •๋ณด๊ฐ€ ํฌํ•จ๋œ ๊ตฌ์กฐํ™”๋œ ํ…์ŠคํŠธ ํŒŒ์ผ - ์ผ๋ฐ˜์ ์œผ๋กœ XML ํฌ๋งท ์‚ฌ์šฉ - key, value๋กœ ๊ตฌ์„ฑ๋œ dictionary ํ˜•ํƒœ์ด๋ฉฐ, ์ด ํ‚ค๊ฐ’์„ ์ด์šฉํ•˜์—ฌ ์•ฑ์˜ ์„ค์ •์„ ๊ฐ€์ ธ์˜ด - ํ”„๋กœ์ ํŠธ๋ฅผ ์ƒ์„ฑํ•˜๋ฉด ์ž๋™์œผ๋กœ ์ƒ์„ฑ๋จ Key ์„ค๋ช… Localization native development region ๊ฐœ๋ฐœ ์ง€์—ญ, ์–ธ์–ด Executable file ์‹คํ–‰ ํŒŒ์ผ ์ด๋ฆ„ Bundle identifier ๋ฒˆ๋“ค์„ ์‹๋ณ„ํ•˜๋Š” ๊ฐ’ InfoDictionary version Info.plist์˜ ๋ฒ„์ „ Bundle name 16๊ธ€์ž ๋ฏธ๋งŒ์˜ ๋ฒˆ๋“ค ์ด๋ฆ„(์•ฑ ์ด๋ฆ„) Bundle OS Type code ๋ฒˆ๋“ค OS ์ข…๋ฅ˜ ์ฝ”๋“œ..

[pip install ์—๋Ÿฌ] (ํ•ด๊ฒฐ๋ฒ• ํฌํ•จ) ERROR: Could not install packages due to an OSError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Max retries exceeded with url:

pip install jupyter ๋กœ ์ฅฌํ”ผํ„ฐ ๋…ธํŠธ๋ถ ์„ค์น˜ํ•˜๋ คํ•˜๋Š”๋ฐ ๊ณ„์™ ๋‹ค์Œ๊ณผ ๊ฐ™์€ ์—๋Ÿฌ๊ฐ€ ๋–ณ๋‹ค ERROR: Could not install packages due to an OSError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Max retries exceeded with url: ํ•ด๊ฒฐ๋ฐฉ๋ฒ•์€ ๋‹ค์Œ๊ณผ ๊ฐ™๋‹ค pip install --trusted-host pypi.python.org --trusted-host pypi.org --trusted-host files.pythonhosted.orgjupyter ์œˆ๋„์šฐ์—์„œ jupyter notebook ์„ค์น˜ ์„ฑ๊ณต!!!

[Pod error] sudo gem install cocoapods ์‹คํ–‰ ์‹œ ์—๋Ÿฌ (ํ•ด๊ฒฐ๋ฒ• ํฌํ•จ)

sudo gem install cocoapods ์‹คํ–‰ ์‹œ ์—๋Ÿฌ ERROR: Error installing cocoapods: ERROR: Failed to build gem native extensions sudo gem install cocoapods ์‹œ ERROR log sudo gem install cocoapods Building native extensions. This could take a while... ERROR: Error installing cocoapods: ERROR: Failed to build gem native extension. current directory: /Library/Ruby/Gems/2.6.0/gems/ffi-1.15.5/ext/ffi_c /System/Libr..

[Machine Learning] Logistic Regression ์˜ˆ์‹œ๋ฅผ ํ†ตํ•ด ๋‹ค์ค‘์„ ํ˜•ํšŒ๊ท€ ์ดํ•ดํ•˜๊ธฐ

Logistic Regression ๋ฒ”์ฃผํ˜• ๋ณ€์ˆ˜ ์˜ˆ์ธก ๋ชจ๋ธ Logistic Regression์„ ์•Œ๊ธฐ์ „์— linear regression์„ ๋จผ์ € ์•Œ์•„์•ผ. Multiple Linear Regression (๋‹ค์ค‘์„ ํ˜•ํšŒ๊ท€) ์ˆ˜์น˜ํ˜• ์„ค๋ช…๋ณ€์ˆ˜ X์™€ ์—ฐ์†ํ˜• ์ˆซ์ž๋กœ ์ด๋ค„์ง„ ์ข…์†๋ณ€์ˆ˜ Y๊ฐ„์˜ ๊ด€๊ณ„๋ฅผ ์„ ํ˜•์œผ๋กœ ๊ฐ€์ •ํ•˜๊ณ  ์ด๋ฅผ ๊ฐ€์žฅ ์ž˜ ํ‘œํ˜„ํ•  ์ˆ˜ ์žˆ๋Š” ํšŒ๊ท€๊ณ„์ˆ˜๋ฅผ ๋ฐ์ดํ„ฐ๋กœ๋ถ€ํ„ฐ ์ถ”์ •ํ•˜๋Š” ๋ชจ๋ธ ์ด๋•Œ ํšŒ๊ท€๊ณ„์ˆ˜๋Š” ๋ชจ๋ธ์˜ ์˜ˆ์ธก๊ฐ’๊ณผ ์‹ค์ œ๊ฐ’์˜ ์ฐจ์ด(์˜ค์ฐจ์ œ๊ณฑํ•ฉ error sum of squared)์„ ์ตœ์†Œ๋กœ ํ•˜๋Š” ๊ฐ’ ์„ค๋ช…๋ณ€์ˆ˜๊ฐ€ p๊ฐœ์ธ ๋‹ค์ค‘์„ ํ˜•ํšŒ๊ท€์˜ ์ผ๋ฐ˜ ์‹ ์˜ˆ์‹œ - 1 ๋‚˜์ด์™€ ํ˜ˆ์•• ๋ฐ์ดํ„ฐ๊ฐ€ ์ฃผ์–ด์กŒ์„ ๋•Œ, ์˜ค์ฐจ์ œ๊ณฑํ•ฉ์„ ์ตœ์†Œ๋กœ ํ•˜๋Š” ํšŒ๊ท€๊ณ„์ˆ˜ ๊ตฌํ•˜๊ธฐ ์„ค๋ช…๋ณ€์ˆ˜ X : ๋‚˜์ด ์ข…์†๋ณ€์ˆ˜ Y : ํ˜ˆ์•• ์•ž์„œ ์ข…์†๋ณ€์ˆ˜ Y๋Š” ‘ํ˜ˆ์••’์œผ๋กœ ์—ฐ์†ํ˜• ์ˆซ์ž์˜€์Œ. ๊ทธ๋ ‡..

[Machine Learning] ์•™์ƒ๋ธ” ๊ธฐ๋ฒ•์ด๋ž€?

Ensemble ๊ธฐ๋ฒ• Ensemble Learning์ด๋ž€ ์—ฌ๋Ÿฌ๊ฐœ์˜ ๋ถ„๋ฅ˜๊ธฐ๋ฅผ ์ƒ์„ฑํ•˜๊ณ  ๊ทธ ์˜ˆ์ธก์„ ๊ฒฐํ•ฉํ•˜์—ฌ ๋ณด๋‹ค ์ •ํ™•ํ•œ ์˜ˆ์ธก์„ ๋‚ด๋Š” ๊ธฐ๋ฒ• ๊ฐ•๋ ฅํ•œ ํ•˜๋‚˜์˜ ๋ชจ๋ธ์„ ์‚ฌ์šฉํ•˜๋Š” ๋Œ€์‹  ๋ณด๋‹ค ์•ฝํ•œ ๋ชจ๋ธ์„ ์—ฌ๋Ÿฌ๊ฐœ ์กฐํ•ฉํ•˜๋Š” ๋ฐฉ์‹ Ensemble Learning ์ข…๋ฅ˜ ์•™์ƒ๋ธ” ํ•™์Šต์€ 3๊ฐ€์ง€ ์œ ํ˜•์œผ๋กœ ๋ถ„๋ฅ˜๋จ Voting Bagging Boosting Voting ์—ฌ๋Ÿฌ๊ฐœ์˜ classifier๊ฐ€ ํˆฌํ‘œ๋ฅผ ํ†ตํ•ด ์ตœ์ข… ์˜ˆ์ธก๊ฒฐ๊ณผ ๊ฒฐ์ • ์„œ๋กœ ๋‹ค๋ฅธ ์•Œ๊ณ ๋ฆฌ์ฆ˜ ์—ฌ๋Ÿฌ๊ฐœ ๊ฒฐํ•ฉํ•˜์—ฌ ์‚ฌ์šฉ Voting ๋ฐฉ์‹ Hard Voting : ๋‹ค์ˆ˜์˜ classifier๊ฐ€ ์˜ˆ์ธกํ•œ ๊ฒฐ๊ณผ๊ฐ’์„ ์ตœ์ข… ๊ฒฐ๊ณผ๋กœ ์„ ์ • (๋‹ค์ˆ˜๊ฒฐ์˜ ๋ฒ•์น™) Soft Voting : ๋ชจ๋“  classifier๊ฐ€ ์˜ˆ์ธกํ•œ label๊ฐ’์˜ ๊ฒฐ์ • ํ™•๋ฅ  ํ‰๊ท ์„ ๊ตฌํ•œ ๋’ค ๊ฐ€์žฅ ํ™•๋ฅ ์ด ๋†’์€ label๊ฐ’์„ ์ตœ์ข…๊ฒฐ๊ณผ๋กœ ์„ ..

[git] fatal: the remote end hung up unexpectedly ์˜ค๋ฅ˜ (ํ•ด๊ฒฐ๋ฐฉ๋ฒ• ํฌํ•จโ—โ—)

git push๋ฅผ ํ•˜๋Š”๋ฐ ๋‹ค์Œ๊ณผ ๊ฐ™์€ ์˜ค๋ฅ˜ ๋ฉ”์„ธ์ง€๋ฅผ ๋งž์ดํ–ˆ๋‹ค fatal: the remote end hung hup unexpectedly send-pack: unexpected disconnect while reading sideband packet (์ฐธ๊ณ ๋กœ ๋‚˜๋Š” Window ์œˆ๋„์šฐํ™˜๊ฒฝ์—, Git Bash๋ฅผ ์ด์šฉํ•˜๊ณ  ์žˆ๋‹ค.) ํ•ด๊ฒฐ๋ฐฉ๋ฒ•์€ ๋‹ค์Œ๊ณผ ๊ฐ™๋‹ค git config --local http.postBuffer 1024M git config --local http.maxRequestBuffer 1024M git config --local pack.deltaCacheSize 1024M git config --local pack.packSizeLimit 1024M git config --local pack...

[SQLD] SQLD ์œ ํšจ๊ธฐ๊ฐ„ ๋งŒ๋ฃŒ ๋ฉˆ์ถฐ!!!!!! (feat. ํ•ด๊ฒฐ๋ฐฉ๋ฒ•)

์–ผ๋งˆ์ „์— ์ž๊ฒฉ์ฆ ์ด์ˆ˜์ฆ์„ ์ถœ๋ ฅํ•˜๋Ÿฌ K data ํ™ˆํŽ˜์ด์ง€ ๋“ค์–ด๊ฐ”๋‹ค๊ฐ€ ์œ ํšจ๊ธฐ๊ฐ„ ๋งŒ๋ฃŒ๊ธฐ๊ฐ„์ด ์ง€๋‚˜๋ฒ„๋ ค์„œ ๋‚ด ์ž๊ฒฉ์ฆ ๋‚ ๋ผ๊ฐ„ ์ค„ ์•Œ๊ณ  ๊นœ์ง ๋†€๋ž๋‹ค ใ… ใ… ใ… ใ… ใ… ใ…  ์œ ํšจ๊ธฐ๊ฐ„์ด 2019.12.31 ~ 2021.12.30 (2๋…„) ์ด์—ˆ๋Š”๋ฐ ์ด๊ฑธ ํ™•์ธํ•œ ๋‚ ์€ 2022๋…„..์ด์—ˆ์‘ใ…... ๊ทธ๋ž˜์„œ ์•„ ์ง„์งœ ๋งŒ๋ฃŒ๋œ๊ฑด๊ฐ€ ํ–ˆ๋Š”๋ฐ ๋ณด์ˆ˜๊ต์œก์„ ๋“ค์œผ๋ฉด ๋˜๋”๋ผ !!!!!!!!!! ํ™ˆํŽ˜์ด์ง€ ๋“ค์–ด๊ฐ€์„œ ๋งˆ์ดํŽ˜์ด์ง€ ๋ˆ„๋ฅด๊ณ  ๋ณด์ˆ˜๊ต์œก ๋ˆ„๋ฅด๋ฉด ๊ฐ•์˜๊ฐ€ ํ•˜๋‚˜ ๋œฌ๋‹ค ๊ทธ๊ฑธ ๋‹ค ๋“ค์œผ๋ฉด ์œ ํšจ๊ธฐ๊ฐ„์ด ์•„๋ž˜์™€ ๊ฐ™์ด "์˜๊ตฌ"๋กœ ๋ฐ”๋€๋‹ค! ใ…Žใ…Ž ์ •๋ง์ด์ง€ ์‹œํ—˜ ํ•œ๋ฒˆ ๋” ๋ด์•ผ๋˜๋Š” ์ค„ ์•Œ๊ณ  ์Šฌํผํ–ˆ๋Š”๋ฐ ์‹ญ๋…„๊ฐ์ˆ˜ํ–ˆ๋‹ค ใ…Žใ…Ž (๊ฐ•์˜๋Š” 3์‹œ๊ฐ„? ์ •๋„์งœ๋ฆฌ ํ•˜๋‚˜๋ผ ๋ฌด๋‚œํ•˜๊ฒŒ ์ด์ˆ˜๊ฐ€๋Šฅํ•˜์„ธ์š”~)

Computer Science 2022.04.27

[CNN] CNN feature map๊ณผ filter ์‹œ๊ฐํ™”

๋ชฉ์  : CNN layer๋“ค ์ค‘๊ฐ„์ค‘๊ฐ„ ์ถ”์ถœ๋˜๋Š” feature๋“ค์„ ์‹œ๊ฐํ™”ํ•ด๋ณด๋ฉด์„œ layer๋ฅผ ๊ฑฐ์น˜๋ฉด์„œ ์–ด๋– ํ•œ ๋ณ€ํ™”๊ฐ€ ์ผ์–ด๋‚˜๋Š”์ง€ ์•Œ์•„๋ณธ๋‹ค. CNN architecture ๋“ค์–ด๊ฐ€๊ธฐ์ „์—, CNN์„ ์ดํ•ดํ•˜๊ธฐ ์œ„ํ•ด ๊ผญ ํ•„์š”ํ•œ ์ •๋ณด๋“ค์— ๋Œ€ํ•ด์„œ ์ •๋ฆฌํ•ด๋ณธ๋‹ค. 1. input image์— ์šฐ๋ฆฌ๋Š” filter(=mask=kernel)๋ฅผ ์ ์šฉํ•˜์—ฌ feature map์„ ์ƒ์„ฑํ•œ๋‹ค. ์ด๋•Œ filter๋Š” ์ด๋ฏธ์ง€๊ฐ€ ๊ฐ€์ง€๊ณ  ์žˆ๋Š” edge, vertical line, horizontal line, bends์™€ ๊ฐ™์€ ์—ฌ๋Ÿฌ feature๋“ค์„ ๋‚˜ํƒ€๋‚ด์ฃผ๋„๋ก ๋„์™€์ค€๋‹ค. 2. ์ƒ์„ฑ๋œ feature map์— pooling์„ ์ ์šฉํ•œ๋‹ค. min, avg, max pooling๋“ฑ์„ ์“ธ ์ˆ˜ ์žˆ๊ณ , ๊ทธ ์ค‘์—์„œ max pooling์„ ์‚ฌ์šฉํ–ˆ์„ ๋•Œ ์„ฑ๋Šฅํ–ฅ์ƒ์„ ..

728x90
๋ฐ˜์‘ํ˜•