{ "data_id": "44626", "name": "mfeat-factors_seed_3_nrows_2000_nclasses_10_ncols_100_stratify_True", "exact_name": "mfeat-factors_seed_3_nrows_2000_nclasses_10_ncols_100_stratify_True", "version": 1, "version_label": "3d8e459d-4d67-4aa4-9965-e8ec0b504d25", "description": "Subsampling of the dataset mfeat-factors (12) with\n\nseed=3\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:38:11", "update_comment": null, "last_update": "2022-11-17 18:38:11", "licence": "Public", "status": "active", "error_message": null, "url": "https:\/\/api.openml.org\/data\/download\/22111388\/dataset", "kaggle_url": null, "default_target_attribute": "class", "row_id_attribute": null, "ignore_attribute": null, "runs": 0, "suggest": { "input": [ "mfeat-factors_seed_3_nrows_2000_nclasses_10_ncols_100_stratify_True", "Subsampling of the dataset mfeat-factors (12) with seed=3 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.choic " ], "weight": 5 }, "qualities": { "NumberOfInstances": 2000, "NumberOfFeatures": 101, "NumberOfClasses": 10, "NumberOfMissingValues": 0, "NumberOfInstancesWithMissingValues": 0, "NumberOfNumericFeatures": 100, "NumberOfSymbolicFeatures": 1, "PercentageOfBinaryFeatures": 0, "PercentageOfInstancesWithMissingValues": 0, "PercentageOfMissingValues": 0, "AutoCorrelation": 0.9954977488744372, "PercentageOfNumericFeatures": 99.00990099009901, "Dimensionality": 0.0505, "PercentageOfSymbolicFeatures": 0.9900990099009901, "MajorityClassPercentage": 10, "MajorityClassSize": 200, "MinorityClassPercentage": 10, "MinorityClassSize": 200, "NumberOfBinaryFeatures": 0 }, "tags": [], "features": [ { "name": "class", "index": "100", "type": "nominal", "distinct": "10", "missing": "0", "target": "1", "distr": [ [ "1", "2", "3", "4", "5", "6", "7", "8", "9", "10" ], [ [ "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": "att1", "index": "0", "type": "numeric", "distinct": "390", "missing": "0", "min": "67", "max": "515", "mean": "272", "stdev": "91" }, { "name": "att5", "index": "1", "type": "numeric", "distinct": "252", "missing": "0", "min": "437", "max": "823", "mean": "640", "stdev": "49" }, { "name": "att6", "index": "2", "type": "numeric", "distinct": "419", "missing": "0", "min": "439", "max": "1047", "mean": "684", "stdev": "85" }, { "name": "att8", "index": "3", "type": "numeric", "distinct": "39", "missing": "0", "min": "1", "max": "39", "mean": "18", "stdev": "7" }, { "name": "att11", "index": "4", "type": "numeric", "distinct": "19", "missing": "0", "min": "0", "max": "18", "mean": "9", "stdev": "4" }, { "name": "att12", "index": "5", "type": "numeric", "distinct": "18", "missing": "0", "min": "1", "max": "18", "mean": "9", "stdev": "4" }, { "name": "att13", "index": "6", "type": "numeric", "distinct": "336", "missing": "0", "min": "94", "max": "494", "mean": "291", "stdev": "79" }, { "name": "att16", "index": "7", "type": "numeric", "distinct": "351", "missing": "0", "min": "527", "max": "987", "mean": "672", "stdev": "82" }, { "name": "att17", "index": "8", "type": "numeric", "distinct": "257", "missing": "0", "min": "429", "max": "842", "mean": "658", "stdev": "49" }, { "name": "att22", "index": "9", "type": "numeric", "distinct": "25", "missing": "0", "min": "0", "max": "24", "mean": "10", "stdev": "5" }, { "name": "att23", "index": "10", "type": "numeric", "distinct": "18", "missing": "0", "min": "1", "max": "18", "mean": "10", "stdev": "4" }, { "name": "att26", "index": "11", "type": "numeric", "distinct": "439", "missing": "0", "min": "84", "max": "603", "mean": "291", "stdev": "108" }, { "name": "att29", "index": "12", "type": "numeric", "distinct": "422", "missing": "0", "min": "634", "max": "1137", "mean": "963", "stdev": "112" }, { "name": "att33", "index": "13", "type": "numeric", "distinct": "44", "missing": "0", "min": "0", "max": "43", "mean": "20", "stdev": "11" }, { "name": "att35", "index": "14", "type": "numeric", "distinct": "22", "missing": "0", "min": "0", "max": "21", "mean": "9", "stdev": "5" }, { "name": "att39", "index": "15", "type": "numeric", "distinct": "468", "missing": "0", "min": "581", "max": "1226", "mean": "821", "stdev": "114" }, { "name": "att42", "index": "16", "type": "numeric", "distinct": "364", "missing": "0", "min": "602", "max": "1083", "mean": "888", "stdev": "81" }, { "name": "att43", "index": "17", "type": "numeric", "distinct": "34", "missing": "0", "min": "2", "max": "35", "mean": "21", "stdev": "7" }, { "name": "att45", "index": "18", "type": "numeric", "distinct": "44", "missing": "0", "min": "0", "max": "43", "mean": "24", "stdev": "10" }, { "name": "att46", "index": "19", "type": "numeric", "distinct": "23", "missing": "0", "min": "0", "max": "23", "mean": "9", "stdev": "5" }, { "name": "att47", "index": "20", "type": "numeric", "distinct": "22", "missing": "0", "min": "0", "max": "21", "mean": "9", "stdev": "6" }, { "name": "att49", "index": "21", "type": "numeric", "distinct": "300", "missing": "0", "min": "123", "max": "514", "mean": "307", "stdev": "64" }, { "name": "att52", "index": "22", "type": "numeric", "distinct": "413", "missing": "0", "min": "573", "max": "1177", "mean": "817", "stdev": "96" }, { "name": "att54", "index": "23", "type": "numeric", "distinct": "367", "missing": "0", "min": "475", "max": "1011", "mean": "739", "stdev": "78" }, { "name": "att56", "index": "24", "type": "numeric", "distinct": "40", "missing": "0", "min": "1", "max": "40", "mean": "20", "stdev": "9" }, { "name": "att57", "index": "25", "type": "numeric", "distinct": "44", "missing": "0", "min": "0", "max": "43", "mean": "20", "stdev": "11" }, { "name": "att60", "index": "26", "type": "numeric", "distinct": "20", "missing": "0", "min": "1", "max": "20", "mean": "10", "stdev": "3" }, { "name": "att62", "index": "27", "type": "numeric", "distinct": "348", "missing": "0", "min": "125", "max": "580", "mean": "309", "stdev": "79" }, { "name": "att63", "index": "28", "type": "numeric", "distinct": "464", "missing": "0", "min": "442", "max": "1093", "mean": "656", "stdev": "115" }, { "name": "att67", "index": "29", "type": "numeric", "distinct": "41", "missing": "0", "min": "0", "max": "40", "mean": "21", "stdev": "11" }, { "name": "att69", "index": "30", "type": "numeric", "distinct": "43", "missing": "0", "min": "0", "max": "42", "mean": "17", "stdev": "10" }, { "name": "att73", "index": "31", "type": "numeric", "distinct": "304", "missing": "0", "min": "111", "max": "501", "mean": "288", "stdev": "61" }, { "name": "att77", "index": "32", "type": "numeric", "distinct": "313", "missing": "0", "min": "432", "max": "937", "mean": "717", "stdev": "63" }, { "name": "att81", "index": "33", "type": "numeric", "distinct": "41", "missing": "0", "min": "0", "max": "40", "mean": "23", "stdev": "10" }, { "name": "att82", "index": "34", "type": "numeric", "distinct": "25", "missing": "0", "min": "0", "max": "24", "mean": "11", "stdev": "5" }, { "name": "att83", "index": "35", "type": "numeric", "distinct": "20", "missing": "0", "min": "1", "max": "20", "mean": "10", "stdev": "4" }, { "name": "att85", "index": "36", "type": "numeric", "distinct": "301", "missing": "0", "min": "131", "max": "503", "mean": "324", "stdev": "63" }, { "name": "att86", "index": "37", "type": "numeric", "distinct": "460", "missing": "0", "min": "98", "max": "725", "mean": "341", "stdev": "108" }, { "name": "att89", "index": "38", "type": "numeric", "distinct": "350", "missing": "0", "min": "481", "max": "1025", "mean": "723", "stdev": "74" }, { "name": "att92", "index": "39", "type": "numeric", "distinct": "36", "missing": "0", "min": "2", "max": "37", "mean": "23", "stdev": "6" }, { "name": "att94", "index": "40", "type": "numeric", "distinct": "25", "missing": "0", "min": "0", "max": "24", "mean": "11", "stdev": "5" }, { "name": "att95", "index": "41", "type": "numeric", "distinct": "18", "missing": "0", "min": "1", "max": "18", "mean": "10", "stdev": "3" }, { "name": "att96", "index": "42", "type": "numeric", "distinct": "23", "missing": "0", "min": "0", "max": "22", "mean": "13", "stdev": "4" }, { "name": "att98", "index": "43", "type": "numeric", "distinct": "390", "missing": "0", "min": "99", "max": "623", "mean": "306", "stdev": "89" }, { "name": "att99", "index": "44", "type": "numeric", "distinct": "352", "missing": "0", "min": "522", "max": "1047", "mean": "769", "stdev": "77" }, { "name": "att100", "index": "45", "type": "numeric", "distinct": "494", "missing": "0", "min": "460", "max": "1099", "mean": "711", "stdev": "125" }, { "name": "att107", "index": "46", "type": "numeric", "distinct": "22", "missing": "0", "min": "0", "max": "21", "mean": "11", "stdev": "5" }, { "name": "att108", "index": "47", "type": "numeric", "distinct": "20", "missing": "0", "min": "2", "max": "21", "mean": "13", "stdev": "4" }, { "name": "att111", "index": "48", "type": "numeric", "distinct": "590", "missing": "0", "min": "440", "max": "1268", "mean": "757", "stdev": "154" }, { "name": "att112", "index": "49", "type": "numeric", "distinct": "297", "missing": "0", "min": "574", "max": "1043", "mean": "804", "stdev": "63" }, { "name": "att114", "index": "50", "type": "numeric", "distinct": "401", "missing": "0", "min": "536", "max": "1099", "mean": "770", "stdev": "82" }, { "name": "att118", "index": "51", "type": "numeric", "distinct": "18", "missing": "0", "min": "2", "max": "20", "mean": "10", "stdev": "4" }, { "name": "att119", "index": "52", "type": "numeric", "distinct": "23", "missing": "0", "min": "0", "max": "22", "mean": "9", "stdev": "6" }, { "name": "att121", "index": "53", "type": "numeric", "distinct": "279", "missing": "0", "min": "137", "max": "479", "mean": "320", "stdev": "56" }, { "name": "att124", "index": "54", "type": "numeric", "distinct": "398", "missing": "0", "min": "459", "max": "1082", "mean": "727", "stdev": "89" }, { "name": "att125", "index": "55", "type": "numeric", "distinct": "411", "missing": "0", "min": "523", "max": "1045", "mean": "869", "stdev": "102" }, { "name": "att127", "index": "56", "type": "numeric", "distinct": "43", "missing": "0", "min": "0", "max": "42", "mean": "19", "stdev": "10" }, { "name": "att128", "index": "57", "type": "numeric", "distinct": "32", "missing": "0", "min": "2", "max": "35", "mean": "23", "stdev": "5" }, { "name": "att132", "index": "58", "type": "numeric", "distinct": "26", "missing": "0", "min": "0", "max": "25", "mean": "10", "stdev": "5" }, { "name": "att134", "index": "59", "type": "numeric", "distinct": "349", "missing": "0", "min": "96", "max": "548", "mean": "275", "stdev": "80" }, { "name": "att135", "index": "60", "type": "numeric", "distinct": "590", "missing": "0", "min": "523", "max": "1353", "mean": "842", "stdev": "154" }, { "name": "att138", "index": "61", "type": "numeric", "distinct": "326", "missing": "0", "min": "538", "max": "961", "mean": "733", "stdev": "71" }, { "name": "att140", "index": "62", "type": "numeric", "distinct": "35", "missing": "0", "min": "2", "max": "36", "mean": "20", "stdev": "7" }, { "name": "att141", "index": "63", "type": "numeric", "distinct": "35", "missing": "0", "min": "2", "max": "36", "mean": "17", "stdev": "8" }, { "name": "att142", "index": "64", "type": "numeric", "distinct": "23", "missing": "0", "min": "0", "max": "23", "mean": "11", "stdev": "5" }, { "name": "att143", "index": "65", "type": "numeric", "distinct": "19", "missing": "0", "min": "0", "max": "18", "mean": "9", "stdev": "4" }, { "name": "att148", "index": "66", "type": "numeric", "distinct": "492", "missing": "0", "min": "548", "max": "1187", "mean": "799", "stdev": "125" }, { "name": "att149", "index": "67", "type": "numeric", "distinct": "302", "missing": "0", "min": "468", "max": "911", "mean": "728", "stdev": "71" }, { "name": "att150", "index": "68", "type": "numeric", "distinct": "355", "missing": "0", "min": "498", "max": "977", "mean": "685", "stdev": "79" }, { "name": "att152", "index": "69", "type": "numeric", "distinct": "32", "missing": "0", "min": "5", "max": "36", "mean": "20", "stdev": "7" }, { "name": "att154", "index": "70", "type": "numeric", "distinct": "22", "missing": "0", "min": "0", "max": "22", "mean": "8", "stdev": "5" }, { "name": "att155", "index": "71", "type": "numeric", "distinct": "18", "missing": "0", "min": "0", "max": "17", "mean": "9", "stdev": "4" }, { "name": "att156", "index": "72", "type": "numeric", "distinct": "25", "missing": "0", "min": "0", "max": "24", "mean": "13", "stdev": "4" }, { "name": "att157", "index": "73", "type": "numeric", "distinct": "379", "missing": "0", "min": "81", "max": "565", "mean": "317", "stdev": "86" }, { "name": "att158", "index": "74", "type": "numeric", "distinct": "398", "missing": "0", "min": "95", "max": "614", "mean": "312", "stdev": "86" }, { "name": "att161", "index": "75", "type": "numeric", "distinct": "327", "missing": "0", "min": "454", "max": "967", "mean": "756", "stdev": "67" }, { "name": "att162", "index": "76", "type": "numeric", "distinct": "449", "missing": "0", "min": "555", "max": "1202", "mean": "929", "stdev": "109" }, { "name": "att165", "index": "77", "type": "numeric", "distinct": "46", "missing": "0", "min": "0", "max": "45", "mean": "19", "stdev": "12" }, { "name": "att168", "index": "78", "type": "numeric", "distinct": "19", "missing": "0", "min": "0", "max": "18", "mean": "10", "stdev": "3" }, { "name": "att170", "index": "79", "type": "numeric", "distinct": "394", "missing": "0", "min": "93", "max": "604", "mean": "308", "stdev": "83" }, { "name": "att172", "index": "80", "type": "numeric", "distinct": "314", "missing": "0", "min": "387", "max": "948", "mean": "632", "stdev": "69" }, { "name": "att177", "index": "81", "type": "numeric", "distinct": "45", "missing": "0", "min": "0", "max": "44", "mean": "18", "stdev": "12" }, { "name": "att179", "index": "82", "type": "numeric", "distinct": "22", "missing": "0", "min": "0", "max": "21", "mean": "9", "stdev": "5" }, { "name": "att181", "index": "83", "type": "numeric", "distinct": "499", "missing": "0", "min": "69", "max": "674", "mean": "359", "stdev": "124" }, { "name": "att182", "index": "84", "type": "numeric", "distinct": "402", "missing": "0", "min": "87", "max": "796", "mean": "384", "stdev": "86" }, { "name": "att183", "index": "85", "type": "numeric", "distinct": "540", "missing": "0", "min": "582", "max": "1334", "mean": "856", "stdev": "138" }, { "name": "att185", "index": "86", "type": "numeric", "distinct": "460", "missing": "0", "min": "700", "max": "1314", "mean": "1142", "stdev": "123" }, { "name": "att188", "index": "87", "type": "numeric", "distinct": "43", "missing": "0", "min": "0", "max": "43", "mean": "21", "stdev": "9" }, { "name": "att193", "index": "88", "type": "numeric", "distinct": "445", "missing": "0", "min": "124", "max": "673", "mean": "396", "stdev": "102" }, { "name": "att196", "index": "89", "type": "numeric", "distinct": "458", "missing": "0", "min": "601", "max": "1214", "mean": "821", "stdev": "113" }, { "name": "att199", "index": "90", "type": "numeric", "distinct": "46", "missing": "0", "min": "2", "max": "48", "mean": "24", "stdev": "12" }, { "name": "att200", "index": "91", "type": "numeric", "distinct": "41", "missing": "0", "min": "2", "max": "42", "mean": "22", "stdev": "9" }, { "name": "att201", "index": "92", "type": "numeric", "distinct": "44", "missing": "0", "min": "0", "max": "43", "mean": "21", "stdev": "11" }, { "name": "att203", "index": "93", "type": "numeric", "distinct": "25", "missing": "0", "min": "0", "max": "24", "mean": "13", "stdev": "4" }, { "name": "att204", "index": "94", "type": "numeric", "distinct": "19", "missing": "0", "min": "0", "max": "18", "mean": "9", "stdev": "4" }, { "name": "att207", "index": "95", "type": "numeric", "distinct": "550", "missing": "0", "min": "445", "max": "1211", "mean": "727", "stdev": "144" }, { "name": "att210", "index": "96", "type": "numeric", "distinct": "391", "missing": "0", "min": "461", "max": "1049", "mean": "687", "stdev": "83" }, { "name": "att212", "index": "97", "type": "numeric", "distinct": "38", "missing": "0", "min": "1", "max": "38", "mean": "22", "stdev": "8" }, { "name": "att214", "index": "98", "type": "numeric", "distinct": "15", "missing": "0", "min": "4", "max": "18", "mean": "12", "stdev": "3" }, { "name": "att215", "index": "99", "type": "numeric", "distinct": "15", "missing": "0", "min": "5", "max": "19", "mean": "14", "stdev": "2" } ], "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 }