{ "data_id": "44700", "name": "Fashion-MNIST_seed_2_nrows_2000_nclasses_10_ncols_100_stratify_True", "exact_name": "Fashion-MNIST_seed_2_nrows_2000_nclasses_10_ncols_100_stratify_True", "version": 1, "version_label": "0665ed22-655a-4c72-9a2e-4acf6f6b7f02", "description": "Subsampling of the dataset Fashion-MNIST (40996) with\n\nseed=2\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:44:02", "update_comment": null, "last_update": "2022-11-17 18:44:02", "licence": "Public", "status": "active", "error_message": null, "url": "https:\/\/api.openml.org\/data\/download\/22111462\/dataset", "default_target_attribute": "class", "row_id_attribute": null, "ignore_attribute": null, "runs": 0, "suggest": { "input": [ "Fashion-MNIST_seed_2_nrows_2000_nclasses_10_ncols_100_stratify_True", "Subsampling of the dataset Fashion-MNIST (40996) with seed=2 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.ch " ], "weight": 5 }, "qualities": { "NumberOfInstances": 2000, "NumberOfFeatures": 101, "NumberOfClasses": 10, "NumberOfMissingValues": 0, "NumberOfInstancesWithMissingValues": 0, "NumberOfNumericFeatures": 100, "NumberOfSymbolicFeatures": 1, "MinorityClassSize": 200, "NumberOfBinaryFeatures": 0, "PercentageOfBinaryFeatures": 0, "PercentageOfInstancesWithMissingValues": 0, "AutoCorrelation": 0.1025512756378189, "PercentageOfMissingValues": 0, "Dimensionality": 0.0505, "PercentageOfNumericFeatures": 99.00990099009901, "MajorityClassPercentage": 10, "PercentageOfSymbolicFeatures": 0.9900990099009901, "MajorityClassSize": 200, "MinorityClassPercentage": 10 }, "tags": [ { "uploader": "38960", "tag": "Statistics" } ], "features": [ { "name": "class", "index": "100", "type": "nominal", "distinct": "10", "missing": "0", "target": "1", "distr": [ [ "0", "1", "2", "3", "4", "5", "6", "7", "8", "9" ], [ [ "200", "0", "0", "0", "0", "0", "0", "0", "0", "0" ], [ "0", "200", "0", "0", "0", "0", "0", "0", "0", "0" ], [ "0", "0", "200", "0", "0", "0", "0", "0", "0", "0" ], [ "0", "0", "0", "200", "0", "0", "0", "0", "0", "0" ], [ "0", "0", "0", "0", "200", "0", "0", "0", "0", "0" ], [ "0", "0", "0", "0", "0", "200", "0", "0", "0", "0" ], [ "0", "0", "0", "0", "0", "0", "200", "0", "0", "0" ], [ "0", "0", "0", "0", "0", "0", "0", "200", "0", "0" ], [ "0", "0", "0", "0", "0", "0", "0", "0", "200", "0" ], [ "0", "0", "0", "0", "0", "0", "0", "0", "0", "200" ] ] ] }, { "name": "pixel29", "index": "0", "type": "numeric", "distinct": "1", "missing": "0", "min": "0", "max": "0", "mean": "0", "stdev": "0" }, { "name": "pixel31", "index": "1", "type": "numeric", "distinct": "8", "missing": "0", "min": "0", "max": "219", "mean": "0", "stdev": "6" }, { "name": "pixel39", "index": "2", "type": "numeric", "distinct": "243", "missing": "0", "min": "0", "max": "255", "mean": "79", "stdev": "95" }, { "name": "pixel45", "index": "3", "type": "numeric", "distinct": "242", "missing": "0", "min": "0", "max": "255", "mean": "110", "stdev": "101" }, { "name": "pixel59", "index": "4", "type": "numeric", "distinct": "9", "missing": "0", "min": "0", "max": "231", "mean": "0", "stdev": "8" }, { "name": "pixel64", "index": "5", "type": "numeric", "distinct": "225", "missing": "0", "min": "0", "max": "255", "mean": "34", "stdev": "68" }, { "name": "pixel75", "index": "6", "type": "numeric", "distinct": "248", "missing": "0", "min": "0", "max": "255", "mean": "89", "stdev": "91" }, { "name": "pixel76", "index": "7", "type": "numeric", "distinct": "249", "missing": "0", "min": "0", "max": "255", "mean": "65", "stdev": "83" }, { "name": "pixel78", "index": "8", "type": "numeric", "distinct": "219", "missing": "0", "min": "0", "max": "255", "mean": "33", "stdev": "68" }, { "name": "pixel79", "index": "9", "type": "numeric", "distinct": "185", "missing": "0", "min": "0", "max": "255", "mean": "20", "stdev": "52" }, { "name": "pixel80", "index": "10", "type": "numeric", "distinct": "121", "missing": "0", "min": "0", "max": "255", "mean": "9", "stdev": "37" }, { "name": "pixel107", "index": "11", "type": "numeric", "distinct": "228", "missing": "0", "min": "0", "max": "255", "mean": "33", "stdev": "68" }, { "name": "pixel132", "index": "12", "type": "numeric", "distinct": "248", "missing": "0", "min": "0", "max": "255", "mean": "94", "stdev": "88" }, { "name": "pixel136", "index": "13", "type": "numeric", "distinct": "203", "missing": "0", "min": "0", "max": "255", "mean": "28", "stdev": "62" }, { "name": "pixel142", "index": "14", "type": "numeric", "distinct": "33", "missing": "0", "min": "0", "max": "246", "mean": "2", "stdev": "16" }, { "name": "pixel151", "index": "15", "type": "numeric", "distinct": "244", "missing": "0", "min": "0", "max": "255", "mean": "104", "stdev": "92" }, { "name": "pixel158", "index": "16", "type": "numeric", "distinct": "250", "missing": "0", "min": "0", "max": "255", "mean": "116", "stdev": "88" }, { "name": "pixel163", "index": "17", "type": "numeric", "distinct": "245", "missing": "0", "min": "0", "max": "255", "mean": "60", "stdev": "84" }, { "name": "pixel165", "index": "18", "type": "numeric", "distinct": "189", "missing": "0", "min": "0", "max": "255", "mean": "23", "stdev": "60" }, { "name": "pixel169", "index": "19", "type": "numeric", "distinct": "21", "missing": "0", "min": "0", "max": "178", "mean": "1", "stdev": "9" }, { "name": "pixel180", "index": "20", "type": "numeric", "distinct": "249", "missing": "0", "min": "0", "max": "255", "mean": "104", "stdev": "90" }, { "name": "pixel184", "index": "21", "type": "numeric", "distinct": "248", "missing": "0", "min": "0", "max": "255", "mean": "116", "stdev": "89" }, { "name": "pixel194", "index": "22", "type": "numeric", "distinct": "176", "missing": "0", "min": "0", "max": "255", "mean": "21", "stdev": "58" }, { "name": "pixel203", "index": "23", "type": "numeric", "distinct": "233", "missing": "0", "min": "0", "max": "255", "mean": "67", "stdev": "89" }, { "name": "pixel206", "index": "24", "type": "numeric", "distinct": "250", "missing": "0", "min": "0", "max": "255", "mean": "98", "stdev": "90" }, { "name": "pixel216", "index": "25", "type": "numeric", "distinct": "251", "missing": "0", "min": "0", "max": "255", "mean": "115", "stdev": "88" }, { "name": "pixel233", "index": "26", "type": "numeric", "distinct": "243", "missing": "0", "min": "0", "max": "255", "mean": "87", "stdev": "93" }, { "name": "pixel234", "index": "27", "type": "numeric", "distinct": "249", "missing": "0", "min": "0", "max": "255", "mean": "98", "stdev": "90" }, { "name": "pixel242", "index": "28", "type": "numeric", "distinct": "250", "missing": "0", "min": "0", "max": "255", "mean": "137", "stdev": "79" }, { "name": "pixel252", "index": "29", "type": "numeric", "distinct": "86", "missing": "0", "min": "0", "max": "200", "mean": "4", "stdev": "19" }, { "name": "pixel264", "index": "30", "type": "numeric", "distinct": "248", "missing": "0", "min": "0", "max": "255", "mean": "110", "stdev": "88" }, { "name": "pixel275", "index": "31", "type": "numeric", "distinct": "253", "missing": "0", "min": "0", "max": "255", "mean": "94", "stdev": "93" }, { "name": "pixel283", "index": "32", "type": "numeric", "distinct": "110", "missing": "0", "min": "0", "max": "255", "mean": "9", "stdev": "39" }, { "name": "pixel286", "index": "33", "type": "numeric", "distinct": "234", "missing": "0", "min": "0", "max": "255", "mean": "59", "stdev": "86" }, { "name": "pixel302", "index": "34", "type": "numeric", "distinct": "250", "missing": "0", "min": "0", "max": "255", "mean": "109", "stdev": "95" }, { "name": "pixel308", "index": "35", "type": "numeric", "distinct": "121", "missing": "0", "min": "0", "max": "221", "mean": "7", "stdev": "27" }, { "name": "pixel312", "index": "36", "type": "numeric", "distinct": "164", "missing": "0", "min": "0", "max": "255", "mean": "17", "stdev": "52" }, { "name": "pixel335", "index": "37", "type": "numeric", "distinct": "226", "missing": "0", "min": "0", "max": "255", "mean": "37", "stdev": "72" }, { "name": "pixel336", "index": "38", "type": "numeric", "distinct": "127", "missing": "0", "min": "0", "max": "222", "mean": "8", "stdev": "28" }, { "name": "pixel338", "index": "39", "type": "numeric", "distinct": "87", "missing": "0", "min": "0", "max": "255", "mean": "7", "stdev": "33" }, { "name": "pixel343", "index": "40", "type": "numeric", "distinct": "240", "missing": "0", "min": "0", "max": "255", "mean": "71", "stdev": "92" }, { "name": "pixel348", "index": "41", "type": "numeric", "distinct": "253", "missing": "0", "min": "0", "max": "255", "mean": "134", "stdev": "81" }, { "name": "pixel355", "index": "42", "type": "numeric", "distinct": "253", "missing": "0", "min": "0", "max": "255", "mean": "151", "stdev": "74" }, { "name": "pixel359", "index": "43", "type": "numeric", "distinct": "246", "missing": "0", "min": "0", "max": "255", "mean": "107", "stdev": "93" }, { "name": "pixel372", "index": "44", "type": "numeric", "distinct": "250", "missing": "0", "min": "0", "max": "255", "mean": "91", "stdev": "95" }, { "name": "pixel373", "index": "45", "type": "numeric", "distinct": "249", "missing": "0", "min": "0", "max": "255", "mean": "103", "stdev": "91" }, { "name": "pixel375", "index": "46", "type": "numeric", "distinct": "251", "missing": "0", "min": "0", "max": "255", "mean": "136", "stdev": "81" }, { "name": "pixel385", "index": "47", "type": "numeric", "distinct": "245", "missing": "0", "min": "0", "max": "255", "mean": "130", "stdev": "90" }, { "name": "pixel392", "index": "48", "type": "numeric", "distinct": "144", "missing": "0", "min": "0", "max": "227", "mean": "11", "stdev": "32" }, { "name": "pixel393", "index": "49", "type": "numeric", "distinct": "71", "missing": "0", "min": "0", "max": "205", "mean": "4", "stdev": "20" }, { "name": "pixel397", "index": "50", "type": "numeric", "distinct": "236", "missing": "0", "min": "0", "max": "255", "mean": "47", "stdev": "76" }, { "name": "pixel407", "index": "51", "type": "numeric", "distinct": "251", "missing": "0", "min": "0", "max": "255", "mean": "138", "stdev": "80" }, { "name": "pixel417", "index": "52", "type": "numeric", "distinct": "242", "missing": "0", "min": "0", "max": "255", "mean": "72", "stdev": "89" }, { "name": "pixel421", "index": "53", "type": "numeric", "distinct": "118", "missing": "0", "min": "0", "max": "209", "mean": "6", "stdev": "26" }, { "name": "pixel422", "index": "54", "type": "numeric", "distinct": "177", "missing": "0", "min": "0", "max": "255", "mean": "18", "stdev": "51" }, { "name": "pixel448", "index": "55", "type": "numeric", "distinct": "168", "missing": "0", "min": "0", "max": "227", "mean": "15", "stdev": "39" }, { "name": "pixel450", "index": "56", "type": "numeric", "distinct": "197", "missing": "0", "min": "0", "max": "255", "mean": "23", "stdev": "57" }, { "name": "pixel452", "index": "57", "type": "numeric", "distinct": "229", "missing": "0", "min": "0", "max": "255", "mean": "38", "stdev": "70" }, { "name": "pixel454", "index": "58", "type": "numeric", "distinct": "251", "missing": "0", "min": "0", "max": "255", "mean": "81", "stdev": "90" }, { "name": "pixel463", "index": "59", "type": "numeric", "distinct": "252", "missing": "0", "min": "0", "max": "255", "mean": "142", "stdev": "79" }, { "name": "pixel472", "index": "60", "type": "numeric", "distinct": "245", "missing": "0", "min": "0", "max": "255", "mean": "95", "stdev": "92" }, { "name": "pixel477", "index": "61", "type": "numeric", "distinct": "133", "missing": "0", "min": "0", "max": "230", "mean": "9", "stdev": "28" }, { "name": "pixel483", "index": "62", "type": "numeric", "distinct": "248", "missing": "0", "min": "0", "max": "255", "mean": "95", "stdev": "93" }, { "name": "pixel486", "index": "63", "type": "numeric", "distinct": "254", "missing": "0", "min": "0", "max": "255", "mean": "139", "stdev": "80" }, { "name": "pixel491", "index": "64", "type": "numeric", "distinct": "249", "missing": "0", "min": "0", "max": "255", "mean": "143", "stdev": "79" }, { "name": "pixel492", "index": "65", "type": "numeric", "distinct": "252", "missing": "0", "min": "0", "max": "255", "mean": "154", "stdev": "72" }, { "name": "pixel505", "index": "66", "type": "numeric", "distinct": "121", "missing": "0", "min": "0", "max": "206", "mean": "8", "stdev": "26" }, { "name": "pixel508", "index": "67", "type": "numeric", "distinct": "232", "missing": "0", "min": "0", "max": "255", "mean": "43", "stdev": "71" }, { "name": "pixel510", "index": "68", "type": "numeric", "distinct": "254", "missing": "0", "min": "0", "max": "255", "mean": "86", "stdev": "90" }, { "name": "pixel514", "index": "69", "type": "numeric", "distinct": "254", "missing": "0", "min": "0", "max": "255", "mean": "140", "stdev": "80" }, { "name": "pixel519", "index": "70", "type": "numeric", "distinct": "251", "missing": "0", "min": "0", "max": "255", "mean": "139", "stdev": "80" }, { "name": "pixel532", "index": "71", "type": "numeric", "distinct": "156", "missing": "0", "min": "0", "max": "210", "mean": "14", "stdev": "35" }, { "name": "pixel537", "index": "72", "type": "numeric", "distinct": "254", "missing": "0", "min": "0", "max": "255", "mean": "66", "stdev": "82" }, { "name": "pixel562", "index": "73", "type": "numeric", "distinct": "191", "missing": "0", "min": "0", "max": "255", "mean": "23", "stdev": "57" }, { "name": "pixel566", "index": "74", "type": "numeric", "distinct": "252", "missing": "0", "min": "0", "max": "255", "mean": "82", "stdev": "92" }, { "name": "pixel568", "index": "75", "type": "numeric", "distinct": "254", "missing": "0", "min": "0", "max": "255", "mean": "94", "stdev": "89" }, { "name": "pixel574", "index": "76", "type": "numeric", "distinct": "251", "missing": "0", "min": "0", "max": "255", "mean": "135", "stdev": "83" }, { "name": "pixel596", "index": "77", "type": "numeric", "distinct": "253", "missing": "0", "min": "0", "max": "255", "mean": "87", "stdev": "89" }, { "name": "pixel598", "index": "78", "type": "numeric", "distinct": "251", "missing": "0", "min": "0", "max": "255", "mean": "127", "stdev": "89" }, { "name": "pixel616", "index": "79", "type": "numeric", "distinct": "129", "missing": "0", "min": "0", "max": "213", "mean": "8", "stdev": "28" }, { "name": "pixel625", "index": "80", "type": "numeric", "distinct": "251", "missing": "0", "min": "0", "max": "255", "mean": "102", "stdev": "92" }, { "name": "pixel639", "index": "81", "type": "numeric", "distinct": "242", "missing": "0", "min": "0", "max": "255", "mean": "77", "stdev": "95" }, { "name": "pixel642", "index": "82", "type": "numeric", "distinct": "199", "missing": "0", "min": "0", "max": "255", "mean": "32", "stdev": "69" }, { "name": "pixel651", "index": "83", "type": "numeric", "distinct": "241", "missing": "0", "min": "0", "max": "255", "mean": "73", "stdev": "93" }, { "name": "pixel657", "index": "84", "type": "numeric", "distinct": "246", "missing": "0", "min": "0", "max": "255", "mean": "125", "stdev": "91" }, { "name": "pixel662", "index": "85", "type": "numeric", "distinct": "247", "missing": "0", "min": "0", "max": "255", "mean": "115", "stdev": "93" }, { "name": "pixel667", "index": "86", "type": "numeric", "distinct": "236", "missing": "0", "min": "0", "max": "255", "mean": "69", "stdev": "93" }, { "name": "pixel671", "index": "87", "type": "numeric", "distinct": "146", "missing": "0", "min": "0", "max": "255", "mean": "16", "stdev": "52" }, { "name": "pixel674", "index": "88", "type": "numeric", "distinct": "105", "missing": "0", "min": "0", "max": "255", "mean": "7", "stdev": "33" }, { "name": "pixel681", "index": "89", "type": "numeric", "distinct": "246", "missing": "0", "min": "0", "max": "255", "mean": "84", "stdev": "92" }, { "name": "pixel684", "index": "90", "type": "numeric", "distinct": "242", "missing": "0", "min": "0", "max": "255", "mean": "118", "stdev": "93" }, { "name": "pixel693", "index": "91", "type": "numeric", "distinct": "244", "missing": "0", "min": "0", "max": "255", "mean": "65", "stdev": "85" }, { "name": "pixel695", "index": "92", "type": "numeric", "distinct": "236", "missing": "0", "min": "0", "max": "255", "mean": "60", "stdev": "89" }, { "name": "pixel714", "index": "93", "type": "numeric", "distinct": "240", "missing": "0", "min": "0", "max": "255", "mean": "93", "stdev": "94" }, { "name": "pixel716", "index": "94", "type": "numeric", "distinct": "246", "missing": "0", "min": "0", "max": "255", "mean": "90", "stdev": "94" }, { "name": "pixel749", "index": "95", "type": "numeric", "distinct": "240", "missing": "0", "min": "0", "max": "255", "mean": "46", "stdev": "78" }, { "name": "pixel756", "index": "96", "type": "numeric", "distinct": "21", "missing": "0", "min": "0", "max": "136", "mean": "0", "stdev": "6" }, { "name": "pixel758", "index": "97", "type": "numeric", "distinct": "9", "missing": "0", "min": "0", "max": "80", "mean": "0", "stdev": "2" }, { "name": "pixel770", "index": "98", "type": "numeric", "distinct": "228", "missing": "0", "min": "0", "max": "255", "mean": "47", "stdev": "68" }, { "name": "pixel771", "index": "99", "type": "numeric", "distinct": "224", "missing": "0", "min": "0", "max": "255", "mean": "43", "stdev": "66" } ], "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 }