Class JsonVectorConverter

Object
org.apache.spark.ml.linalg.JsonVectorConverter

public class JsonVectorConverter extends Object
  • Constructor Details

    • JsonVectorConverter

      public JsonVectorConverter()
  • Method Details

    • fromJson

      public static Vector fromJson(String json)
      Parses the JSON representation of a vector into a Vector.
      Parameters:
      json - (undocumented)
      Returns:
      (undocumented)
    • toJson

      public static String toJson(Vector v)
      Coverts the vector to a JSON string.
      Parameters:
      v - (undocumented)
      Returns:
      (undocumented)