
kaggle
Douhh_sisy
这个作者很懒,什么都没留下…
展开
-
sklearn实战:Kaggle自行车租赁预测(岭回归,支持向量回归,随机森林回归)
import numpy as npimport pandas as pdimport matplotlib.pyplot as pltimport seaborn as snsdf_train=pd.read_csv('kaggle_bike_competition_train.csv',header = 0)df_train.head(10)...原创 2018-06-05 20:11:05 · 2878 阅读 · 1 评论 -
Kaggle:San Francisco Crime Classification
比赛地址https://www.kaggle.com/c/sf-crime 这里用logistic regression来完成这个预测问题。 # 基本CSV读写操作 # 我们需要读取给定的训练数据,再进行后续的数据(特征等)处理def read_data(file_name): f = open(file_name) #ignore header ...转载 2018-06-07 15:54:12 · 918 阅读 · 0 评论 -
Kaggle:Predicting a Biological Response
地址戳我 # 基本CSV读写操作 # 我们需要读取给定的训练数据,再进行后续的数据(特征等)处理 def read_data(file_name): f = open(file_name) #ignore header f.readline() samples = [] target =...转载 2018-06-07 15:58:20 · 660 阅读 · 0 评论 -
kaggle:预测泰坦尼克号幸存者(决策树算法,网格搜索模型参数调优)
%matplotlib inlineimport matplotlib.pyplot as pltimport numpy as npimport pandas as pddef read_dataset(fname): # 指定第一列作为行索引 data = pd.read_csv(fname, index_col=0) #列索引为csv文件第一行 ...原创 2018-06-07 22:13:53 · 3466 阅读 · 0 评论