{"id":26367539,"url":"https://github.com/raideno/data-augmentation","last_synced_at":"2025-10-26T13:32:37.012Z","repository":{"id":281557250,"uuid":"945620495","full_name":"raideno/data-augmentation","owner":"raideno","description":"Python package to easily augment your existing datasets in memory by applying transformations.","archived":false,"fork":false,"pushed_at":"2025-03-09T21:51:40.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-03T06:25:39.398Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/raideno.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-09T20:48:25.000Z","updated_at":"2025-03-09T21:51:44.000Z","dependencies_parsed_at":"2025-03-09T22:37:36.583Z","dependency_job_id":null,"html_url":"https://github.com/raideno/data-augmentation","commit_stats":null,"previous_names":["raideno/data-augmentation"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/raideno/data-augmentation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raideno%2Fdata-augmentation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raideno%2Fdata-augmentation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raideno%2Fdata-augmentation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raideno%2Fdata-augmentation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/raideno","download_url":"https://codeload.github.com/raideno/data-augmentation/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raideno%2Fdata-augmentation/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281114505,"owners_count":26446037,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-26T02:00:06.575Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-16T21:17:38.153Z","updated_at":"2025-10-26T13:32:36.977Z","avatar_url":"https://github.com/raideno.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003e 🚨 **WARNING: This package is still under development and NOT ready for production use!** 🚨\n\n# AugmentDataset\n\n`AugmentDataset` is a Python class that extends a dataset by adding augmented versions of selected samples. It allows you to apply random data augmentations on a dataset with control over the number of transformations, the probability of augmentation, and the number of augmented samples generated from each original sample.\n\n## Installation\n\n```bash\npip install git+https://github.com/raideno/data-augmentation.git\n```\n\n## Usage\n\n### Example\n\n```python\nfrom data_augmentation import AugmentDataset\n\n# Define your dataset (e.g., a PyTorch Dataset or a custom dataset)\nclass MyDataset:\n    def __getitem__(self, index):\n        # Return your data sample here\n        pass\n\n    def __len__(self):\n        # Return the length of your dataset\n        pass\n\n# Create your dataset object\ndataset = MyDataset()\n\n# Define your augmentations (e.g., simple functions like flipping, rotation, etc.)\ndef rotate(sample):\n    # Rotate the sample by 90 degrees\n    return sample\n\ndef flip(sample):\n    # Flip the sample horizontally\n    return sample\n\ntransforms = [rotate, flip]\n\n# Define your AugmentDataset\naugment_dataset = AugmentDataset(\n    dataset=dataset,\n    probability_to_augment=0.5,    # 50% chance of augmentation per sample\n    transforms=transforms,         # List of transformations to apply\n    probabilities=[0.7, 0.3],      # Probabilities for each transformation\n    max_transforms_per_sample=2,   # Apply a maximum of 2 transformations per sample\n    augmentations_per_sample=3     # Create 3 augmented versions per sample\n)\n\n# Access original or augmented samples\nsample = augment_dataset[0]  # Get the first sample (original or augmented)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraideno%2Fdata-augmentation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraideno%2Fdata-augmentation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraideno%2Fdata-augmentation/lists"}