{ "data_id": "44548", "name": "ozone-level-8hr_seed_0_nrows_2000_nclasses_10_ncols_100_stratify_True", "exact_name": "ozone-level-8hr_seed_0_nrows_2000_nclasses_10_ncols_100_stratify_True", "version": 1, "version_label": "87c1345a-6b1c-4a47-9295-83c9713ab73b", "description": "Subsampling of the dataset ozone-level-8hr (1487) with\n\nseed=0\nargs.nrows=2000\nargs.ncols=100\nargs.nclasses=10\nargs.no_stratify=True\nGenerated with the following source code:\n\n\n```python\n def subsample(\n self,\n seed: int,\n nrows_max: int = 2_000,\n ncols_max: int = 100,\n nclasses_max: int = 10,\n stratified: bool = True,\n ) -> Dataset:\n rng = np.random.default_rng(seed)\n\n x = self.x\n y = self.y\n\n # Uniformly sample\n classes = y.unique()\n if len(classes) > nclasses_max:\n vcs = y.value_counts()\n selected_classes = rng.choice(\n classes,\n size=nclasses_max,\n replace=False,\n p=vcs \/ sum(vcs),\n )\n\n # Select the indices where one of these classes is present\n idxs = y.index[y.isin(classes)]\n x = x.iloc[idxs]\n y = y.iloc[idxs]\n\n # Uniformly sample columns if required\n if len(x.columns) > ncols_max:\n columns_idxs = rng.choice(\n list(range(len(x.columns))), size=ncols_max, replace=False\n )\n sorted_column_idxs = sorted(columns_idxs)\n selected_columns = list(x.columns[sorted_column_idxs])\n x = x[selected_columns]\n else:\n sorted_column_idxs = list(range(len(x.columns)))\n\n if len(x) > nrows_max:\n # Stratify accordingly\n target_name = y.name\n data = pd.concat((x, y), axis=\"columns\")\n _, subset = train_test_split(\n data,\n test_size=nrows_max,\n stratify=data[target_name],\n shuffle=True,\n random_state=seed,\n )\n x = subset.drop(target_name, axis=\"columns\")\n y = subset[target_name]\n\n # We need to convert categorical columns to string for openml\n categorical_mask = [self.categorical_mask[i] for i in sorted_column_idxs]\n columns = list(x.columns)\n\n return Dataset(\n # Technically this is not the same but it's where it was derived from\n dataset=self.dataset,\n x=x,\n y=y,\n categorical_mask=categorical_mask,\n columns=columns,\n )\n```", "format": "arff", "uploader": "Eddie Bergman", "uploader_id": 32840, "visibility": "public", "creator": "\"Eddie Bergman\"", "contributor": null, "date": "2022-11-17 18:32:18", "update_comment": null, "last_update": "2022-11-17 18:32:18", "licence": "Public", "status": "active", "error_message": null, "url": "https:\/\/api.openml.org\/data\/download\/22111310\/dataset", "default_target_attribute": "Class", "row_id_attribute": null, "ignore_attribute": null, "runs": 0, "suggest": { "input": [ "ozone-level-8hr_seed_0_nrows_2000_nclasses_10_ncols_100_stratify_True", "Subsampling of the dataset ozone-level-8hr (1487) with seed=0 args.nrows=2000 args.ncols=100 args.nclasses=10 args.no_stratify=True Generated with the following source code: ```python def subsample( self, seed: int, nrows_max: int = 2_000, ncols_max: int = 100, nclasses_max: int = 10, stratified: bool = True, ) -> Dataset: rng = np.random.default_rng(seed) x = self.x y = self.y # Uniformly sample classes = y.unique() if len(classes) > nclasses_max: vcs = y.value_counts() selected_classes = rng.c " ], "weight": 5 }, "qualities": { "NumberOfInstances": 2000, "NumberOfFeatures": 73, "NumberOfClasses": 2, "NumberOfMissingValues": 0, "NumberOfInstancesWithMissingValues": 0, "NumberOfNumericFeatures": 72, "NumberOfSymbolicFeatures": 1, "PercentageOfBinaryFeatures": 1.36986301369863, "PercentageOfInstancesWithMissingValues": 0, "AutoCorrelation": 0.8809404702351176, "PercentageOfMissingValues": 0, "Dimensionality": 0.0365, "PercentageOfNumericFeatures": 98.63013698630137, "MajorityClassPercentage": 93.7, "PercentageOfSymbolicFeatures": 1.36986301369863, "MajorityClassSize": 1874, "MinorityClassPercentage": 6.3, "MinorityClassSize": 126, "NumberOfBinaryFeatures": 1 }, "tags": [ { "uploader": "38960", "tag": "Physical Sciences" }, { "uploader": "38960", "tag": "Statistics" } ], "features": [ { "name": "Class", "index": "72", "type": "nominal", "distinct": "2", "missing": "0", "target": "1", "distr": [ [ "1", "2" ], [ [ "1874", "0" ], [ "0", "126" ] ] ] }, { "name": "V1", "index": "0", "type": "numeric", "distinct": "68", "missing": "0", "min": "0", "max": "8", "mean": "2", "stdev": "1" }, { "name": "V2", "index": "1", "type": "numeric", "distinct": "69", "missing": "0", "min": "0", "max": "8", "mean": "2", "stdev": "1" }, { "name": "V3", "index": "2", "type": "numeric", "distinct": "63", "missing": "0", "min": "0", "max": "7", "mean": "2", "stdev": "1" }, { "name": "V4", "index": "3", "type": "numeric", "distinct": "66", "missing": "0", "min": "0", "max": "7", "mean": "2", "stdev": "1" }, { "name": "V5", "index": "4", "type": "numeric", "distinct": "62", "missing": "0", "min": "0", "max": "7", "mean": "1", "stdev": "1" }, { "name": "V6", "index": "5", "type": "numeric", "distinct": "62", "missing": "0", "min": "0", "max": "7", "mean": "2", "stdev": "1" }, { "name": "V7", "index": "6", "type": "numeric", "distinct": "66", "missing": "0", "min": "0", "max": "7", "mean": "2", "stdev": "1" }, { "name": "V8", "index": "7", "type": "numeric", "distinct": "67", "missing": "0", "min": "0", "max": "8", "mean": "2", "stdev": "1" }, { "name": "V9", "index": "8", "type": "numeric", "distinct": "70", "missing": "0", "min": "0", "max": "9", "mean": "3", "stdev": "1" }, { "name": "V10", "index": "9", "type": "numeric", "distinct": "69", "missing": "0", "min": "0", "max": "9", "mean": "3", "stdev": "1" }, { "name": "V11", "index": "10", "type": "numeric", "distinct": "75", "missing": "0", "min": "0", "max": "9", "mean": "3", "stdev": "1" }, { "name": "V12", "index": "11", "type": "numeric", "distinct": "77", "missing": "0", "min": "0", "max": "9", "mean": "3", "stdev": "1" }, { "name": "V13", "index": "12", "type": "numeric", "distinct": "75", "missing": "0", "min": "0", "max": "9", "mean": "3", "stdev": "1" }, { "name": "V14", "index": "13", "type": "numeric", "distinct": "77", "missing": "0", "min": "0", "max": "10", "mean": "3", "stdev": "1" }, { "name": "V15", "index": "14", "type": "numeric", "distinct": "76", "missing": "0", "min": "0", "max": "9", "mean": "3", "stdev": "1" }, { "name": "V16", "index": "15", "type": "numeric", "distinct": "78", "missing": "0", "min": "0", "max": "9", "mean": "3", "stdev": "1" }, { "name": "V17", "index": "16", "type": "numeric", "distinct": "71", "missing": "0", "min": "0", "max": "9", "mean": "3", "stdev": "1" }, { "name": "V18", "index": "17", "type": "numeric", "distinct": "72", "missing": "0", "min": "0", "max": "8", "mean": "3", "stdev": "1" }, { "name": "V19", "index": "18", "type": "numeric", "distinct": "69", "missing": "0", "min": "0", "max": "8", "mean": "3", "stdev": "1" }, { "name": "V20", "index": "19", "type": "numeric", "distinct": "63", "missing": "0", "min": "0", "max": "7", "mean": "2", "stdev": "1" }, { "name": "V21", "index": "20", "type": "numeric", "distinct": "67", "missing": "0", "min": "0", "max": "9", "mean": "2", "stdev": "1" }, { "name": "V22", "index": "21", "type": "numeric", "distinct": "69", "missing": "0", "min": "0", "max": "9", "mean": "2", "stdev": "1" }, { "name": "V23", "index": "22", "type": "numeric", "distinct": "67", "missing": "0", "min": "0", "max": "8", "mean": "2", "stdev": "1" }, { "name": "V24", "index": "23", "type": "numeric", "distinct": "65", "missing": "0", "min": "0", "max": "8", "mean": "2", "stdev": "1" }, { "name": "V25", "index": "24", "type": "numeric", "distinct": "75", "missing": "0", "min": "1", "max": "10", "mean": "4", "stdev": "1" }, { "name": "V26", "index": "25", "type": "numeric", "distinct": "55", "missing": "0", "min": "0", "max": "6", "mean": "2", "stdev": "1" }, { "name": "V27", "index": "26", "type": "numeric", "distinct": "277", "missing": "0", "min": "-2", "max": "30", "mean": "19", "stdev": "7" }, { "name": "V28", "index": "27", "type": "numeric", "distinct": "277", "missing": "0", "min": "-2", "max": "29", "mean": "18", "stdev": "7" }, { "name": "V29", "index": "28", "type": "numeric", "distinct": "281", "missing": "0", "min": "-3", "max": "29", "mean": "18", "stdev": "7" }, { "name": "V30", "index": "29", "type": "numeric", "distinct": "279", "missing": "0", "min": "-3", "max": "28", "mean": "18", "stdev": "7" }, { "name": "V31", "index": "30", "type": "numeric", "distinct": "278", "missing": "0", "min": "-3", "max": "28", "mean": "18", "stdev": "7" }, { "name": "V32", "index": "31", "type": "numeric", "distinct": "286", "missing": "0", "min": "-4", "max": "28", "mean": "17", "stdev": "7" }, { "name": "V33", "index": "32", "type": "numeric", "distinct": "293", "missing": "0", "min": "-3", "max": "29", "mean": "18", "stdev": "7" }, { "name": "V34", "index": "33", "type": "numeric", "distinct": "306", "missing": "0", "min": "-3", "max": "30", "mean": "18", "stdev": "8" }, { "name": "V35", "index": "34", "type": "numeric", "distinct": "308", "missing": "0", "min": "-2", "max": "31", "mean": "20", "stdev": "8" }, { "name": "V36", "index": "35", "type": "numeric", "distinct": "306", "missing": "0", "min": "-1", "max": "34", "mean": "21", "stdev": "7" }, { "name": "V37", "index": "36", "type": "numeric", "distinct": "320", "missing": "0", "min": "-1", "max": "36", "mean": "23", "stdev": "7" }, { "name": "V38", "index": "37", "type": "numeric", "distinct": "317", "missing": "0", "min": "0", "max": "39", "mean": "23", "stdev": "7" }, { "name": "V39", "index": "38", "type": "numeric", "distinct": "321", "missing": "0", "min": "0", "max": "40", "mean": "24", "stdev": "7" }, { "name": "V40", "index": "39", "type": "numeric", "distinct": "319", "missing": "0", "min": "1", "max": "41", "mean": "24", "stdev": "7" }, { "name": "V41", "index": "40", "type": "numeric", "distinct": "320", "missing": "0", "min": "2", "max": "42", "mean": "25", "stdev": "7" }, { "name": "V42", "index": "41", "type": "numeric", "distinct": "321", "missing": "0", "min": "2", "max": "41", "mean": "25", "stdev": "7" }, { "name": "V43", "index": "42", "type": "numeric", "distinct": "321", "missing": "0", "min": "1", "max": "41", "mean": "24", "stdev": "7" }, { "name": "V44", "index": "43", "type": "numeric", "distinct": "320", "missing": "0", "min": "-1", "max": "40", "mean": "24", "stdev": "7" }, { "name": "V45", "index": "44", "type": "numeric", "distinct": "302", "missing": "0", "min": "0", "max": "38", "mean": "23", "stdev": "7" }, { "name": "V46", "index": "45", "type": "numeric", "distinct": "296", "missing": "0", "min": "0", "max": "36", "mean": "21", "stdev": "7" }, { "name": "V47", "index": "46", "type": "numeric", "distinct": "292", "missing": "0", "min": "0", "max": "35", "mean": "21", "stdev": "7" }, { "name": "V48", "index": "47", "type": "numeric", "distinct": "286", "missing": "0", "min": "0", "max": "33", "mean": "20", "stdev": "7" }, { "name": "V49", "index": "48", "type": "numeric", "distinct": "278", "missing": "0", "min": "-1", "max": "33", "mean": "20", "stdev": "7" }, { "name": "V50", "index": "49", "type": "numeric", "distinct": "272", "missing": "0", "min": "-1", "max": "31", "mean": "19", "stdev": "7" }, { "name": "V51", "index": "50", "type": "numeric", "distinct": "316", "missing": "0", "min": "2", "max": "42", "mean": "26", "stdev": "7" }, { "name": "V52", "index": "51", "type": "numeric", "distinct": "288", "missing": "0", "min": "0", "max": "34", "mean": "21", "stdev": "7" }, { "name": "V53", "index": "52", "type": "numeric", "distinct": "242", "missing": "0", "min": "-7", "max": "24", "mean": "14", "stdev": "5" }, { "name": "V54", "index": "53", "type": "numeric", "distinct": "101", "missing": "0", "min": "0", "max": "1", "mean": "1", "stdev": "0" }, { "name": "V55", "index": "54", "type": "numeric", "distinct": "1124", "missing": "0", "min": "-16", "max": "18", "mean": "2", "stdev": "5" }, { "name": "V56", "index": "55", "type": "numeric", "distinct": "1272", "missing": "0", "min": "-18", "max": "22", "mean": "2", "stdev": "6" }, { "name": "V57", "index": "56", "type": "numeric", "distinct": "347", "missing": "0", "min": "1351", "max": "1642", "mean": "1532", "stdev": "36" }, { "name": "V58", "index": "57", "type": "numeric", "distinct": "231", "missing": "0", "min": "-10", "max": "16", "mean": "6", "stdev": "4" }, { "name": "V59", "index": "58", "type": "numeric", "distinct": "101", "missing": "0", "min": "0", "max": "1", "mean": "0", "stdev": "0" }, { "name": "V60", "index": "59", "type": "numeric", "distinct": "1333", "missing": "0", "min": "-14", "max": "27", "mean": "5", "stdev": "6" }, { "name": "V61", "index": "60", "type": "numeric", "distinct": "1236", "missing": "0", "min": "-24", "max": "23", "mean": "1", "stdev": "6" }, { "name": "V62", "index": "61", "type": "numeric", "distinct": "421", "missing": "0", "min": "2933", "max": "3249", "mean": "3146", "stdev": "48" }, { "name": "V63", "index": "62", "type": "numeric", "distinct": "181", "missing": "0", "min": "-25", "max": "0", "mean": "-10", "stdev": "4" }, { "name": "V64", "index": "63", "type": "numeric", "distinct": "101", "missing": "0", "min": "0", "max": "1", "mean": "0", "stdev": "0" }, { "name": "V65", "index": "64", "type": "numeric", "distinct": "1411", "missing": "0", "min": "-15", "max": "41", "mean": "10", "stdev": "9" }, { "name": "V66", "index": "65", "type": "numeric", "distinct": "1289", "missing": "0", "min": "-26", "max": "28", "mean": "1", "stdev": "7" }, { "name": "V67", "index": "66", "type": "numeric", "distinct": "83", "missing": "0", "min": "5515", "max": "5960", "mean": "5819", "stdev": "77" }, { "name": "V68", "index": "67", "type": "numeric", "distinct": "941", "missing": "0", "min": "-57", "max": "42", "mean": "11", "stdev": "20" }, { "name": "V69", "index": "68", "type": "numeric", "distinct": "625", "missing": "0", "min": "-10", "max": "59", "mean": "37", "stdev": "11" }, { "name": "V70", "index": "69", "type": "numeric", "distinct": "71", "missing": "0", "min": "9975", "max": "10350", "mean": "10164", "stdev": "52" }, { "name": "V71", "index": "70", "type": "numeric", "distinct": "56", "missing": "0", "min": "-130", "max": "140", "mean": "0", "stdev": "34" }, { "name": "V72", "index": "71", "type": "numeric", "distinct": "160", "missing": "0", "min": "0", "max": "21", "mean": "0", "stdev": "1" } ], "nr_of_issues": 0, "nr_of_downvotes": 0, "nr_of_likes": 0, "nr_of_downloads": 0, "total_downloads": 0, "reach": 0, "reuse": 0, "impact_of_reuse": 0, "reach_of_reuse": 0, "impact": 0 }