官术网_书友最值得收藏!

  • 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.

主站蜘蛛池模板: 夏津县| 绵竹市| 大理市| 武邑县| 文安县| 宜昌市| 安化县| 米林县| 保山市| 吐鲁番市| 宁晋县| 洛南县| 兖州市| 吉安县| 中牟县| 祥云县| 大洼县| 洪江市| 芦溪县| 和硕县| 赣州市| 玉树县| 泰安市| 东源县| 娱乐| 浦城县| 古浪县| 通山县| 安阳县| 明水县| 积石山| 南昌县| 长垣县| 兴山县| 邛崃市| 荔波县| 明星| 横山县| 固安县| 广宗县| 祁连县|