加入收藏 | 设为首页 | 会员中心 | 我要投稿 PHP编程网 - 黄冈站长网 (http://www.0713zz.com/)- 数据应用、建站、人体识别、智能机器人、语音技术!
当前位置: 首页 > 运营中心 > 建站资源 > 经验 > 正文

机器学习爱好者必读的入门指南

发布时间:2019-08-10 00:14:20 所属栏目:经验 来源:佚名
导读:副标题#e# 本指南适用于任何对机器学习(Machine Learning,ML)感兴趣但不知道从何开始的人。 我们的目标是让任何人都可以理解,这意味着文中会有很多概述。但谁在乎呢?如果能使一些人对机器学习更感兴趣,我们将倍感欣慰。 什么是机器学习? 机器学习的概

如果你对机器学习一无所知,你可能会试着写出一些估算房屋价格的基本规则,就像这样: 

  1. def estimate_house_sales_price(num_of_bedrooms, sqft, neighborhood):  
  2.        price = 0  
  3.        # In my area, the average house costs $200 per sqft  
  4.        price_per_sqft = 200  
  5.        if neighborhood == "hipsterton":  
  6.        # but some areas cost a bit more  
  7.        price_per_sqft = 400  
  8.        elif neighborhood == "skid row":  
  9.            # and some areas cost less  
  10.            price_per_sqft = 100  
  11.        # start with a base price estimate based on how big the place is  
  12.        price = price_per_sqft*sqft  
  13.        # now adjust our estimate based on the number of bedrooms  
  14.        if num_of_bedrooms == 0:  
  15.            # Studio apartments are cheap  
  16.            priceprice = price — 20000  
  17.        else:  
  18.            # places with more bedrooms are usually  
  19.            # more valuable  
  20.            priceprice = price + (num_of_bedrooms * 1000)  
  21.        return price 

如果你花几个小时来研究,可能会得到一些有用的东西。但你的程序永远不会完美,而且随着价格的变化,它将很难维持。

(编辑:PHP编程网 - 黄冈站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

热点阅读