Skip to content

Commit

Permalink
Fix homophily order
Browse files Browse the repository at this point in the history
  • Loading branch information
mannbach committed Sep 11, 2024
1 parent 6d91d6c commit c4a8feb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion netin/models/dh_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def _initialize_lfms(self):
super()._initialize_lfms()
self.h = TwoClassHomophily.from_two_class_homophily(
node_class_values=self.graph.get_node_class(CLASS_ATTRIBUTE),
homophily=(self.h_m, self.h_M))
homophily=(self.h_M, self.h_m))

def compute_target_probabilities(self, source: int)\
-> np.ndarray:
Expand Down
2 changes: 1 addition & 1 deletion netin/models/dpah_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def _initialize_lfms(self):
super()._initialize_lfms()
self.h = TwoClassHomophily.from_two_class_homophily(
node_class_values=self.graph.get_node_class(CLASS_ATTRIBUTE),
homophily=(self.h_m, self.h_M))
homophily=(self.h_M, self.h_m))
self.pa = InDegreePreferentialAttachment(
graph=self.graph, N=self._n_nodes_total)

Expand Down
2 changes: 1 addition & 1 deletion netin/models/homophily_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@ def compute_target_probabilities(self, source: int) -> np.ndarray:
def _initialize_lfms(self):
self.h = TwoClassHomophily.from_two_class_homophily(
node_class_values=self.graph.get_node_class(CLASS_ATTRIBUTE),
homophily=(self.h_m, self.h_M))
homophily=(self.h_M, self.h_m))

0 comments on commit c4a8feb

Please sign in to comment.