MCPcopy Create free account
hub / github.com/danielpatrickhug/GitModel / __init__

Method __init__

src/pipeline.py:24–33  ·  view source on GitHub ↗
(self, config: Config)

Source from the content-addressed store, hash-verified

22
23class Pipeline:
24 def __init__(self, config: Config):
25 self.config = config
26 self._obj_map = instantiate_class_from_config(config)
27 self.pipeline_settings = self._obj_map["pipeline_settings"][0]
28 self.semantic_graph_context_generator = [
29 self._obj_map["semantic_graph_context_generator"][i]
30 for i in range(len(self._obj_map["semantic_graph_context_generator"]))
31 ]
32 self.gnn_heads = [self._obj_map["gnn_heads"][i] for i in range(len(self._obj_map["gnn_heads"]))]
33 self.topic_model = self._obj_map["topic_model"][0]
34
35 @classmethod
36 def from_config(cls, config: Config):

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected