MCPcopy Create free account
hub / github.com/ddf-project/DDF / toString

Method toString

core/src/main/java/io/ddf/ml/Model.java:103–112  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

101 }
102
103 @Override
104 public String toString() {
105 if (modelType.equals("org.apache.spark.mllib.clustering.KMeansModel")) {
106 Gson gson = new Gson();
107 return String.format("%s \n %s", this.getRawModel().getClass().getName(), gson.toJson(this.getRawModel()));
108 } else {
109 String modelString = this.getRawModel().toString();
110 return modelString;
111 }
112 }
113
114 @Override
115 public String toJson() {

Callers 15

describeTableMethod · 0.45
sqlHandleMethod · 0.45
sql2ddfHandleMethod · 0.45
transformScaleMinMaxMethod · 0.45
transformUDFMethod · 0.45
transformUDFWithNamesMethod · 0.45
sortMethod · 0.45
dropNARowSQLMethod · 0.45
fillNAWithValueSQLMethod · 0.45

Calls 4

getRawModelMethod · 0.95
getNameMethod · 0.65
toJsonMethod · 0.65
equalsMethod · 0.45

Tested by

no test coverage detected