foreachActive方法

来源:互联网 发布:网络股票龙头股票 编辑:程序博客网 时间:2024/05/18 17:23
  /**   * Applies a function `f` to all the active elements of dense and sparse vector.   *   * @param f the function takes two parameters where the first parameter is the index of   *          the vector with type `Int`, and the second parameter is the corresponding value   *          with type `Double`.   */  @Since("1.6.0")  def foreachActive(f: (Int, Double) => Unit): Unitlearning from package org.apache.spark.mllib.stat
原创粉丝点击