Á¤¼ºÈÆ
    lab_14_1.py (±³Àç)
  http://itsys.hansung.ac.kr/cgi-bin/onlineTest/viewpy4AI/onlinePy4AI.cgi?source=src/py/Ch14/lab_14_1.py



1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#
# µû¶óÇϸ砹è¿ì´Â ÆÄÀ̽ã°ú µ¥ÀÌÅÍ°úÇÐ(»ý´ÉÃâÆÇ»ç 2020)
# LAB 14-1 Å°°¡ ºñ½ÁÇصµ ³²,³àÀÇ ¸ö¹«°Ô´Â ´Ù¸¦ °Í : ´ÙÂ÷¿ø ¼±Çüȸ±Í, 376ÂÊ
#
import numpy as np 
from sklearn import linear_model 
 
regr = linear_model.LinearRegression() 
 
# ³²Àڴ 0, ¿©Àڴ 1À» ³Ö¾î Â÷¿øÀ» Ãß°¡ÇÏ¿´À½
# ÀԷµ¥ÀÌÅ͸¦ 2Â÷¿øÀ¸·Î ¸¸µé¾î¾ß ÇÔ 
= [[1641],[1671],[1650],[1700],[1790],[1631],[1590],[1661]]             
= [4348476667505244]     # y °ªÀº 1Â÷¿ø µ¥ÀÌÅÍ
regr.fit(X, y)         # ÇнÀ 
print('°è¼ö :', regr.coef_ )
print('ÀýÆí :', regr.intercept_)
print('Á¡¼ö :', regr.score(X, y))
print('ÀºÁö¿Í µ¿¹ÎÀÌÀÇ ÃßÁ¤ ¸ö¹«°Ô :', regr.predict([[1661], [1660]]))
cs

  µî·ÏÀÏ : 2022-12-06 [00:48] Á¶È¸ : 275 ´Ù¿î : 0   
 
¡â ÀÌÀü±Ûcode_14_9.py (±³Àç)
¡ä ´ÙÀ½±Ûcode_14_8.py (±³Àç)
Python for AI ½Ç½À°Ô½ÃÆÇ
¹øÈ£ ¨Ï Á¦ ¸ñ Á¶È¸ µî·ÏÀÏ
lAnaconda3 ¼³Ä¡
lColabTurtlePlus
l½Ç½À ¸ñ·Ï
lColab ½Ç½À
l½Ç½À ½Ã ÇлýµéÀÌ ÀÚÁÖÇÏ´Â ½Ç¼ö ¿¹µé
361    ¦¦❷ lcode_14_22_1.py (±³Àç) 362 12-06
360 ¦¦❶ lcode_14_20.py (±³Àç) 302 12-06
359 ¦¦❶ lcode_14_19.py (±³Àç) 264 12-06
358 ¦¦❶ lcode_14_18.py (±³Àç) 263 12-06
357 ¦¦❶ lcode_14_17.py (±³Àç) 265 12-06
356 ¦¦❶ lcode_14_16.py (±³Àç) 262 12-06
355 ¦¦❶ lcode_14_13.py (±³Àç) 257 12-06
354 ¦¦❶ llab_14_2.py (±³Àç) 298 12-06
353 ¦¦❶ lcode_14_12.py (±³Àç) 287 12-06
352 ¦¦❶ lcode_14_10_2.py (±³Àç) 251 12-06
351 ¦¦❶ lcode_14_10_1.py (±³Àç) 277 12-06
350 ¦¦❶ lcode_14_9.py (±³Àç) 267 12-06
349 ¦¦❶ llab_14_1.py (±³Àç) 275 12-06
348 ¦¦❶ lcode_14_8.py (±³Àç) 293 12-06
347 ¦¦❶ lcode_14_7.py (±³Àç) 307 12-06
346 (13Àå) ½Ã°¢ Á¤º¸¸¦ ´Ù·ç¾îº¸ÀÚ 447 02-19
345 ¦¦❶ lch13.ipynb (¿¹Á¦ Àüü) 570 03-01
344 (12Àå) ÆÇ´Ù½º·Î µ¥ÀÌÅ͸¦ ºÐ¼®Çغ¸ÀÚ 718 02-19
343 ¦¦❶ lch12.ipynb (¿¹Á¦ Àüü) 637 03-01
342 ¦¦❶ lcode_12_23.py (±³Àç) 525 02-21

[1][2][3][4][5][6][7][8][9][10]-[Next][20]