MCPcopy Create free account
hub / github.com/geekcomputers/Python / __init__

Method __init__

ML/src/python/neuralforge/data/dataset.py:67–77  ·  view source on GitHub ↗
(
        self,
        num_samples: int = 10000,
        num_classes: int = 10,
        image_size: int = 224,
        channels: int = 3
    )

Source from the content-addressed store, hash-verified

65
66class SyntheticDataset(Dataset):
67 def __init__(
68 self,
69 num_samples: int = 10000,
70 num_classes: int = 10,
71 image_size: int = 224,
72 channels: int = 3
73 ):
74 self.num_samples = num_samples
75 self.num_classes = num_classes
76 self.image_size = image_size
77 self.channels = channels
78
79 def __len__(self) -> int:
80 return self.num_samples

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected