æã
趣å³ãä»äºã§ã»ã³ãµãã¼ã¿ãæ±ããã¨ãããã®ã§, å
æ¥('24/11)çºå£²ããããã»ã³ãµã¨æ©æ¢°å¦ç¿ã§ã¯ããã人éè¡åèªèãã¨ããæ¸ç±ã«å°ãèå³ãããè³¼å
¥ãã¦ã¿ã.
ã»ã³ãµãã¼ã¿ã«ãã人éè¡åèªèãæ±ã£ã¦ããæ¸ç±ã¯ããã¾ã§ã«ãªãã£ã(ç¥ããªãã ããã)ããã«æãã®ã§, ã»ã³ãµãã¼ã¿å¦çã人éã®åä½èªèã«èå³ã®ããåå¦è
ã®æ¹ã«ã¯ãã¹ã¹ã¡ã§ã.
ããç®ã次
1ãã¯ããã«
2ã人éè¡åèªèã®æ¦è¦
3ããã¼ã¿è¨æ¸¬
4ããã¼ã¿åå¦ç
5ãæ©æ¢°å¦ç¿
6ãè©ä¾¡
7ãå®ä¾ã§å¦ã¶äººéè¡åèªè
8ããããã«
3-6ã¯ããã¤ã¹, ãã¼ã«, ææ³ãªã©ã®ç¨èªãã¢ã«ã´ãªãºã ã®æ¦è¦ãªã©, æ©æ¢°å¦ç¿ã®åå¦è
åãã®èª¬æã¨ãªã£ã¦ãã.
7ã¯, éã«å®ä¾ã®æ¦è¦, ç°¡åãªå¦çã®æµãã¨ã³ã¼ããæ¸ããã¦ããã®ã¿ã§, ããå°ãæ·±ã説æã欲ããã¨ããã§ãã.
ä¾ãã°, 以ä¸ãªã©ã«ã¤ãã¦ããå°ã説æãããã¨å¬ãã.
ã»ä¾ãã°äººéãç«ã¤/座ã, æ©ã/èµ°ããªã©ã®å ´å, ã»ã³ãµå¤ãã©ã®ããã«è¦³æ¸¬ãããã.
ã»å®ä¾ã®ã»ã¨ãã©ãã»ã³ãµã®ç¹å¾´éã¨ãã¦æéé å(å¹³åã¨æ¨æºåå·®)ã¨å¨æ³¢æ°é å(ãã¼ã¯å¨æ³¢æ°, æ大æ¯å¹
, ã¨ãã«ã®ã¼)ãç¨ãã¦ãã.
人éè¡åèªèã«ããã¦, ãªããããã®ç¹å¾´éã使ç¨ããã®ã, ãããã®ç¹å¾´é以å¤ã ã¨ã©ããªãã®ã.
ãªã©
ãã¨, å®ä¾1ï½5ã®ãã¼ã¿ãã¦ã³ãã¼ãã«é¢ã, ãªãã¸ããªURLã¯è¨è¼ããã¦ããããã¦ã³ãã¼ãã®ä»æ¹ãè¨è¼ããã¦ããªãã®ã§, åå¦è
ã®æ¹ã¯ã¤ã¾ããã®ã§ã¯ã¨æã. (è¦è½ã¨ãã¦ããã¹ããã»ã³)
ä»åã¯, "git clone"ã§ã¯ç¡çã§, Git Large File Storage(LFS)ãã¤ã³ã¹ãã¼ã«ããå¿
è¦ãã.
ä¾ãã°, Google Colabã®å ´åã«ã¯, 以ä¸ã®ããã«.
!curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash
!sudo apt-get install git-lfs
!git lfs install
# ãã¼ã¿ã®ãã¦ã³ãã¼ã
!git lfs clone https://github.com/activity-recognition-examples/caseX/
æå¾ã«, æ°ä»ãã誤ãé¨åã®æ£èª¤è¡¨ãè¼ãã¦ãã.
ãã¼ã¸ | 誤 | æ£ |
P83 表7-2 P91 表7-3 P98 表7-4 P103 表7-5 |
x_yyyy_toydataset.csv | 0x_yyyy_toy_dataset.csv |
P86 ã³ã¼ã25è¡ | y.append(y) | ys.append(y) â» create_label_segments()ã¯å®ç¾©ã®ã¿ã§æªä½¿ç¨ |
P87 ã³ã¼ã2è¡ç® P93 ã³ã¼ã2è¡ç® P100 ã³ã¼ã1è¡ç® P105 ã³ã¼ã2è¡ç® |
data = pd.read_csv('x_yyyy_toydataset.csv', index_col=0) | data = pd.read_csv('0x_yyyy_toy_dataset.csv', index_col=0) |
p87 ã³ã¼ã7ï½12è¡ç® | # ã©ãã«ã¨ã³ã³ã¼ãã®ã¤ã³ã¹ã¿ã³ã¹å ã»ã»ã» data["user_id"] = le1.fit_transform(data["user_id"]) |
ã³ã¼ã20è¡ç®ã®ç´åã«ç§»å |
P87 ã³ã¼ã19-20è¡ç®ã®é | - | target_names = list(data[target_y].unique())ãã©ãã«ã¨ã³ã³ã¼ãã®ã¤ã³ã¹ã¿ã³ã¹åã®åã«è¿½è¨ |
P101 ã³ã¼ã13-24è¡ç® | #ã¢ãã«ã®å¦ç¿ ã»ã»ã» print(accuracy_score(y_test, y_pred)) |
åè¡é ã«ã¿ããæ¿å ¥ã, forã«ã¼ãå ã®å¦çã« |
ããã³ã¼ããåçµããå ´åã¯, ãã¼ã¿ã¨ä¸ç·ã«ãã¦ã³ãã¼ããããnotebookã®ã³ã¼ããåç §ããæ¹ãããã§ã.
---