Spark
Spark相关知识
CANDY_J
这个作者很懒,什么都没留下…
展开
-
LabeledPoint
一、 定义表示数据点的特征和标签的类二、 构造器LabeledPoint(double label, Vector features) label: 数据点的标签features: 据点的特征向量三、 方法修饰符和类型方法说明Vectorfeatures()VectorgetFeatures()获取特征doublegetLabel()获取标签doublelabel()static LabeledPointparse(Strin原创 2021-02-21 10:42:19 · 959 阅读 · 0 评论 -
Vectors及密集向量(dense)和稀疏向量(sparse)
一、构造器Vectors() 二、 方法修饰符和类型方法说明static Vectordense(double[] values)从双精度数组创建密集向量static Vectordense(double firstValue, double... otherValues)根据参数值创建密集向量static Vectordense(double firstValue, scala.collection.Seq<Object> otherValu原创 2021-02-21 10:38:17 · 4914 阅读 · 0 评论