Sfoglia il codice sorgente

chillax_extrapolator: Fixed wrong shortest_path in DepthSteps

Clemens-Alexander Brust 5 anni fa
parent
commit
731c9efa87

+ 1 - 1
chillax/chillax_extrapolator.py

@@ -172,7 +172,7 @@ class DepthStepsCHILLAXExtrapolator(CHILLAXExtrapolator):
 
 
             root = list(nx.topological_sort(self.rgraph))[0]
             root = list(nx.topological_sort(self.rgraph))[0]
             self.uid_to_depth = {
             self.uid_to_depth = {
-                concept.uid: nx.shortest_path(root, concept.uid)
+                concept.uid: nx.shortest_path(self.rgraph, root, concept.uid)
                 for concept in self.knowledge_base.concepts()
                 for concept in self.knowledge_base.concepts()
             }
             }
 
 

+ 0 - 5
chillax/experiment_selfsupervised.py

@@ -7,11 +7,6 @@ import config as pcfg
 import argparse
 import argparse
 
 
 
 
-class CheapObserver(instrumentation.Observer):
-    def update(self, message: instrumentation.Message):
-        print(f"Message: {message}")
-
-
 def main(config_files):
 def main(config_files):
     # This shouldn't be necessary, but...
     # This shouldn't be necessary, but...
     helpers.setup_environment()
     helpers.setup_environment()