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

Method toJson

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

Source from the content-addressed store, hash-verified

112 }
113
114 @Override
115 public String toJson() {
116 Gson gson = new Gson();
117 return gson.toJson(this);
118 }
119
120 public static Model fromJson(String json) throws DDFException {
121 Gson gson = new GsonBuilder().registerTypeAdapter(Model.class, new ModelDeserializer()).create();

Callers 2

serialize2DDFMethod · 0.95

Calls 1

toJsonMethod · 0.65

Tested by 1