protected JsonObject defaultJsonResponse() { // This will be shown every request JsonObject r = new JsonObject(); RFModel model = _modelKey.value(); r.addProperty(DATA_KEY, _dataKey.originalValue()); r.addProperty(MODEL_KEY, _modelKey.originalValue()); r.addProperty(CLASS, _classCol.specified() ? _classCol.value() : findResponseIdx(model)); r.addProperty(NUM_TREES, model._totalTrees); r.addProperty(MTRY, model._splitFeatures); r.addProperty(MTRY_NODES, Arrays.toString(model._nodesSplitFeatures)); r.addProperty(OOBEE, _oobee.value()); // CM specific options r.addProperty(NO_CM, _noCM.value()); r.addProperty(JSON_REFRESH_THRESHOLD_CM, _refreshThresholdCM.value()); return r; }