docs: public static TableFactorBuilder fromMap(VariableNumMap variables,
        Map<Assignment, Double> probabilities) {
      TableFactorBuilder builder = new TableFactorBuilder(variables);
      for (Map.Entry<Assignment, Double> outcome : probabilities.entrySet()) {
        builder.setWeight(outcome.getKey(), outcome.getValue());
      }
      return builder;
    }