Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
701 views
in Technique[技术] by (71.8m points)

machine-learning - 在“多项式”或“线性模型”中考虑分类特征是否有用?(Is it useful to consider a categorical features into a `polynomial` or `linear model`?)

In Titanic dataset, i have a dataset containing Categorical features (such as Cabin , Embark and Sex ).

(在Titanic数据集中,我有一个包含分类特征(例如CabinEmbarkSex )的数据集。)

在此处输入图片说明

I need to build a linear or polynomial model with multiple variables to predict Survive .

(我需要建立具有多个变量的线性多项式模型来预测Survive 。)

I wish to consider Categorical features as well.

(我也希望考虑分类功能。)

Let's say, i can replace all categorical values with a respected numerical value.

(假设我可以用受尊重的数值替换所有分类值。)

For example about Sex column, I can replace: 1 with male and 2 with female

(例如,关于“ Sex列,我可以替换为: 1 male2 female)

My question is:

(我的问题是:)

Is it useful to consider a categorical features into a polynomial or linear model ?

(将分类特征考虑到polynomiallinear model是否有用?)

  ask by Jeff translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...