Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/KareemYousrii/SPL
/ functions
Functions
1,219 in github.com/KareemYousrii/SPL
⨍
Functions
1,219
◇
Types & classes
137
↳
Endpoints
4
↓ 2 callers
Function
_print_terminal_sdd_as_dot
(root,f)
grids/pypsdd/sdd/io.py:131
↓ 2 callers
Function
_print_terminal_sdd_as_dot
(root,f)
grids/pypsdd/pypsdd/io.py:131
↓ 2 callers
Function
_psdd_node_label
return/create symbol for terminal SDD
C-HMCNN/hmc-utils/pypsdd/sdd/io.py:231
↓ 2 callers
Function
_psdd_node_label
return/create symbol for terminal SDD
C-HMCNN/hmc-utils/pypsdd/pypsdd/io.py:231
↓ 2 callers
Function
_psdd_node_label
return/create symbol for terminal SDD
grids/pypsdd/sdd/io.py:231
↓ 2 callers
Function
_psdd_node_label
return/create symbol for terminal SDD
grids/pypsdd/pypsdd/io.py:231
↓ 2 callers
Method
_push_next_element_enumerator
(self,piter)
C-HMCNN/hmc-utils/pypsdd/sdd/sdd.py:659
↓ 2 callers
Method
_push_next_element_enumerator
(self,piter)
C-HMCNN/hmc-utils/pypsdd/pypsdd/sdd.py:1445
↓ 2 callers
Method
_push_next_element_enumerator
(self,piter)
grids/pypsdd/sdd/sdd.py:659
↓ 2 callers
Method
_push_next_element_enumerator
(self,piter)
grids/pypsdd/pypsdd/sdd.py:1598
↓ 2 callers
Method
_try_next
(self)
C-HMCNN/hmc-utils/pypsdd/sdd/sdd.py:622
↓ 2 callers
Method
_try_next
(self)
C-HMCNN/hmc-utils/pypsdd/pypsdd/sdd.py:1408
↓ 2 callers
Method
_try_next
(self)
grids/pypsdd/sdd/sdd.py:622
↓ 2 callers
Method
_try_next
(self)
grids/pypsdd/pypsdd/sdd.py:1561
↓ 2 callers
Method
backward
(ctx, grad_output)
C-HMCNN/hmc-utils/pypsdd/pypsdd/sdd.py:52
↓ 2 callers
Method
backward
(ctx, grad_output)
grids/pypsdd/pypsdd/sdd.py:52
↓ 2 callers
Method
bfs
Finds all shortest paths from start to end, returns this as a list of lists
grids/generate_graph_data.py:63
↓ 2 callers
Method
cached_iter
(self)
C-HMCNN/hmc-utils/pypsdd/sdd/sdd.py:590
↓ 2 callers
Method
cached_iter
(self)
C-HMCNN/hmc-utils/pypsdd/pypsdd/sdd.py:1376
↓ 2 callers
Method
cached_iter
(self)
grids/pypsdd/sdd/sdd.py:590
↓ 2 callers
Method
cached_iter
(self)
grids/pypsdd/pypsdd/sdd.py:1529
↓ 2 callers
Function
check_valid_name
(string)
WarcraftShortestPath/utils.py:225
↓ 2 callers
Function
concat_2d
(arr)
WarcraftShortestPath/utils.py:101
↓ 2 callers
Method
copy
Clones the Inst
C-HMCNN/hmc-utils/pypsdd/pypsdd/data.py:394
↓ 2 callers
Method
copy
Clones the Inst
grids/pypsdd/pypsdd/data.py:394
↓ 2 callers
Method
enumerator
(self,node)
C-HMCNN/hmc-utils/pypsdd/sdd/sdd.py:510
↓ 2 callers
Method
enumerator
(self,node)
C-HMCNN/hmc-utils/pypsdd/pypsdd/sdd.py:1296
↓ 2 callers
Method
enumerator
(self,node)
grids/pypsdd/sdd/sdd.py:510
↓ 2 callers
Method
enumerator
(self,node)
grids/pypsdd/pypsdd/sdd.py:1449
↓ 2 callers
Method
evaluate
(self, print_paths=False)
WarcraftShortestPath/warcraft_shortest_path/trainers.py:332
↓ 2 callers
Function
evaluate_circuit
(model, gate, cmpe, epoch, data_loader, data_split, prefix)
C-HMCNN/train.py:323
↓ 2 callers
Method
forward_pass
(self, input, true_shortest_paths, train, i)
WarcraftShortestPath/warcraft_shortest_path/trainers.py:276
↓ 2 callers
Method
from_dict
new (possibly incomplete) Inst from dictionary.
C-HMCNN/hmc-utils/pypsdd/sdd/data.py:159
↓ 2 callers
Method
from_dict
new (possibly incomplete) Inst from dictionary.
C-HMCNN/hmc-utils/pypsdd/pypsdd/data.py:159
↓ 2 callers
Method
from_dict
new (possibly incomplete) Inst from dictionary.
grids/pypsdd/sdd/data.py:159
↓ 2 callers
Method
from_dict
new (possibly incomplete) Inst from dictionary.
grids/pypsdd/pypsdd/data.py:159
↓ 2 callers
Method
generate_tf_ac
Generates a tensorflow arithmetic circuit according to the weighted model counting procedure for this SDD. Assumes the SDD is normalized.
grids/pypsdd/sdd/sdd.py:456
↓ 2 callers
Function
get_constr_out
Given the output of the neural network x returns the output of MCM given the hierarchy constraint expressed in the matrix R
C-HMCNN/common.py:179
↓ 2 callers
Method
get_mpe_inst
(self, batch_size)
C-HMCNN/hmc-utils/compute_mpe.py:73
↓ 2 callers
Function
get_neighbourhood_func
(neighbourhood_fn)
WarcraftShortestPath/comb_modules/utils.py:22
↓ 2 callers
Method
get_tf_ac
(self, litleaves)
C-HMCNN/hmc-utils/compute_mpe.py:92
↓ 2 callers
Method
get_torch_ac
(self, litleaves)
C-HMCNN/hmc-utils/compute_mpe.py:95
↓ 2 callers
Function
get_transitions_from_path
(path)
WarcraftShortestPath/warcraft_shortest_path/visualization.py:29
↓ 2 callers
Function
get_transitions_from_path
(path)
WarcraftShortestPath/data/visualization.py:30
↓ 2 callers
Method
initialize_psdd
(self,root)
C-HMCNN/hmc-utils/pypsdd/sdd/prior.py:12
↓ 2 callers
Method
learn
Given a complete dataset and a prior, learn the parameters of a PSDD
C-HMCNN/hmc-utils/pypsdd/sdd/psdd.py:397
↓ 2 callers
Method
learn
Given a complete dataset and a prior, learn the parameters of a PSDD
C-HMCNN/hmc-utils/pypsdd/pypsdd/psdd.py:397
↓ 2 callers
Method
learn
Given a complete dataset and a prior, learn the parameters of a PSDD
grids/pypsdd/sdd/psdd.py:397
↓ 2 callers
Method
learn
Given a complete dataset and a prior, learn the parameters of a PSDD
grids/pypsdd/pypsdd/psdd.py:397
↓ 2 callers
Function
link
Connect 2 nodes n1 and n2 by adding them to each other's adjacency lists
grids/generate_graph_data.py:143
↓ 2 callers
Function
log1mexp
(x)
WarcraftShortestPath/warcraft_shortest_path/trainers.py:51
↓ 2 callers
Method
log_likelihood
log likelihood of a dataset, given the data distribution
C-HMCNN/hmc-utils/pypsdd/pypsdd/data.py:68
↓ 2 callers
Method
log_likelihood
log likelihood of a dataset, given the data distribution
grids/pypsdd/pypsdd/data.py:68
↓ 2 callers
Method
lookup_node_enum
(self,node,vtree)
C-HMCNN/hmc-utils/pypsdd/sdd/sdd.py:501
↓ 2 callers
Method
lookup_node_enum
(self,node,vtree)
C-HMCNN/hmc-utils/pypsdd/pypsdd/sdd.py:1287
↓ 2 callers
Method
lookup_node_enum
(self,node,vtree)
grids/pypsdd/sdd/sdd.py:501
↓ 2 callers
Method
lookup_node_enum
(self,node,vtree)
grids/pypsdd/pypsdd/sdd.py:1440
↓ 2 callers
Function
maybe_parallelize
(function, arg_list)
WarcraftShortestPath/utils.py:162
↓ 2 callers
Function
mpe
(bsz)
WarcraftShortestPath/warcraft_shortest_path/trainers.py:77
↓ 2 callers
Method
node_of_vtree
(self,vtree)
C-HMCNN/hmc-utils/pypsdd/sdd/psdd.py:478
↓ 2 callers
Method
node_of_vtree
(self,vtree)
C-HMCNN/hmc-utils/pypsdd/pypsdd/psdd.py:478
↓ 2 callers
Method
node_of_vtree
(self,vtree)
grids/pypsdd/sdd/psdd.py:478
↓ 2 callers
Method
node_of_vtree
(self,vtree)
grids/pypsdd/pypsdd/psdd.py:478
↓ 2 callers
Function
parse_args
()
C-HMCNN/common.py:193
↓ 2 callers
Method
random_parameter_set
Draws a parameter set from a Dirichlet distribution. k is the number of states psi is the Dirichlet meta-parameter
C-HMCNN/hmc-utils/pypsdd/sdd/prior.py:26
↓ 2 callers
Method
random_parameter_set
Draws a parameter set from a Dirichlet distribution. k is the number of states psi is the Dirichlet meta-parameter
C-HMCNN/hmc-utils/pypsdd/pypsdd/prior.py:26
↓ 2 callers
Method
random_parameter_set
Draws a parameter set from a Dirichlet distribution. k is the number of states psi is the Dirichlet meta-parameter
grids/pypsdd/sdd/prior.py:26
↓ 2 callers
Method
random_parameter_set
Draws a parameter set from a Dirichlet distribution. k is the number of states psi is the Dirichlet meta-parameter
grids/pypsdd/pypsdd/prior.py:26
↓ 2 callers
Method
sample
If input is a list of tuples (item,probability), randomly return an item based according to their probability
grids/pypsdd/sdd/psdd.py:344
↓ 2 callers
Function
save_dict_as_one_line_csv
(dct, filename)
WarcraftShortestPath/utils.py:270
↓ 2 callers
Function
save_settings_to_json
(setting_dict, model_dir)
WarcraftShortestPath/utils.py:438
↓ 2 callers
Function
seed_all_rngs
(seed)
C-HMCNN/common.py:106
↓ 2 callers
Method
toEdges
Convert a list of lists of nodes representing a path in a list of lists of edge numbers
grids/generate_graph_data.py:83
↓ 2 callers
Function
to_perm_matrix
(ranking, items)
grids/sushi_data.py:80
↓ 2 callers
Function
validate_hyperparam_dict
(hyperparam_dict)
WarcraftShortestPath/utils.py:313
↓ 2 callers
Method
var_to_vtree
Returns dictionary mapping variable to its leaf vtree node
C-HMCNN/hmc-utils/pypsdd/sdd/vtree.py:74
↓ 2 callers
Method
var_to_vtree
Returns dictionary mapping variable to its leaf vtree node
C-HMCNN/hmc-utils/pypsdd/pypsdd/vtree.py:74
↓ 2 callers
Method
var_to_vtree
Returns dictionary mapping variable to its leaf vtree node
grids/pypsdd/sdd/vtree.py:74
↓ 2 callers
Method
var_to_vtree
Returns dictionary mapping variable to its leaf vtree node
grids/pypsdd/pypsdd/vtree.py:74
↓ 2 callers
Function
vertex_index
(v, dim)
WarcraftShortestPath/data/utils.py:44
↓ 2 callers
Method
weighted_model_count
(self, lit_weights)
grids/compute_mpe.py:66
↓ 2 callers
Function
zero_normalize_sdd
(alpha,alpha_vtree,vtree,manager)
WarcraftShortestPath/data/zdd2sdd.py:16
↓ 1 callers
Method
Shannon_entropy
(self, litleaves)
C-HMCNN/hmc-utils/compute_mpe.py:120
↓ 1 callers
Method
__cmp__
comparison, first be size and then by lexicographic order Intended for two Inst with the same var_count
C-HMCNN/hmc-utils/pypsdd/sdd/data.py:216
↓ 1 callers
Method
__cmp__
comparison, first be size and then by lexicographic order Intended for two Inst with the same var_count
C-HMCNN/hmc-utils/pypsdd/pypsdd/data.py:216
↓ 1 callers
Method
__cmp__
comparison, first be size and then by lexicographic order Intended for two Inst with the same var_count
grids/pypsdd/sdd/data.py:216
↓ 1 callers
Method
__cmp__
comparison, first be size and then by lexicographic order Intended for two Inst with the same var_count
grids/pypsdd/pypsdd/data.py:216
↓ 1 callers
Method
__init__
Constructor node_type is FALSE, TRUE, LITERAL or DECOMPOSITION alpha is a literal if node_type is LITERAL alpha is a list of
C-HMCNN/hmc-utils/pypsdd/sdd/psdd.py:22
↓ 1 callers
Method
__init__
Constructor node_type is FALSE, TRUE, LITERAL or DECOMPOSITION alpha is a literal if node_type is LITERAL alpha is a list of
C-HMCNN/hmc-utils/pypsdd/sdd/sdd.py:14
↓ 1 callers
Method
__init__
Assumes tpl is one-indexed (i.e., tpl[0] is None). Use from_list otherwise
C-HMCNN/hmc-utils/pypsdd/sdd/data.py:102
↓ 1 callers
Method
__init__
Constructor Initialize with vtree
C-HMCNN/hmc-utils/pypsdd/sdd/manager.py:15
↓ 1 callers
Method
__init__
Constructor node_type is FALSE, TRUE, LITERAL or DECOMPOSITION alpha is a literal if node_type is LITERAL alpha is a list of
C-HMCNN/hmc-utils/pypsdd/pypsdd/psdd.py:22
↓ 1 callers
Method
__init__
Constructor node_type is FALSE, TRUE, LITERAL or DECOMPOSITION alpha is a literal if node_type is LITERAL alpha is a list of
C-HMCNN/hmc-utils/pypsdd/pypsdd/sdd.py:96
↓ 1 callers
Method
__init__
Assumes tpl is one-indexed (i.e., tpl[0] is None). Use from_list otherwise
C-HMCNN/hmc-utils/pypsdd/pypsdd/data.py:102
↓ 1 callers
Method
__init__
Constructor Initialize with vtree
C-HMCNN/hmc-utils/pypsdd/pypsdd/manager.py:15
↓ 1 callers
Method
__init__
Constructor node_type is FALSE, TRUE, LITERAL or DECOMPOSITION alpha is a literal if node_type is LITERAL alpha is a list of
grids/pypsdd/sdd/psdd.py:22
↓ 1 callers
Method
__init__
Constructor node_type is FALSE, TRUE, LITERAL or DECOMPOSITION alpha is a literal if node_type is LITERAL alpha is a list of
grids/pypsdd/sdd/sdd.py:14
↓ 1 callers
Method
__init__
Assumes tpl is one-indexed (i.e., tpl[0] is None). Use from_list otherwise
grids/pypsdd/sdd/data.py:102
↓ 1 callers
Method
__init__
Constructor Initialize with vtree
grids/pypsdd/sdd/manager.py:15
↓ 1 callers
Method
__init__
Constructor node_type is FALSE, TRUE, LITERAL or DECOMPOSITION alpha is a literal if node_type is LITERAL alpha is a list of
grids/pypsdd/pypsdd/psdd.py:22
← previous
next →
301–400 of 1,219, ranked by callers