๋ฐ์ํ
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 |