首先先看Iris数据集 Sepal.Length——花萼长度 Sepal.Width——花萼宽度 Petal.Length——花瓣长度 Petal.Width——花瓣宽度 通过上述4中属性可以预测花卉属于Setosa,Versicolour,Virginica 三个种类中的哪一类 决策树 by CA ...
                            
                            
                                分类:
其他好文   时间:
2018-06-10 11:40:32   
                                阅读次数:
924
                             
                    
                        
                            
                            
                                    元组 msg_dic={ 'apple':10, 'tesla':100000, 'mac':3000, 'lenovo':30000, 'chicken':10, } shopping_cart=[] while True: for k in msg_dic: info='商品名:%s 价钱:%s ...
                            
                            
                                分类:
编程语言   时间:
2018-05-31 20:40:33   
                                阅读次数:
191
                             
                    
                        
                            
                            
                                    msg_dic = { 'apple': 10, 'tesla': 100000, 'mac': 3000, 'lenovo': 30000, 'chicken': 10,}shopping_cart=[]tag = Truewhile tag: for i in msg_dic: info = ' ...
                            
                            
                                分类:
其他好文   时间:
2018-05-31 20:33:49   
                                阅读次数:
210
                             
                    
                        
                            
                            
                                    msg_dic={'apple':10,'tesla':100000,'mac':3000,'lenovo':30000,'chicken':10,}shopping_cart=[]while True: for k in msg_dic: info='商品名:%s 价钱:%s' % (k, msg ...
                            
                            
                                分类:
其他好文   时间:
2018-05-31 19:25:55   
                                阅读次数:
116
                             
                    
                        
                            
                            
                                    alex 的三级菜单程序堪称经典了 查找了好多资料,尽我目前的能力,这个购物车真的只能写成这样了。希望下章open 文件应用的多多努力。就知道shopping_list怎么灵活的存入文件,又如何灵活调用出来。 ...
                            
                            
                                分类:
其他好文   时间:
2018-05-30 21:24:40   
                                阅读次数:
145
                             
                    
                        
                            
                            
                                    #!/usr/bin/env python# -*- coding: utf-8 -*-# @Time : 2018/5/27 0027 14:07# @Author : Anthony.Waa# @Site : # @File : User_Login_Register_Shopping 1.0. ...
                            
                            
                                分类:
其他好文   时间:
2018-05-30 21:20:52   
                                阅读次数:
157
                             
                    
                        
                            
                            
                                一、决策树之ID3算法简述 1976年-1986年,J.R.Quinlan给出ID3算法原型并进行了总结,确定了决策树学习的理论。这可以看做是决策树算法的起点。1993,Quinlan将ID3算法改进成C4.5算法,称为机器学习的十大算法之一。ID3算法的另一个分支是CART(Classificat ...
                            
                            
                                分类:
编程语言   时间:
2018-05-30 19:21:00   
                                阅读次数:
231
                             
                    
                        
                            
                            
                                    传送门 题目描述 Little girl Susie went shopping with her mom and she wondered how to improve service quality. There are n people in the queue. For each perso ...
                            
                            
                                分类:
其他好文   时间:
2018-05-28 00:53:14   
                                阅读次数:
241
                             
                    
                        
                            
                            
                                association:用于对象间包含关系映射 ...
                            
                            
                                分类:
其他好文   时间:
2018-05-26 20:21:13   
                                阅读次数:
126
                             
                    
                        
                            
                            
                                    文件处理 (1)读	f = open(file='D:/python/shopping.txt‘,mode='r',encoding='utf-8')	data = f.read()	f.close() 安装第三方工具包pip3 install chardet#安装 import chardetf  ...
                            
                            
                                分类:
其他好文   时间:
2018-05-26 00:36:15   
                                阅读次数:
158