单项选择题
基于密集向量(1.0,0.0,3.0)创建一个LabledPoint,设其标识值为1.0,以下正确的选项为()……
基于密集向量(1.0,0.0,3.0)创建一个LabledPoint,设其标识值为1.0,以下正确的选项为()
A.val pos=LabeledPoint(1.0,Vectors.dense(1.0,0.0,3.0))
B.val pos=LabeledPoint(1.0,(1.0,0.0,3.0))
C.val pos=LabeledPoint(Vectors.dense(1.0,0.0,3.0),1.0)
D.val pos=LabeledPoint((1.0,0.0,3.0),1.0)