Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
712 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 Answer

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...