單項選擇題

基于密集向量(1.0,0.0,3.0)創(chuàng)建一個LabledPoint,設(shè)其標(biāo)識值為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)

在線練習(xí)
微信掃碼免費搜題