2018年5月29日
摘要: #!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2018/5/28 16:05 # @Author : zhang chao # @File : test.py import matplotlib.pyplot as plt import numpy as np alist=[1,2,3,4,5] print("Lis... 阅读全文
posted @ 2018-05-29 12:01 裸睡的猪 阅读(567) 评论(0) 推荐(0) 编辑
摘要: #-*- coding: utf-8 -*- #逻辑回归 自动建模 import numpy as np import pandas as pd from sklearn.linear_model import LogisticRegression as LR from sklearn.linear_model import RandomizedLogisticRegression as RLR... 阅读全文
posted @ 2018-05-29 11:55 裸睡的猪 阅读(3056) 评论(0) 推荐(0) 编辑
摘要: #-*- coding: utf-8 -*- #主成分分析 降维 import pandas as pd #参数初始化 inputfile = '../data/principal_component.xls' outputfile = '../tmp/dimention.xls' #降维后的数据 data = pd.read_excel(inputfile, header = None) ... 阅读全文
posted @ 2018-05-29 10:51 裸睡的猪 阅读(1970) 评论(0) 推荐(0) 编辑