{"id":28104264,"url":"https://github.com/nannyml/nannyml-datasets","last_synced_at":"2025-08-11T06:45:26.974Z","repository":{"id":266838018,"uuid":"899419863","full_name":"NannyML/nannyml-datasets","owner":"NannyML","description":"A repository of datasets, courtesy of NannyML","archived":false,"fork":false,"pushed_at":"2024-12-09T12:43:56.000Z","size":35805,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-24T00:44:21.366Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NannyML.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":"2024-12-06T08:24:37.000Z","updated_at":"2024-12-09T12:43:59.000Z","dependencies_parsed_at":"2024-12-06T13:51:16.029Z","dependency_job_id":null,"html_url":"https://github.com/NannyML/nannyml-datasets","commit_stats":null,"previous_names":["nannyml/nannyml-datasets"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/NannyML/nannyml-datasets","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NannyML%2Fnannyml-datasets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NannyML%2Fnannyml-datasets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NannyML%2Fnannyml-datasets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NannyML%2Fnannyml-datasets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NannyML","download_url":"https://codeload.github.com/NannyML/nannyml-datasets/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NannyML%2Fnannyml-datasets/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269843250,"owners_count":24484115,"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-08-11T02:00:10.019Z","response_time":75,"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-05-13T20:46:32.993Z","updated_at":"2025-08-11T06:45:26.964Z","avatar_url":"https://github.com/NannyML.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NannyML Datasets\n\nThis Python package contains our curated datasets, used for testing and product demos.\n\nWe provide datasets for the following problem types: binary classification, multiclass classification and regression.\n\n\n## Anatomy of a `Dataset`\n\nEach `Dataset` has `reference` and `monitoring` properties. Each of these exposes the following properties:\n\n- `data`: access the full dataset as a `pyarrow.Table`\n- `predictions`: access the model predictions as a `numpy.ndarray`\n- `predicted_probabilities`: access the model's predicted probablilities. Only available for classification datasets. For binary classification datasets this will be a single \n- `targets`: access the model targets as a `numpy.ndarray`\n- `timestamps`: access the model timestamps as a `numpy.ndarray`\n- `categorical_features`: access the model's categorical features. Loop over tuples containing the column name and its values.\n- `continuous_features`: access the model's continuous features. Loop over tuples containing the column name and its values.\n- `features`: access the model's features. Loop over tuples containing the column name and its values.\n\nIf any of these properties are not available, trying to access them will raise an `AssertionError`.\n\n\n## Example usage\n\n```python\n\nfrom nannyml_dataset.binary_classification import synthetic_car_loan  # Import the dataset\n\nprint(synthetic_car_loan.reference.timestamps)  # Access some reference property\nprint(synthetic_car_loan.monitoring.timestamps)  # Access some monitoring property\n\nfor name, values in synthetic_car_loan.reference.categorical_features:  # Loop over reference categorical features\n    print(f\"{name}\\t\\t{values}\")  # You can do more useful stuff here, like setting up a univariate covariate shift monitor!\n\n```\n\n## Available datasets\n\n### Binary Classification\n\n| Dataset | Synthetic | Description |\n|---------|-----------|-------------|\n| synthetic_car_loan | yes | A synthetic dataset describing a model that predicts defaulting a loan for a car. |\n| hotel_booking | no | A dataset describing a model that predicts booking cancellation in a hotel context.\n\n### Multiclass classification\n\n| Dataset | Synthetic | Description |\n|---------|-----------|-------------|\n| synthetic_credit_card | yes | A synthetic dataset describing a model that predicts a class of credit card (upmarket, highstreet, prepaid).\n| satellite_imagery| no | A dataset describing a model that classifies an image tile as earth, water, desert, ...\n\n### Regression\n\n| Dataset | Synthetic | Description | \n|---------|-----------|-------------|\n| synthetic_car_price| yes | A synthetic dataset describing a model that predicts the price of a second-hand car. |","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnannyml%2Fnannyml-datasets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnannyml%2Fnannyml-datasets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnannyml%2Fnannyml-datasets/lists"}