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



1
2
3
4
5
6
7
8
9
10
11
12
#
# µû¶óÇϸ砹è¿ì´Â ÆÄÀ̽ã°ú µ¥ÀÌÅÍ°úÇÐ(»ý´ÉÃâÆÇ»ç 2020)
# 14.17 k-NN ¾Ë°í¸®ÁòÀ» Àû¿ëÇÒ µ¥ÀÌÅ͸¦ »ìÆ캸ÀÚ, 387ÂÊ
#
from sklearn.datasets import load_iris 
iris = load_iris() 
 
print(iris.feature_names) # 4°³ÀǠƯ¡ À̸§À» Ãâ·ÂÇÑ´Ù.
 
# Á¤¼ö´Â ²ÉÀÇ Á¾·ù¸¦ ³ªÅ¸³½´Ù.: 0 = setosa, 1=versicolor, 2=virginica 
print(iris.target)
print(iris.target.shape)
cs

  µî·ÏÀÏ : 2022-12-06 [02:10] Á¶È¸ : 273 ´Ù¿î : 0   
 
¡â ÀÌÀü±Ûcode_14_18.py (±³Àç)
¡ä ´ÙÀ½±Ûcode_14_16.py (±³Àç)
Python for AI ½Ç½À°Ô½ÃÆÇ
¹øÈ£ ¨Ï Á¦ ¸ñ Á¶È¸ µî·ÏÀÏ
lAnaconda3 ¼³Ä¡
lColabTurtlePlus
l½Ç½À ¸ñ·Ï
lColab ½Ç½À
l½Ç½À ½Ã ÇлýµéÀÌ ÀÚÁÖÇÏ´Â ½Ç¼ö ¿¹µé
361    ¦¦❷ lcode_14_22_1.py (±³Àç) 376 12-06
360 ¦¦❶ lcode_14_20.py (±³Àç) 309 12-06
359 ¦¦❶ lcode_14_19.py (±³Àç) 273 12-06
358 ¦¦❶ lcode_14_18.py (±³Àç) 273 12-06
357 ¦¦❶ lcode_14_17.py (±³Àç) 273 12-06
356 ¦¦❶ lcode_14_16.py (±³Àç) 270 12-06
355 ¦¦❶ lcode_14_13.py (±³Àç) 266 12-06
354 ¦¦❶ llab_14_2.py (±³Àç) 313 12-06
353 ¦¦❶ lcode_14_12.py (±³Àç) 293 12-06
352 ¦¦❶ lcode_14_10_2.py (±³Àç) 258 12-06
351 ¦¦❶ lcode_14_10_1.py (±³Àç) 292 12-06
350 ¦¦❶ lcode_14_9.py (±³Àç) 283 12-06
349 ¦¦❶ llab_14_1.py (±³Àç) 292 12-06
348 ¦¦❶ lcode_14_8.py (±³Àç) 303 12-06
347 ¦¦❶ lcode_14_7.py (±³Àç) 317 12-06
346 (13Àå) ½Ã°¢ Á¤º¸¸¦ ´Ù·ç¾îº¸ÀÚ 454 02-19
345 ¦¦❶ lch13.ipynb (¿¹Á¦ Àüü) 587 03-01
344 (12Àå) ÆÇ´Ù½º·Î µ¥ÀÌÅ͸¦ ºÐ¼®Çغ¸ÀÚ 743 02-19
343 ¦¦❶ lch12.ipynb (¿¹Á¦ Àüü) 650 03-01
342 ¦¦❶ lcode_12_23.py (±³Àç) 550 02-21

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