result[1] = 1 / (1 + Math.exp(-output)); result[0] = 1 - result[1];
result[1] = 1.0 / (1.0 + Math.exp(-output)); result[0] = 1.0 - result[1];
  public double[] distributionForInstance(Instance inst) throws Exception {    // Filter instance    m_ReplaceMissingValues.input(inst);    inst = m_ReplaceMissingValues.output();    m_NominalToBinary.input(inst);    inst = m_NominalToBinary.output();        // Get probabilities    double output = SVMOutput(inst);    double[] result = new double[2];    result[1] = 1 / (1 + Math.exp(-output));    result[0] = 1 - result[1];    return result;  }