- 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'.
推薦閱讀
- Intel FPGA/CPLD設(shè)計(jì)(基礎(chǔ)篇)
- FPGA從入門到精通(實(shí)戰(zhàn)篇)
- 電腦組裝、維護(hù)、維修全能一本通(全彩版)
- 平衡掌控者:游戲數(shù)值經(jīng)濟(jì)設(shè)計(jì)
- 從零開始學(xué)51單片機(jī)C語言
- Visual Media Processing Using Matlab Beginner's Guide
- 計(jì)算機(jī)組裝與維護(hù)(第3版)
- Creating Flat Design Websites
- STM32自學(xué)筆記
- The Deep Learning with PyTorch Workshop
- 筆記本電腦維修技能實(shí)訓(xùn)
- Hands-On One-shot Learning with Python
- Applied Deep Learning with Keras
- Spring Cloud微服務(wù)架構(gòu)開發(fā)
- Unreal Engine 4 AI Programming Essentials