官术网_书友最值得收藏!

Derived features

In the previous section, we applied some transformations to the Titanic data in order to be able to use the random forest classifier of scikit-learn (which only accepts numerical data). In this section, we are going to define another type of variable, which is derived from one or more other features.

Under this definition, we can say that some of the transformations in the previous section are also called derived features. In this section, we will look into other, complex transformations.

In the previous sections, we mentioned that you need to use your feature engineering skills to derive new features to enhance the model's predictive power. We have also talked about the importance of feature engineering in the data science pipeline and why you should spend most of your time and effort coming up with useful features. Domain knowledge will be very helpful in this section.

Very simple examples of derived features will be something like extracting the country code and/or region code from a telephone number. You can also extract the country/region from the GPS coordinates.

The Titanic data is a very simple one and doesn't contain a lot of variables to work with, but we can try to derive some features from the text feature that we have in it.

主站蜘蛛池模板: 甘肃省| 通化县| 太和县| 浮山县| 板桥市| 沐川县| 桓仁| 金坛市| 垫江县| 横山县| 大安市| 资源县| 梁河县| 济南市| 澄江县| 偏关县| 英山县| 荔浦县| 平阴县| 苏尼特左旗| 滨州市| 湖南省| 阳江市| 汶川县| 山阳县| 徐闻县| 襄樊市| 泰宁县| 柏乡县| 梁河县| 钟山县| 新野县| 朝阳县| 扎赉特旗| 芮城县| 固原市| 崇仁县| 古浪县| 西华县| 阳原县| 邵阳市|