MCPcopy Create free account
hub / github.com/AIRMEC/HECTOR / __init__

Method __init__

utils.py:35–39  ·  view source on GitHub ↗
(self, df, data_dir, input_feature_size, stage_class)

Source from the content-addressed store, hash-verified

33
34class FeatureBagsDataset(Dataset):
35 def __init__(self, df, data_dir, input_feature_size, stage_class):
36 self.slide_df = df.copy().reset_index(drop=True)
37 self.data_dir = data_dir
38 self.input_feature_size = input_feature_size
39 self.stage_class = stage_class
40
41 def _get_feature_path(self, slide_id):
42 return os.path.join(self.data_dir, f"{slide_id}_Mergedfeatures.pt")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected