What is the difference between a feature and a label?

前端 未结 7 1682
天涯浪人
天涯浪人 2020-12-12 10:00

I\'m following a tutorial about machine learning basics and there is mentioned that something can be a feature or a label.

From what I know, a fea

7条回答
  •  旧时难觅i
    2020-12-12 10:40

    Briefly, feature is input; label is output. This applies to both classification and regression problems.

    A feature is one column of the data in your input set. For instance, if you're trying to predict the type of pet someone will choose, your input features might include age, home region, family income, etc. The label is the final choice, such as dog, fish, iguana, rock, etc.

    Once you've trained your model, you will give it sets of new input containing those features; it will return the predicted "label" (pet type) for that person.

提交回复
热议问题