- 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'.
推薦閱讀
- ATmega16單片機項目驅動教程
- 電腦維護與故障排除傻瓜書(Windows 10適用)
- 分布式微服務架構:原理與實戰
- Practical Machine Learning with R
- 超大流量分布式系統架構解決方案:人人都是架構師2.0
- 單片機開發與典型工程項目實例詳解
- Source SDK Game Development Essentials
- “硬”核:硬件產品成功密碼
- Java Deep Learning Cookbook
- Wireframing Essentials
- 單片微機原理及應用
- Intel FPGA權威設計指南:基于Quartus Prime Pro 19集成開發環境
- 單片機原理及應用
- FPGA實戰訓練精粹
- 計算機組裝與維護(慕課版)