๐Ÿ’ป Dev 7

ํ…์ŠคํŠธ ๊ฐ์ • ์ธ์‹ ๋ชจ๋ธ ํŒŒ์ธํŠœ๋‹

1๏ธโƒฃ ๋ชจ๋ธ ์„ ์ • - RoBERTa๋จผ์ € ํ…์ŠคํŠธ ๊ฐ์ • ์ธ์‹์— ์‚ฌ์šฉ๋˜๋Š” ๋‹ค์–‘ํ•œ ๋ชจ๋ธ ์ค‘ ํ•˜๋‚˜๋ฅผ ์„ ์ •ํ•˜๊ธฐ ์œ„ํ•ด XLnet, ELECTRA, BERT, RoBERTa๋ฅผ ๋Œ€์ƒ์œผ๋กœ ๋™์ผํ•œ ์กฐ๊ฑด ํ•˜์— ์ •ํ™•๋„๋ฅผ ์‹คํ—˜ํ–ˆ๋‹ค. ์ด ์ค‘ RoBERTa๊ฐ€ ๊ฐ€์žฅ ๋†’์€ ์„ฑ๋Šฅ์„ ๋ณด์˜€๊ธฐ์— RoBERTa๋ฅผ ์ฑ„ํƒํ•ด ํŒŒ์ธํŠœ๋‹์„ ํ•˜๊ธฐ๋กœ ๊ฒฐ์ •ํ–ˆ๊ณ , ์ด๋Š” ์„ ํ–‰์—ฐ๊ตฌ์™€ ๋™์ผํ•œ ๊ฒฐ๊ณผ์˜€๋‹ค.Comparative analyses of bert, roberta, distilbert, and xlnet for text-based emotion recognition (IEEE ICCWAMTIP'20)Exploring transformers models for emotion recognition: A comparision of BERT, DistilBERT, Ro..

๐Ÿ’ป Dev 2024.05.21

01. ์ •๋ ฌ

๐Ÿ“์ •๋ ฌ์ด๋ž€? ๋ ˆ์ฝ”๋“œ(record)๋ฅผ ์˜ค๋ฆ„์ฐจ์ˆœ ๋˜๋Š” ๋‚ด๋ฆผ์ฐจ์ˆœ์œผ๋กœ ๋‚˜์—ดํ•˜๋Š” ๊ฒƒ. ๋ ˆ์ฝ”๋“œ(record) : ํ•„๋“œ(field)๋ผ๋Š” ๋‹จ์œ„๋กœ ๊ตฌ์„ฑ๋จ. - ํ‚ค(key) ํ•„๋“œ๋กœ ๋ ˆ์ฝ”๋“œ ๊ฐ„์— ๊ตฌ๋ณ„์ด ๊ฐ€๋Šฅํ•จ. +) ์ •๋ ฌ ์•Œ๊ณ ๋ฆฌ์ฆ˜์˜ ์•ˆ์ •์„ฑ(stability) ๋™์ผํ•œ ํ‚ค ๊ฐ’์„ ๊ฐ–๋Š” ๋ ˆ์ฝ”๋“œ๋“ค์˜ ์ƒ๋Œ€์ ์ธ ์œ„์น˜๊ฐ€ ์ •๋ ฌ ํ›„์—๋„ ๋ฐ”๋€Œ์ง€ ์•Š์Œ. ๋Œ€ํ‘œ์ ์ธ ์ •๋ ฌ ์•Œ๊ณ ๋ฆฌ์ฆ˜ O(n²) : ์„ ํƒ ์ •๋ ฌ, ์‚ฝ์ž… ์ •๋ ฌ, ๋ฒ„๋ธ” ์ •๋ ฌ → ๋‹จ์ˆœํ•˜์ง€๋งŒ ๋น„ํšจ์œจ์  O(nlogn) : ํ•ฉ๋ณ‘ ์ •๋ ฌ, ํ€ต ์ •๋ ฌ, ํž™ ์ •๋ ฌ → ๋น„๊ต์  ๋ณต์žกํ•˜์ง€๋งŒ ํšจ์œจ์  (์˜ค๋ฆ„์ฐจ์ˆœ ์ •๋ ฌ์ด๋ผ ๊ฐ€์ •ํ•˜๊ณ  ์„ค๋ช…ํ•ฉ๋‹ˆ๋‹ค) ๐Ÿ“ O(n²) # ์„ ํƒ ์ •๋ ฌ : ์ •๋ ฌ๋œ ์™ผ์ชฝ ๋ฆฌ์ŠคํŠธ(์ดˆ๊ธฐ์—๋Š” ๋น„์–ด์žˆ๋Š” ์ƒํƒœ)์™€ ์ •๋ ฌ๋˜์ง€ ์•Š์€ ์˜ค๋ฅธ์ชฝ ๋ฆฌ์ŠคํŠธ๋ฅผ ๊ฐ€์ •ํ•˜๊ณ , ์˜ค๋ฅธ์ชฝ ๋ฆฌ์ŠคํŠธ์—์„œ ๊ฐ€์žฅ ์ž‘์€ ๊ฐ’์„ ํ˜„์žฌ ์ธ๋ฑ์Šค์— ๋“ค์–ด์žˆ๋Š” ๊ฐ’..

[react] ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ ์—†์ด ๋ฌดํ•œ ์Šฌ๋ผ์ด๋“œ ์‡ผ ๊ตฌํ˜„ํ•˜๊ธฐ

์ž…๋ง›๋Œ€๋กœ ์Šฌ๋ผ์ด๋“œ ์‡ผ๋ฅผ ๊ตฌํ˜„ํ•˜๋ ค๋‹ค 3์ผ๊ฐ„ ์Œฉ์‡ผํ•œ ๋์— ์–ป์–ด๋‚ธ ์ฝ”๋“œ๋ฅผ ์ž๋ž‘ํ•˜๋Ÿฌ ์™”๋‹ค! ๋•๋ถ„์— ๋ฆฌ์•กํŠธ ๊ณต๋ถ€์— ์•„์ฃผ ํฐ ๋„์›€์ด ๋˜์—ˆ๋Š”๋ฐ, ์ฝ”๋“œ ๋˜ํ•œ ๋‚ด ์ž…๋ง›๋Œ€๋กœ์ด๋ฏ€๋กœ ํ˜น์—ฌ ์ง€์ €๋ถ„ํ•˜๋‹ค๊ณ  ๋Š๋ผ์‹ ๋‹ค๋ฉด ์ทจํ–ฅ ์ฐจ์ด๋‹ค!! ๋†๋‹ด์ž…๋‹ˆ๋‹ค ํ”ผ๋“œ๋ฐฑ ํ™˜์˜ํ•ฉ๋‹ˆ๋‹ค๐Ÿค—๐Ÿค— + ์—ฌ๋Ÿฌ ๋ถ„๋“ค๊ป˜์„œ ์ž‘์„ฑํ•ด ์ฃผ์‹  ๋ฌดํ•œ ์Šฌ๋ผ์ด๋“œ ์‡ผ ๊ธ€์„ ์ฐธ๊ณ ํ•ด ๊ณต๋ถ€ํ•˜๊ณ  ์ •๋ฆฌํ–ˆ์Šต๋‹ˆ๋‹ค โ˜๐Ÿป ๋ฌดํ•œ ์Šฌ๋ผ์ด๋“œ ์‡ผ ์›๋ฆฌ ๋จผ์ € ์›๋ฆฌ๋ฅผ ์•Œ์•„๋ณด์ž. ์•„๋ž˜์™€ ๊ฐ™์ด ์Šฌ๋ผ์ด๋“œ ์‡ผ๋กœ ๋ณด์—ฌ์ค„ ์ด๋ฏธ์ง€ 4์žฅ์„ ๊ฐ€๋กœ๋กœ ์ด์–ด ๋ถ™์ธ ๋ฐฐ์—ด์„ ๋งŒ๋“ค์–ด ์ค€๋‹ค. import bg1 from "../img/1.jpg"; import bg2 from "../img/2.jpg"; import bg3 from "../img/3.jpg"; import bg4 from "../img/4.jpg"; /* bg img Arr..

[vscode] VScode ํŒŒ์ด์ฌ ํ”Œ๋ผ์Šคํฌ ๊ฐœ๋ฐœํ™˜๊ฒฝ ๊ตฌ์ถ•ํ•˜๊ธฐ

๋‚˜๋Š” ํŒŒ์ด์ฌ๋„ ์—†๋Š”๋ฐ.. ๋‹ค๋“ค ํ”Œ๋ผ์Šคํฌ ์„ค์น˜๋ถ€ํ„ฐ ํ•˜์…”์„œ ๋‚ด๊ฐ€ ๊ตฌ์ถ•ํ•˜๋ฉด์„œ ์ •๋ฆฌ๋ฅผ ํ•ด๋ณด์•˜๋‹ค! 1. ํŒŒ์ด์ฌ ์„ค์น˜ https://www.python.org/downloads/ Download Python The official home of the Python Programming Language www.python.org ์œ„ ๋งํฌ๋กœ ๋“ค์–ด๊ฐ€ ์ตœ์‹ ๋ฒ„์ „ ํŒŒ์ด์ฌ์„ ๋‹ค์šด ๋ฐ›๋Š”๋‹ค. ์ด๋•Œ "Add Python 3.7 to PATH" ์˜ต์…˜ ๊ผญ ์„ ํƒํ•˜๊ธฐ ! ์ž˜ ์„ค์น˜ ๋˜์—ˆ์œผ๋ฉด cmd์ฐฝ์—์„œ "pip" ์ž…๋ ฅ ์‹œ ์•„๋ž˜์™€ ๊ฐ™์€ ๊ฒฐ๊ณผ๊ฐ€ ์ฐํžŒ๋‹ค. pip ๋งฅ OS์ผ ๊ฒฝ์šฐ "pip3"๋ฅผ ์‚ฌ์šฉํ•œ๋‹ค. pip3 2. VScode extension์—์„œ python์ด๋ž‘ flask-snippets ์„ค์น˜ VScode ์ฐฝ์„ ์—ด๊ณ  ์ขŒ์ธก ์ƒ๋‹จ extensio..

[vscode] VScode์— Prettier ๊น”๊ณ  ์ ์šฉํ•˜๊ธฐ

Visual Studio Code๋ฅผ ์ด์šฉํ•˜๋Š” ๋…ธ๋งˆ๋“œ์ฝ”๋” ํด๋ก  ์ฝ”๋”ฉ ๊ฐ•์˜์—์„œ ๋‹ˆ๊ผฌ์Œค์ด ์ถ”์ฒœํ•˜๋Š” ์ฝ”๋“œ ์ˆ˜์ •๊ธฐ(?)๊ฐ€ ์žˆ๋‹ค. ์ด๋ฆ„์€ Prettier. ์ด ์นœ๊ตฌ๋‹ค. Visual Studio Code ์ขŒ์ธก์—์„œ ๋ธ”๋ก ๋„ค๊ฐœ๋กœ ๋œ ์•„์ด์ฝ˜ ๋”ฑ ๋ด๋„ ์•ฑ์Šคํ† ์–ด์ฒ˜๋Ÿผ ์ƒ๊ธด ๊ฒƒ์„ ํด๋ฆญํ•˜๊ณ  Prettier ๋ผ๊ณ  ๊ฒ€์ƒ‰ํ•˜๋ฉด ๋‚˜์˜จ๋‹ค. ๊ฑฐ๊ธฐ์„œ install ํด๋ฆญํ•ด์„œ ๋‹ค์šด ๋ฐ›๊ธฐ. ์ด๊ฑธ ์ ์šฉํ•˜๋ ค๋ฉด ๋‘๊ฐ€์ง€ ์„ค์ •์ด ์•„๋ž˜์™€ ๊ฐ™์ด ๋˜์–ด์žˆ์–ด์•ผ ํ•œ๋‹ค. (์ฒซ๋ฒˆ์งธ๋งŒ ์„ค์ •๋งŒ ํ•ด์„œ ์ ์šฉ๋˜๋Š” ๊ฒฝ์šฐ๋„ ์žˆ๊ณ , ๋‘๋ฒˆ์งธ ์„ค์ •๊นŒ์ง€ ํ•ด์•ผ ์ ์šฉ๋˜๋Š” ๊ฒฝ์šฐ๋„ ์žˆ๋Š” ๋“ฏ) 1. ์ขŒ์ธก ํ•˜๋‹จ ์„ค์ • ์•„์ด์ฝ˜ > settings > editor ๊ฒ€์ƒ‰ > format on save ํ™œ์„ฑํ™” 2. default formatter ๊ฒ€์ƒ‰ > esbenp.prettier-vscode ์„ ํƒ ์œ„ ๋‘ ๊ฐ€..

[html/css] HTML, CSS, JS ๋ž€?

HTML: HyperText Markup Language ์›น๋ธŒ๋ผ์šฐ์ €์—๊ฒŒ ๋ณด์—ฌ์ฃผ๋Š” contents์™€ links์˜ ๋ชจ์Œ. ์•„๋ž˜์™€ ๊ฐ™์€ ๊ตฌ์กฐ๋‹ค. ๋‚ด์šฉ //ํ•„์ˆ˜, HTMLํŒŒ์ผ์ž„์„ ๋‚˜ํƒ€๋ƒ„. // ์„ค์ •๋ถ€๋ถ„, ๊ฒ€์ƒ‰์—”์ง„์„ ์œ„ํ•ด ์ž‘์„ฑ, invisible. // visible. CSS: Cascading Style Sheets HTML์˜ ๋””์ž์ธ์„ ๋‹ด๋‹นํ•˜๋Š” ๊ฒƒ์œผ๋กœ, HTML๊ณผ ํ•จ๊ป˜ ์‚ฌ์šฉํ•ด์•ผํ•œ๋‹ค. cascading, ์ฆ‰ ์œ„์—์„œ ์•„๋ž˜์˜ ์ˆœ์„œ๋Œ€๋กœ ์ ์šฉ์ด ๋œ๋‹ค. ์ฝ”๋“œ์˜ ์ˆœ์„œ๊ฐ€ ์˜ํ–ฅ์„ ๋ฏธ์นœ๋‹ค๋Š” ๋ง! 1) inline์œผ๋กœ HTML๋‚ด์— ์ž‘์„ฑํ•˜๊ธฐ 2) external๋กœ ์ž‘์„ฑํ•˜๊ธฐ - ์ด ๋ฐฉ๋ฒ•์„ ์ถ”์ฒœํ•œ๋‹ค (1๋ฒˆ์€ html ์ฝ”๋“œ ํŒŒ์ผ์ด ๋„ˆ๋ฌด ๊ธธ์–ด์ง€๊ธฐ ๋•Œ๋ฌธ!) CSSํŒŒ์ผ์€ ์•„๋ž˜์™€ ๊ฐ™์€ ๊ตฌ์กฐ๋‹ค. selector { attribute: value;..

๊นƒํ—ˆ๋ธŒ ๋ ˆํŒŒ์ง€ํ† ๋ฆฌ(repository) ๋ฐ ๋ธŒ๋žœ์น˜ (branch) ํด๋ก ํ•˜๊ธฐ

ํšŒ์›๊ฐ€์ž…์— ๋ ˆํŒŒ์ง€ํ† ๋ฆฌ ์ƒ์„ฑ๊นŒ์ง€๋Š” ์‰ฌ์›Œ์„œ ํ˜ธ๋กœ๋ก ํ–ˆ๋Š”๋ฐ ํด๋ก  ํ•˜๋‚˜๋กœ ํ˜น๋…ํ•œ ๊ตฌ๊ธ€๋ง์˜ ๊ณผ์ •์„ ๊ฑฐ์ณค๋‹ค... ๊ทธ๋ ‡๊ฒŒ ์–ป์–ด๋‚ธ ์ž๋ž‘์Šค๋Ÿฌ์šด ๊ฒฐ๊ณผ๋ฌผ์„ ๊ณต์œ ํ•˜๊ฒ ์Œ! ๊นƒํ—ˆ๋ธŒ ํšŒ์›๊ฐ€์ž…, github desktop ๋‹ค์šด๋กœ๋“œ, ๋ ˆํŒŒ์ง€ํ† ๋ฆฌ ๋ฐ ๋ธŒ๋žœ์น˜๊ฐ€ ์ƒ์„ฑ ์™„๋ฃŒ๋œ ์ƒํƒœ๋ผ๋Š” ๊ฐ€์ • ํ•˜์— ... 1. ๋ ˆํŒŒ์ง€ํ† ๋ฆฌ(repository) ํด๋ก ํ•˜๋Š” ๋ฒ•! ์ด๊ฑด github desktop์—์„œ ์‰ฝ๊ฒŒ ํ•  ์ˆ˜ ์žˆ๋Š”๋ฐ, ํด๋ก ํ•œ๊ฒŒ ํ•˜๋‚˜๋„ ์—†๋Š” ์ƒํƒœ๋ผ๋ฉด clone repository๋ฅผ ๋ฐ”๋กœ ์„ ํƒํ•  ์ˆ˜ ์žˆ๋„๋ก ๋œฌ๋‹ค. ์—†๋‹ค๋ฉด file > clone repository ๋ฅผ ์ด์šฉํ•˜๋ฉด git ์— ์˜ฌ๋ ค๋‘” repository๊ฐ€ ๋ชจ๋‘ ๋œจ๊ธฐ ๋•Œ๋ฌธ์— ์•„์ฃผ ์‰ฝ๊ณ  ๋น ๋ฅด๊ฒŒ ํ•  ์ˆ˜ ์žˆ์Œ. ๋‹ค๋งŒ ์—ฌ๊ธฐ์„œ ๋ฌธ์ œ์ ์€ ์ด๋ ‡๊ฒŒ ํ•  ๊ฒฝ์šฐ main branch ์˜ ๋‚ด์šฉ๋งŒ ํด๋ก ์ด ๋œ๋‹ค๋Š” ์ ์ด๋‹ค...