Skip to content

Commit

Permalink
Get rid of redundant array shape for log_potentials (#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
StannisZhou authored Feb 14, 2022
1 parent 2d86b75 commit f7f3e3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pgmax/fg/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def add_factor(
variable_names: A list containing the connected variable names.
factor_configs: Array of shape (num_val_configs, num_variables)
An array containing explicit enumeration of all valid configurations
log_potentials: Optional array of shape (num_val_configs,) or (num_factors, num_val_configs).
log_potentials: Optional array of shape (num_val_configs,).
If specified, it contains the log of the potential value for every possible configuration.
If none, it is assumed the log potential is uniform 0 and such an array is automatically
initialized.
Expand Down

0 comments on commit f7f3e3f

Please sign in to comment.