{ "data_id": "44698", "name": "Fashion-MNIST_seed_0_nrows_2000_nclasses_10_ncols_100_stratify_True", "exact_name": "Fashion-MNIST_seed_0_nrows_2000_nclasses_10_ncols_100_stratify_True", "version": 1, "version_label": "ab18a93c-ddcd-4020-92f4-d3b13149ed9c", "description": "Subsampling of the dataset Fashion-MNIST (40996) 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:43:52", "update_comment": null, "last_update": "2022-11-17 18:43:52", "licence": "Public", "status": "active", "error_message": null, "url": "https:\/\/api.openml.org\/data\/download\/22111460\/dataset", "default_target_attribute": "class", "row_id_attribute": null, "ignore_attribute": null, "runs": 0, "suggest": { "input": [ "Fashion-MNIST_seed_0_nrows_2000_nclasses_10_ncols_100_stratify_True", "Subsampling of the dataset Fashion-MNIST (40996) 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.ch " ], "weight": 5 }, "qualities": { "NumberOfInstances": 2000, "NumberOfFeatures": 101, "NumberOfClasses": 10, "NumberOfMissingValues": 0, "NumberOfInstancesWithMissingValues": 0, "NumberOfNumericFeatures": 100, "NumberOfSymbolicFeatures": 1, "PercentageOfInstancesWithMissingValues": 0, "AutoCorrelation": 0.0975487743871936, "PercentageOfMissingValues": 0, "Dimensionality": 0.0505, "PercentageOfNumericFeatures": 99.00990099009901, "MajorityClassPercentage": 10, "PercentageOfSymbolicFeatures": 0.9900990099009901, "MajorityClassSize": 200, "MinorityClassPercentage": 10, "MinorityClassSize": 200, "NumberOfBinaryFeatures": 0, "PercentageOfBinaryFeatures": 0 }, "tags": [ { "uploader": "38960", "tag": "Machine Learning" }, { "uploader": "38960", "tag": "Mathematics" } ], "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": "pixel2", "index": "0", "type": "numeric", "distinct": "4", "missing": "0", "min": "0", "max": "4", "mean": "0", "stdev": "0" }, { "name": "pixel4", "index": "1", "type": "numeric", "distinct": "9", "missing": "0", "min": "0", "max": "51", "mean": "0", "stdev": "2" }, { "name": "pixel7", "index": "2", "type": "numeric", "distinct": "32", "missing": "0", "min": "0", "max": "163", "mean": "1", "stdev": "6" }, { "name": "pixel12", "index": "3", "type": "numeric", "distinct": "232", "missing": "0", "min": "0", "max": "253", "mean": "43", "stdev": "64" }, { "name": "pixel16", "index": "4", "type": "numeric", "distinct": "231", "missing": "0", "min": "0", "max": "255", "mean": "52", "stdev": "68" }, { "name": "pixel21", "index": "5", "type": "numeric", "distinct": "85", "missing": "0", "min": "0", "max": "208", "mean": "3", "stdev": "18" }, { "name": "pixel24", "index": "6", "type": "numeric", "distinct": "27", "missing": "0", "min": "0", "max": "165", "mean": "1", "stdev": "10" }, { "name": "pixel29", "index": "7", "type": "numeric", "distinct": "2", "missing": "0", "min": "0", "max": "2", "mean": "0", "stdev": "0" }, { "name": "pixel38", "index": "8", "type": "numeric", "distinct": "240", "missing": "0", "min": "0", "max": "255", "mean": "51", "stdev": "81" }, { "name": "pixel52", "index": "9", "type": "numeric", "distinct": "56", "missing": "0", "min": "0", "max": "255", "mean": "3", "stdev": "24" }, { "name": "pixel56", "index": "10", "type": "numeric", "distinct": "5", "missing": "0", "min": "0", "max": "91", "mean": "0", "stdev": "2" }, { "name": "pixel58", "index": "11", "type": "numeric", "distinct": "6", "missing": "0", "min": "0", "max": "111", "mean": "0", "stdev": "2" }, { "name": "pixel65", "index": "12", "type": "numeric", "distinct": "232", "missing": "0", "min": "0", "max": "255", "mean": "49", "stdev": "78" }, { "name": "pixel66", "index": "13", "type": "numeric", "distinct": "249", "missing": "0", "min": "0", "max": "255", "mean": "69", "stdev": "86" }, { "name": "pixel91", "index": "14", "type": "numeric", "distinct": "216", "missing": "0", "min": "0", "max": "255", "mean": "33", "stdev": "67" }, { "name": "pixel102", "index": "15", "type": "numeric", "distinct": "251", "missing": "0", "min": "0", "max": "255", "mean": "101", "stdev": "91" }, { "name": "pixel122", "index": "16", "type": "numeric", "distinct": "247", "missing": "0", "min": "0", "max": "255", "mean": "88", "stdev": "91" }, { "name": "pixel126", "index": "17", "type": "numeric", "distinct": "250", "missing": "0", "min": "0", "max": "255", "mean": "104", "stdev": "94" }, { "name": "pixel177", "index": "18", "type": "numeric", "distinct": "245", "missing": "0", "min": "0", "max": "255", "mean": "82", "stdev": "90" }, { "name": "pixel186", "index": "19", "type": "numeric", "distinct": "252", "missing": "0", "min": "0", "max": "255", "mean": "118", "stdev": "87" }, { "name": "pixel189", "index": "20", "type": "numeric", "distinct": "252", "missing": "0", "min": "0", "max": "255", "mean": "94", "stdev": "91" }, { "name": "pixel196", "index": "21", "type": "numeric", "distinct": "62", "missing": "0", "min": "0", "max": "192", "mean": "3", "stdev": "15" }, { "name": "pixel206", "index": "22", "type": "numeric", "distinct": "250", "missing": "0", "min": "0", "max": "255", "mean": "96", "stdev": "90" }, { "name": "pixel213", "index": "23", "type": "numeric", "distinct": "252", "missing": "0", "min": "0", "max": "255", "mean": "125", "stdev": "85" }, { "name": "pixel217", "index": "24", "type": "numeric", "distinct": "254", "missing": "0", "min": "0", "max": "255", "mean": "102", "stdev": "92" }, { "name": "pixel235", "index": "25", "type": "numeric", "distinct": "248", "missing": "0", "min": "0", "max": "255", "mean": "105", "stdev": "91" }, { "name": "pixel248", "index": "26", "type": "numeric", "distinct": "248", "missing": "0", "min": "0", "max": "255", "mean": "67", "stdev": "87" }, { "name": "pixel255", "index": "27", "type": "numeric", "distinct": "120", "missing": "0", "min": "0", "max": "255", "mean": "9", "stdev": "36" }, { "name": "pixel261", "index": "28", "type": "numeric", "distinct": "242", "missing": "0", "min": "0", "max": "255", "mean": "91", "stdev": "95" }, { "name": "pixel274", "index": "29", "type": "numeric", "distinct": "248", "missing": "0", "min": "0", "max": "255", "mean": "104", "stdev": "94" }, { "name": "pixel280", "index": "30", "type": "numeric", "distinct": "97", "missing": "0", "min": "0", "max": "233", "mean": "5", "stdev": "23" }, { "name": "pixel282", "index": "31", "type": "numeric", "distinct": "85", "missing": "0", "min": "0", "max": "255", "mean": "6", "stdev": "32" }, { "name": "pixel283", "index": "32", "type": "numeric", "distinct": "120", "missing": "0", "min": "0", "max": "255", "mean": "9", "stdev": "37" }, { "name": "pixel284", "index": "33", "type": "numeric", "distinct": "174", "missing": "0", "min": "0", "max": "255", "mean": "18", "stdev": "52" }, { "name": "pixel291", "index": "34", "type": "numeric", "distinct": "249", "missing": "0", "min": "0", "max": "255", "mean": "107", "stdev": "90" }, { "name": "pixel293", "index": "35", "type": "numeric", "distinct": "253", "missing": "0", "min": "0", "max": "255", "mean": "120", "stdev": "87" }, { "name": "pixel296", "index": "36", "type": "numeric", "distinct": "252", "missing": "0", "min": "0", "max": "255", "mean": "147", "stdev": "76" }, { "name": "pixel304", "index": "37", "type": "numeric", "distinct": "249", "missing": "0", "min": "0", "max": "255", "mean": "77", "stdev": "88" }, { "name": "pixel307", "index": "38", "type": "numeric", "distinct": "215", "missing": "0", "min": "0", "max": "255", "mean": "30", "stdev": "65" }, { "name": "pixel321", "index": "39", "type": "numeric", "distinct": "251", "missing": "0", "min": "0", "max": "255", "mean": "130", "stdev": "83" }, { "name": "pixel340", "index": "40", "type": "numeric", "distinct": "162", "missing": "0", "min": "0", "max": "255", "mean": "17", "stdev": "49" }, { "name": "pixel348", "index": "41", "type": "numeric", "distinct": "254", "missing": "0", "min": "0", "max": "255", "mean": "131", "stdev": "82" }, { "name": "pixel352", "index": "42", "type": "numeric", "distinct": "251", "missing": "0", "min": "0", "max": "255", "mean": "152", "stdev": "73" }, { "name": "pixel369", "index": "43", "type": "numeric", "distinct": "227", "missing": "0", "min": "0", "max": "255", "mean": "37", "stdev": "70" }, { "name": "pixel382", "index": "44", "type": "numeric", "distinct": "251", "missing": "0", "min": "0", "max": "255", "mean": "154", "stdev": "71" }, { "name": "pixel385", "index": "45", "type": "numeric", "distinct": "253", "missing": "0", "min": "0", "max": "255", "mean": "127", "stdev": "91" }, { "name": "pixel389", "index": "46", "type": "numeric", "distinct": "241", "missing": "0", "min": "0", "max": "255", "mean": "70", "stdev": "89" }, { "name": "pixel390", "index": "47", "type": "numeric", "distinct": "228", "missing": "0", "min": "0", "max": "255", "mean": "58", "stdev": "86" }, { "name": "pixel394", "index": "48", "type": "numeric", "distinct": "135", "missing": "0", "min": "0", "max": "255", "mean": "11", "stdev": "41" }, { "name": "pixel395", "index": "49", "type": "numeric", "distinct": "165", "missing": "0", "min": "0", "max": "255", "mean": "15", "stdev": "46" }, { "name": "pixel397", "index": "50", "type": "numeric", "distinct": "238", "missing": "0", "min": "0", "max": "255", "mean": "43", "stdev": "72" }, { "name": "pixel406", "index": "51", "type": "numeric", "distinct": "247", "missing": "0", "min": "0", "max": "255", "mean": "141", "stdev": "78" }, { "name": "pixel424", "index": "52", "type": "numeric", "distinct": "220", "missing": "0", "min": "0", "max": "255", "mean": "30", "stdev": "63" }, { "name": "pixel435", "index": "53", "type": "numeric", "distinct": "250", "missing": "0", "min": "0", "max": "255", "mean": "140", "stdev": "79" }, { "name": "pixel437", "index": "54", "type": "numeric", "distinct": "251", "missing": "0", "min": "0", "max": "255", "mean": "158", "stdev": "69" }, { "name": "pixel438", "index": "55", "type": "numeric", "distinct": "248", "missing": "0", "min": "0", "max": "255", "mean": "158", "stdev": "68" }, { "name": "pixel444", "index": "56", "type": "numeric", "distinct": "251", "missing": "0", "min": "0", "max": "255", "mean": "92", "stdev": "92" }, { "name": "pixel452", "index": "57", "type": "numeric", "distinct": "222", "missing": "0", "min": "0", "max": "255", "mean": "35", "stdev": "67" }, { "name": "pixel458", "index": "58", "type": "numeric", "distinct": "254", "missing": "0", "min": "0", "max": "255", "mean": "135", "stdev": "81" }, { "name": "pixel474", "index": "59", "type": "numeric", "distinct": "232", "missing": "0", "min": "0", "max": "255", "mean": "61", "stdev": "86" }, { "name": "pixel475", "index": "60", "type": "numeric", "distinct": "227", "missing": "0", "min": "0", "max": "255", "mean": "55", "stdev": "87" }, { "name": "pixel484", "index": "61", "type": "numeric", "distinct": "253", "missing": "0", "min": "0", "max": "255", "mean": "102", "stdev": "92" }, { "name": "pixel487", "index": "62", "type": "numeric", "distinct": "254", "missing": "0", "min": "0", "max": "255", "mean": "153", "stdev": "71" }, { "name": "pixel490", "index": "63", "type": "numeric", "distinct": "252", "missing": "0", "min": "0", "max": "255", "mean": "146", "stdev": "76" }, { "name": "pixel509", "index": "64", "type": "numeric", "distinct": "245", "missing": "0", "min": "0", "max": "255", "mean": "62", "stdev": "80" }, { "name": "pixel511", "index": "65", "type": "numeric", "distinct": "254", "missing": "0", "min": "0", "max": "255", "mean": "93", "stdev": "92" }, { "name": "pixel514", "index": "66", "type": "numeric", "distinct": "254", "missing": "0", "min": "0", "max": "255", "mean": "137", "stdev": "80" }, { "name": "pixel515", "index": "67", "type": "numeric", "distinct": "252", "missing": "0", "min": "0", "max": "255", "mean": "149", "stdev": "73" }, { "name": "pixel521", "index": "68", "type": "numeric", "distinct": "255", "missing": "0", "min": "0", "max": "255", "mean": "154", "stdev": "72" }, { "name": "pixel526", "index": "69", "type": "numeric", "distinct": "254", "missing": "0", "min": "0", "max": "255", "mean": "105", "stdev": "94" }, { "name": "pixel543", "index": "70", "type": "numeric", "distinct": "253", "missing": "0", "min": "0", "max": "255", "mean": "146", "stdev": "77" }, { "name": "pixel546", "index": "71", "type": "numeric", "distinct": "253", "missing": "0", "min": "0", "max": "255", "mean": "139", "stdev": "81" }, { "name": "pixel554", "index": "72", "type": "numeric", "distinct": "251", "missing": "0", "min": "0", "max": "255", "mean": "99", "stdev": "93" }, { "name": "pixel557", "index": "73", "type": "numeric", "distinct": "245", "missing": "0", "min": "0", "max": "255", "mean": "64", "stdev": "84" }, { "name": "pixel562", "index": "74", "type": "numeric", "distinct": "182", "missing": "0", "min": "0", "max": "255", "mean": "21", "stdev": "55" }, { "name": "pixel565", "index": "75", "type": "numeric", "distinct": "247", "missing": "0", "min": "0", "max": "255", "mean": "59", "stdev": "81" }, { "name": "pixel576", "index": "76", "type": "numeric", "distinct": "250", "missing": "0", "min": "0", "max": "255", "mean": "139", "stdev": "82" }, { "name": "pixel583", "index": "77", "type": "numeric", "distinct": "252", "missing": "0", "min": "0", "max": "255", "mean": "89", "stdev": "94" }, { "name": "pixel588", "index": "78", "type": "numeric", "distinct": "124", "missing": "0", "min": "0", "max": "185", "mean": "8", "stdev": "26" }, { "name": "pixel595", "index": "79", "type": "numeric", "distinct": "249", "missing": "0", "min": "0", "max": "255", "mean": "84", "stdev": "93" }, { "name": "pixel606", "index": "80", "type": "numeric", "distinct": "252", "missing": "0", "min": "0", "max": "255", "mean": "132", "stdev": "88" }, { "name": "pixel609", "index": "81", "type": "numeric", "distinct": "253", "missing": "0", "min": "0", "max": "255", "mean": "87", "stdev": "90" }, { "name": "pixel620", "index": "82", "type": "numeric", "distinct": "214", "missing": "0", "min": "0", "max": "255", "mean": "33", "stdev": "67" }, { "name": "pixel627", "index": "83", "type": "numeric", "distinct": "251", "missing": "0", "min": "0", "max": "255", "mean": "130", "stdev": "87" }, { "name": "pixel636", "index": "84", "type": "numeric", "distinct": "251", "missing": "0", "min": "0", "max": "255", "mean": "98", "stdev": "92" }, { "name": "pixel637", "index": "85", "type": "numeric", "distinct": "248", "missing": "0", "min": "0", "max": "255", "mean": "78", "stdev": "88" }, { "name": "pixel653", "index": "86", "type": "numeric", "distinct": "252", "missing": "0", "min": "0", "max": "255", "mean": "94", "stdev": "93" }, { "name": "pixel656", "index": "87", "type": "numeric", "distinct": "253", "missing": "0", "min": "0", "max": "255", "mean": "128", "stdev": "91" }, { "name": "pixel659", "index": "88", "type": "numeric", "distinct": "248", "missing": "0", "min": "0", "max": "255", "mean": "108", "stdev": "95" }, { "name": "pixel677", "index": "89", "type": "numeric", "distinct": "242", "missing": "0", "min": "0", "max": "255", "mean": "40", "stdev": "72" }, { "name": "pixel679", "index": "90", "type": "numeric", "distinct": "241", "missing": "0", "min": "0", "max": "255", "mean": "63", "stdev": "87" }, { "name": "pixel691", "index": "91", "type": "numeric", "distinct": "248", "missing": "0", "min": "0", "max": "255", "mean": "95", "stdev": "92" }, { "name": "pixel697", "index": "92", "type": "numeric", "distinct": "210", "missing": "0", "min": "0", "max": "255", "mean": "32", "stdev": "66" }, { "name": "pixel706", "index": "93", "type": "numeric", "distinct": "233", "missing": "0", "min": "0", "max": "255", "mean": "50", "stdev": "82" }, { "name": "pixel712", "index": "94", "type": "numeric", "distinct": "248", "missing": "0", "min": "0", "max": "255", "mean": "104", "stdev": "95" }, { "name": "pixel726", "index": "95", "type": "numeric", "distinct": "149", "missing": "0", "min": "0", "max": "255", "mean": "13", "stdev": "44" }, { "name": "pixel734", "index": "96", "type": "numeric", "distinct": "215", "missing": "0", "min": "0", "max": "255", "mean": "43", "stdev": "78" }, { "name": "pixel736", "index": "97", "type": "numeric", "distinct": "242", "missing": "0", "min": "0", "max": "255", "mean": "47", "stdev": "79" }, { "name": "pixel759", "index": "98", "type": "numeric", "distinct": "32", "missing": "0", "min": "0", "max": "183", "mean": "1", "stdev": "8" }, { "name": "pixel767", "index": "99", "type": "numeric", "distinct": "225", "missing": "0", "min": "0", "max": "254", "mean": "43", "stdev": "63" } ], "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 }