- Machine Learning with Swift
- Alexander Sosnovshchenko
- 56字
- 2021-06-24 18:54:55
Separating features from labels
Let's separate our features from the labels, as we will feed them into the model separately:
In []: features = df.loc[:,:'fluffy'] labels = df.label
This horrible construction df.loc[:,:'fluffy'] tells the data frame that we want all the rows (the first column), and the columns starting from the first, finishing with 'fluffy'.
推薦閱讀
- Aftershot Pro:Non-destructive photo editing and management
- Istio入門與實戰(zhàn)
- 電腦維護與故障排除傻瓜書(Windows 10適用)
- 基于Proteus和Keil的C51程序設計項目教程(第2版):理論、仿真、實踐相融合
- 電腦常見故障現(xiàn)場處理
- 電腦維護365問
- Practical Machine Learning with R
- 筆記本電腦維修300問
- Creating Flat Design Websites
- Internet of Things Projects with ESP32
- 筆記本電腦維修實踐教程
- Istio服務網(wǎng)格技術解析與實踐
- 電腦組裝與維護即時通
- 嵌入式系統(tǒng)設計大學教程(第2版)
- Zabbix 4 Network Monitoring