
机器学习
文章平均质量分 50
coder_wu
这个作者很懒,什么都没留下…
展开
-
Machine learning series: Handling Missing Values
The method cann’t deal with ‘object’ type dataExplore missing valuesmissing_val_count_by_column = (data.isnull().sum())print(missing_val_count_by_column[missing_val_count_by_column > 0])A simp...原创 2018-11-25 18:21:02 · 293 阅读 · 0 评论 -
机器学习——入门
import pandas as pdfile_path = ''name_data = pd.read_csv(file_path)name_data.describe() ## describe function can tell you the information of each column in data, such as count(how manty rows have n...原创 2018-11-24 17:48:07 · 227 阅读 · 0 评论 -
Machine learning series:How to handle categorical variable
One hot encodingone hot encoding creates new (binary) columns, indicating the presence of each possible value from the original data.## explore the data typeprint(train_data.dtypes)## one hot enco...原创 2018-11-24 19:16:11 · 354 阅读 · 0 评论