make a KNearest code that use the features temperature, luminosity, and absolute magnitude to predict the spectral class of the stars FEATURE FEATURE FEATURE LABEL Temperature luminosity absolute magnitude spectral type 3068 0.0024 16.12 M 2800 0.0002 16.65 M 16500 0.013 11.89 B 12990 0.000085 12.23 F 8500 0.0005 14.5 A 39000 204000 -4.7 O 4015 282000 -11.39 K 6850 229000 -10.07 G
make a KNearest code that use the features temperature, luminosity, and absolute magnitude to predict the spectral class of the stars
FEATURE FEATURE FEATURE LABEL
Temperature luminosity absolute magnitude spectral type
3068 0.0024 16.12 M
2800 0.0002 16.65 M
16500 0.013 11.89 B
12990 0.000085 12.23 F
8500 0.0005 14.5 A
39000 204000 -4.7 O
4015 282000 -11.39 K
6850 229000 -10.07 G
Step by step
Solved in 4 steps with 1 images