๐Ÿ Python

[python]Colab

yeun.log 2024. 5. 22. 00:13
๋ฐ˜์‘ํ˜•
Colab

 

๊ตฌ๊ธ€ ๋กœ๊ทธ์ธ ํ›„ colab ๊ฒ€์ƒ‰
ํŒŒ์ผ-์ƒˆ ๋…ธํŠธ

์‹คํ–‰ : Shfit + Enter


 

ํšŒ๊ท€ ํ”„๋กœ๊ทธ๋žจ ๋งŒ๋“ค๊ธฐ

๊ณต๋ถ€ํ•œ ์‹œ๊ฐ„ ๋Œ€๋น„ ๋ช‡์ ์ด ๋‚˜์˜ค๋Š” ์ง€ ์˜ˆ์ธกํ•˜๋Š” ์„ ํ˜• ํšŒ๊ท€ ํ”„๋กœ๊ทธ๋žจ ๋งŒ๋“ค์–ด ๋ณด๊ธฐ

 

 

from scipy import stats

x = [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 + intercept

learning_time = int(input('์˜ˆ์ธกํ•˜๊ณ  ์‹ถ์€ ๊ณต๋ถ€์‹œ๊ฐ„์„ ์ž…๋ ฅํ•˜์„ธ์š”:'))

score = score_predict(learning_time)

print(score)

 

 

๋ฐ˜์‘ํ˜•

'๐Ÿ Python' ์นดํ…Œ๊ณ ๋ฆฌ์˜ ๋‹ค๋ฅธ ๊ธ€

[Python]Data science  (0) 2024.05.28
[Python]๋”ฅ๋Ÿฌ๋‹ ์˜ˆ์ œ์‹ค์Šต  (0) 2024.05.22
[Python]์ธ๊ณต์ง€๋Šฅ Artificial Inteligence  (0) 2024.05.21
์˜ˆ์ œํ’€์ด4  (0) 2024.05.19
[Python]Module  (0) 2024.05.12