Class JsonMatrixConverter

Object
org.apache.spark.ml.linalg.JsonMatrixConverter

public class JsonMatrixConverter extends Object
  • Constructor Details

    • JsonMatrixConverter

      public JsonMatrixConverter()
  • Method Details

    • className

      public static String className()
      Unique class name for identifying JSON object encoded by this class.
    • fromJson

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

      public static String toJson(Matrix m)
      Coverts the Matrix to a JSON string.
      Parameters:
      m - (undocumented)
      Returns:
      (undocumented)