Welcome to the Linux Foundation Forum!

3.0.5 Target and Task

Options
lzambra
lzambra Posts: 6
edited March 16 in LFD273 Class Forum

hp_idx = cont_attr.index('hp')

Is there a specific reason why we use hp and not another continuous attribute such as weight for this example?

Best Answer

  • dvgodoy
    dvgodoy Posts: 2
    Answer ✓
    Options

    Hi @lzambra,

    There's no specific reason for using hp, any other continuous attribute could have been used to train a model. HP seemed like a good choice because the relationship between fuel consumption and HP strikes me as the most intuitive. But I guess the weight would be a good choice as well, as you pointed out.
    Best,
    Daniel

Categories

Upcoming Training