- Deep Learning By Example
- Ahmed Menshawy
- 117字
- 2021-06-24 18:52:41
Understanding the advertising data
This problem falls into the supervised learning type, in which we have explanatory features (input variables) and the response (output variable).
What are the features/input variables?
- TV: Advertising dollars spent on TV for a single product in a given market (in thousands of dollars)
- Radio: Advertising dollars spent on radio
- Newspaper: Advertising dollars spent on newspapers
What is the response/outcome/output variable?
- Sales: The sales of a single product in a given market (in thousands of widgets)
We can also use the DataFrame method shape to know the number of samples/observations in our data:
# print the shape of the DataFrame
advertising_data.shape
Output:
(200, 4)
So, there are 200 observations in the advertising data.
推薦閱讀
- GNU-Linux Rapid Embedded Programming
- 大學計算機基礎:基礎理論篇
- 三菱FX3U/5U PLC從入門到精通
- ROS機器人編程與SLAM算法解析指南
- WordPress Theme Development Beginner's Guide(Third Edition)
- Implementing Oracle API Platform Cloud Service
- 運動控制器與交流伺服系統的調試和應用
- Learn CloudFormation
- Windows安全指南
- C#求職寶典
- Hands-On SAS for Data Analysis
- Microsoft Dynamics CRM 2013 Marketing Automation
- 渲染王3ds Max三維特效動畫技術
- Generative Adversarial Networks Projects
- ARM體系結構與編程