code: private static Context[] convertToContexts(TIntParamHashMap[] params) {
        Context[] contexts = new Context[params.length];
        for (int pi=0;pi<params.length;pi++) {
          int[] activeOutcomes = params[pi].keys();
          double[] activeParameters = new double[activeOutcomes.length];
          for (int oi=0;oi<activeParameters.length;oi++) {
            activeParameters[oi] = params[pi].get(activeOutcomes[oi]);
          }
          contexts[pi] = new Context(activeOutcomes,activeParameters);
        }
        return contexts;
      }
docs: /*
  public GISModel (TIntParamHashMap[] _params,
  String[] predLabels,
  String[] _ocNames,
  int _correctionConstant,
  double _correctionParam) {
  this(convertToContexts(_params),predLabels,_ocNames,_correctionConstant,_correctionParam);
  }