๐Ÿ Python 41

[python]Colab

Colab ์‹คํ–‰ : Shfit + Enter ํšŒ๊ท€ ํ”„๋กœ๊ทธ๋žจ ๋งŒ๋“ค๊ธฐ  from scipy import statsx = [2, 3, 4, 5, 9, 10]y = [30, 50, 60, 65, 80, 90]slope, intercept, r, p , std_err = stats.linregress(x, y)def score_predict(a): return slope * a + interceptlearning_time = int(input('์˜ˆ์ธกํ•˜๊ณ  ์‹ถ์€ ๊ณต๋ถ€์‹œ๊ฐ„์„ ์ž…๋ ฅํ•˜์„ธ์š”:'))score = score_predict(learning_time)print(score)

๐Ÿ Python 2024.05.22

[Python]์ธ๊ณต์ง€๋Šฅ Artificial Inteligence

์ธ๊ณต์ง€๋Šฅ Artificial Inteligence: ์ธ๊ฐ„์ด ๊ฐ€์ง„ ์ง€์  ๋Šฅ๋ ฅ(ํ•™์Šต, ์ถ”๋ก , ์ง€๊ฐ, ์ž์—ฐ์–ธ์–ด ์ดํ•ด ๋Šฅ๋ ฅ)์„์ปดํ“จํ„ฐ๋กœ ๊ตฌํ˜„ํ•˜๋Š” ๋ฐฉ๋ฒ•๋ก   ์ข…๋ฅ˜๋Š” Machine Learning๊ณผ Deep Learning์ด ์žˆ๋‹ค.Machine Learning์€ Deep Learning์„ ํฌํ•จํ•œ ๊ฐœ๋…์ด๋‹ค.Machine Learning ๋ฐ์ดํ„ฐ๋ฅผ ํ†ตํ•ด ํ•™์Šตํ•˜๊ณ  ์˜ˆ์ธกํ•˜๋Š” ํ•™์Šตํ•˜๋Š” ๋ฐฉ์‹์„ ๋ชจ๋ฐฉํ•œ๋‹ค.์Šค์Šค๋กœ ์„ฑ๋Šฅ์„ ํ–ฅ์ƒํ•˜๋Š” ์•Œ๊ณ ๋ฆฌ์ฆ˜๊ณผ ๊ธฐ์ˆ ์„ ๊ฐœ๋ฐœ. Machine Learning Argorythim์œผ๋กœ 3๊ฐ€์ง€ ์ข…๋ฅ˜๊ฐ€ ์žˆ๋‹ค.์ง€๋„ํ•™์Šต: ๋ฌธ์ œ์™€ ์ •๋‹ต์„ ๋ชจ๋‘ ์•Œ๋ ค์ค€๋‹ค.๋น„์ง€๋„ ํ•™์Šต: ๋‹ต์„ ์•Œ๋ ค์ฃผ์ง€ ์•Š๊ณ  ๊ณต๋ถ€์‹œํ‚จ๋‹ค. ๋ถ„๋ฅ˜์‹œ ๋งŽ์ด ์‚ฌ์šฉ.๊ฐ•ํ™”ํ•™์Šต: ๋ณด์ƒ์„ ํ†ตํ•ด(๊ฒŒ์ž„์ฒ˜๋Ÿผ ์•„์ดํ…œ์„ ์ฃผ๋“ฏ์ด) ์ƒ์€ ์ตœ๋Œ€ํ™”, ๋ฒŒ์€ ์ตœ์†Œํ™”ํ•˜๋Š” ๋ฐฉ์‹.Deep Learnin..

๐Ÿ Python 2024.05.21

[Python]Module

Module ๋ณ€์ˆ˜, ํ•จ์ˆ˜, ํด๋ž˜์Šค ๋˜๋Š” ์‹คํ–‰ ์ฝ”๋“œ๋“ค์„ ๋ชจ์•„์„œ ๊ฐ„๋‹จํ•œ ๊ธฐ๋Šฅ์„ ๋‹ด์•„ ๋†“๋Š” sciprt file.py ํŒŒ์ผ  3 ์ข…๋ฅ˜๋‚ด์žฅ๋ชจ๋“ˆ: Python์—์„œ ์ œ๊ณตex) turle, time, random...์‚ฌ์šฉ์ž ์ •์˜๋ชจ๋“ˆ: ์ง์ ‘ ๋งŒ๋“ค์–ด ์‚ฌ์šฉ3rd Party: ์—…์ฒด์—์„œ ์ œ๊ณตPython์—๋Š” ๋‹ค์–‘ํ•œ module์ด ์žˆ๊ธฐ ๋•Œ๋ฌธ์—์ง์ ‘ ๋งŒ๋“ค๊ธฐ ์ „์— ํ‘œ์ค€ module๋˜๋Š” ์ด๋ฏธ ๋งŒ๋“ค์–ด์ง„ ๊ฒŒ ์žˆ๋Š” ์ง€ ํ™•์ธํ•˜๊ธฐ!  ํ˜ธ์ถœimportimport ๋ชจ๋“ˆ๋ช… as ๋ณ„์นญ: ๋ณ„์นญ ์‚ฌ์šฉํ•ด ํ˜ธ์ถœfrom ๋ชจ๋“ˆ๋ช… import ํ•จ์ˆ˜๋ช…: ์›ํ•˜๋Š” ํ•จ์ˆ˜๋งŒ ํ˜ธ์ถœํ•ด ๋ฐ”๋กœ ์‚ฌ์šฉ  ํ‘œ์ค€ ๋ชจ๋“ˆ Open Module: ๋ชจ๋“ˆ ํŒŒ์ผ ํ™•์ธํ•˜๊ธฐ์˜ˆ์ œ

๐Ÿ Python 2024.05.12

[Python]Set

Set์ง‘ํ•ฉ๋ฐ์ดํ„ฐ์˜ ์ค‘๋ณต์„ ํ—ˆ์šฉํ•˜์ง€ ์•Š๋Š”๋‹ค.key๋งŒ ๋ชจ์•„๋†“์€ dictionary์˜ ํŠน์ˆ˜ํ•œ ํ˜•ํƒœ.key๋Š” ์ค‘๋ณต์ด ์•ˆ๋˜๋Š” ์ ์„ ์ด์šฉํ•œ ๊ฒƒ.์ˆœ์„œ๊ฐ€ ์—†๋‹ค.๋”ฐ๋ผ์„œ ๋ฐ์ดํ„ฐ ๋„ฃ์€ ์ˆœ์„œ๋Œ€๋กœ ์•ˆ ๋‚˜์˜ด์ง‘ํ•ฉ ์—ฐ์‚ฐ ์˜ˆ์ œ์‹ค์Šต

๐Ÿ Python 2024.05.12

[Python]Tuple

Tuple์ˆœ์„œํ˜• ์ž๋ฃŒ์ˆ˜์ • ๋ถˆ๊ฐ€๋Šฅ์ถ”๊ฐ€, ๋ณ€๊ฒฝ, ์‚ญ์ œ ๋ชจ๋‘ ์•ˆ ๋จ.๋”ฐ๋ผ์„œ ์ˆ˜์ •ํ•˜๋ฉด ์•ˆ๋˜๋Š” ๋ฐ์ดํ„ฐ๋ฅผ ์ €์žฅํ•  ๋•Œ ์‚ฌ์šฉํ•œ๋‹ค์‚ฌ์šฉ๋ฒ•ํ™œ์šฉ๋ฒ•์€ List์™€ ๋™์ผํ•˜๋‹ค.๋‹ค๋งŒ ์ˆ˜์ •์ด ์•ˆ๋  ๋ฟ.

๐Ÿ Python 2024.05.12