DEVELOPMENT... { "data_id": "44511", "name": "APSFailure_seed_3_nrows_2000_nclasses_10_ncols_100_stratify_True", "exact_name": "APSFailure_seed_3_nrows_2000_nclasses_10_ncols_100_stratify_True", "version": 1, "version_label": "227e4fd4-6aee-4e35-98ee-155d1988bc52", "description": "Subsampling of the dataset APSFailure (41138) 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": "David Wilson", "uploader_id": 32840, "visibility": "public", "creator": "\"Eddie Bergman\"", "contributor": null, "date": "2022-11-17 18:24:16", "update_comment": null, "last_update": "2022-11-17 18:24:16", "licence": "CC0", "status": "active", "error_message": null, "url": "https:\/\/api.openml.org\/data\/download\/22111273\/dataset", "default_target_attribute": "class", "row_id_attribute": null, "ignore_attribute": null, "runs": 0, "suggest": { "input": [ "APSFailure_seed_3_nrows_2000_nclasses_10_ncols_100_stratify_True", "Subsampling of the dataset APSFailure (41138) 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": 2, "NumberOfMissingValues": 15654, "NumberOfInstancesWithMissingValues": 1885, "NumberOfNumericFeatures": 100, "NumberOfSymbolicFeatures": 1, "PercentageOfSymbolicFeatures": 0.9900990099009901, "AutoCorrelation": 0.9639819909954978, "PercentageOfNumericFeatures": 99.00990099009901, "PercentageOfMissingValues": 7.74950495049505, "PercentageOfInstancesWithMissingValues": 94.25, "PercentageOfBinaryFeatures": 0.9900990099009901, "NumberOfBinaryFeatures": 1, "MinorityClassSize": 36, "MinorityClassPercentage": 1.7999999999999998, "MajorityClassSize": 1964, "MajorityClassPercentage": 98.2, "Dimensionality": 0.0505 }, "tags": [], "features": [ { "name": "class", "index": "100", "type": "nominal", "distinct": "2", "missing": "0", "target": "1", "distr": [ [ "pos", "neg" ], [ [ "36", "0" ], [ "0", "1964" ] ] ] }, { "name": "aa_000", "index": "0", "type": "numeric", "distinct": "1603", "missing": "0", "min": "0", "max": "2038562", "mean": "56609", "stdev": "127268" }, { "name": "ac_000", "index": "1", "type": "numeric", "distinct": "509", "missing": "114", "min": "0", "max": "2130706504", "mean": "367168738", "stdev": "804896694" }, { "name": "ad_000", "index": "2", "type": "numeric", "distinct": "499", "missing": "506", "min": "0", "max": "32902", "mean": "435", "stdev": "1175" }, { "name": "af_000", "index": "3", "type": "numeric", "distinct": "34", "missing": "84", "min": "0", "max": "6506", "mean": "13", "stdev": "197" }, { "name": "ag_000", "index": "4", "type": "numeric", "distinct": "13", "missing": "15", "min": "0", "max": "16186", "mean": "26", "stdev": "575" }, { "name": "ag_001", "index": "5", "type": "numeric", "distinct": "38", "missing": "15", "min": "0", "max": "530916", "mean": "543", "stdev": "12605" }, { "name": "ag_002", "index": "6", "type": "numeric", "distinct": "102", "missing": "15", "min": "0", "max": "2260600", "mean": "6223", "stdev": "71849" }, { "name": "ag_004", "index": "7", "type": "numeric", "distinct": "1529", "missing": "15", "min": "0", "max": "22679780", "mean": "365781", "stdev": "1692490" }, { "name": "ag_006", "index": "8", "type": "numeric", "distinct": "1889", "missing": "15", "min": "0", "max": "55696826", "mean": "1627341", "stdev": "3463733" }, { "name": "ag_007", "index": "9", "type": "numeric", "distinct": "1434", "missing": "15", "min": "0", "max": "39666126", "mean": "501560", "stdev": "1552609" }, { "name": "ah_000", "index": "10", "type": "numeric", "distinct": "1955", "missing": "13", "min": "0", "max": "53165264", "mean": "1789478", "stdev": "4029089" }, { "name": "ai_000", "index": "11", "type": "numeric", "distinct": "184", "missing": "11", "min": "0", "max": "3513716", "mean": "6730", "stdev": "103261" }, { "name": "an_000", "index": "12", "type": "numeric", "distinct": "1964", "missing": "13", "min": "0", "max": "83942092", "mean": "3417017", "stdev": "7322463" }, { "name": "ao_000", "index": "13", "type": "numeric", "distinct": "1964", "missing": "10", "min": "0", "max": "66404488", "mean": "2938983", "stdev": "6229687" }, { "name": "ar_000", "index": "14", "type": "numeric", "distinct": "18", "missing": "92", "min": "0", "max": "86", "mean": "0", "stdev": "3" }, { "name": "au_000", "index": "15", "type": "numeric", "distinct": "3", "missing": "11", "min": "0", "max": "4448", "mean": "2", "stdev": "100" }, { "name": "av_000", "index": "16", "type": "numeric", "distinct": "703", "missing": "84", "min": "0", "max": "40978", "mean": "929", "stdev": "2565" }, { "name": "ay_000", "index": "17", "type": "numeric", "distinct": "19", "missing": "15", "min": "0", "max": "8266008", "mean": "8712", "stdev": "232841" }, { "name": "ay_001", "index": "18", "type": "numeric", "distinct": "34", "missing": "15", "min": "0", "max": "80525378", "mean": "46662", "stdev": "1816899" }, { "name": "ay_002", "index": "19", "type": "numeric", "distinct": "34", "missing": "15", "min": "0", "max": "2409848", "mean": "2362", "stdev": "57526" }, { "name": "ay_003", "index": "20", "type": "numeric", "distinct": "37", "missing": "15", "min": "0", "max": "1992442", "mean": "3071", "stdev": "60672" }, { "name": "ay_005", "index": "21", "type": "numeric", "distinct": "987", "missing": "15", "min": "0", "max": "40810048", "mean": "110270", "stdev": "1402261" }, { "name": "ay_007", "index": "22", "type": "numeric", "distinct": "1712", "missing": "15", "min": "0", "max": "52814128", "mean": "1391414", "stdev": "3687011" }, { "name": "ay_008", "index": "23", "type": "numeric", "distinct": "1773", "missing": "15", "min": "0", "max": "57654992", "mean": "1097778", "stdev": "3998184" }, { "name": "ay_009", "index": "24", "type": "numeric", "distinct": "26", "missing": "15", "min": "0", "max": "432512", "mean": "589", "stdev": "12875" }, { "name": "az_000", "index": "25", "type": "numeric", "distinct": "1430", "missing": "15", "min": "0", "max": "1357942", "mean": "7236", "stdev": "40209" }, { "name": "az_003", "index": "26", "type": "numeric", "distinct": "1537", "missing": "15", "min": "0", "max": "7498736", "mean": "84109", "stdev": "363308" }, { "name": "az_006", "index": "27", "type": "numeric", "distinct": "1052", "missing": "15", "min": "0", "max": "21398928", "mean": "88366", "stdev": "753017" }, { "name": "az_007", "index": "28", "type": "numeric", "distinct": "223", "missing": "15", "min": "0", "max": "2961530", "mean": "10660", "stdev": "117643" }, { "name": "az_009", "index": "29", "type": "numeric", "distinct": "26", "missing": "15", "min": "0", "max": "31632", "mean": "21", "stdev": "715" }, { "name": "ba_001", "index": "30", "type": "numeric", "distinct": "1865", "missing": "17", "min": "0", "max": "22568536", "mean": "836987", "stdev": "1819006" }, { "name": "ba_005", "index": "31", "type": "numeric", "distinct": "1597", "missing": "17", "min": "0", "max": "6209576", "mean": "183438", "stdev": "436728" }, { "name": "ba_006", "index": "32", "type": "numeric", "distinct": "1576", "missing": "17", "min": "0", "max": "9304722", "mean": "207724", "stdev": "555416" }, { "name": "ba_008", "index": "33", "type": "numeric", "distinct": "768", "missing": "17", "min": "0", "max": "2036554", "mean": "32000", "stdev": "151521" }, { "name": "bc_000", "index": "34", "type": "numeric", "distinct": "417", "missing": "93", "min": "0", "max": "47480", "mean": "518", "stdev": "2589" }, { "name": "bd_000", "index": "35", "type": "numeric", "distinct": "589", "missing": "93", "min": "0", "max": "101970", "mean": "777", "stdev": "3448" }, { "name": "bf_000", "index": "36", "type": "numeric", "distinct": "177", "missing": "84", "min": "0", "max": "5910", "mean": "65", "stdev": "313" }, { "name": "bh_000", "index": "37", "type": "numeric", "distinct": "1700", "missing": "13", "min": "0", "max": "2082350", "mean": "57417", "stdev": "151674" }, { "name": "bi_000", "index": "38", "type": "numeric", "distinct": "1963", "missing": "10", "min": "0", "max": "41993586", "mean": "465549", "stdev": "1518707" }, { "name": "bj_000", "index": "39", "type": "numeric", "distinct": "1933", "missing": "10", "min": "0", "max": "36734632", "mean": "500700", "stdev": "1804603" }, { "name": "bk_000", "index": "40", "type": "numeric", "distinct": "1142", "missing": "715", "min": "0", "max": "1310700", "mean": "279638", "stdev": "262344" }, { "name": "bm_000", "index": "41", "type": "numeric", "distinct": "560", "missing": "1281", "min": "0", "max": "1310700", "mean": "403115", "stdev": "409233" }, { "name": "bn_000", "index": "42", "type": "numeric", "distinct": "377", "missing": "1438", "min": "0", "max": "1310700", "mean": "476839", "stdev": "473808" }, { "name": "bo_000", "index": "43", "type": "numeric", "distinct": "290", "missing": "1516", "min": "0", "max": "1310700", "mean": "515239", "stdev": "507354" }, { "name": "bp_000", "index": "44", "type": "numeric", "distinct": "244", "missing": "1555", "min": "0", "max": "1310700", "mean": "547592", "stdev": "527308" }, { "name": "bt_000", "index": "45", "type": "numeric", "distinct": "1968", "missing": "7", "min": "0", "max": "2038561", "mean": "56808", "stdev": "127447" }, { "name": "bv_000", "index": "46", "type": "numeric", "distinct": "1968", "missing": "15", "min": "0", "max": "126355262", "mean": "4428209", "stdev": "10263599" }, { "name": "bz_000", "index": "47", "type": "numeric", "distinct": "1198", "missing": "92", "min": "0", "max": "13188810", "mean": "97042", "stdev": "547739" }, { "name": "ca_000", "index": "48", "type": "numeric", "distinct": "1790", "missing": "148", "min": "0", "max": "120922", "mean": "40262", "stdev": "37630" }, { "name": "cd_000", "index": "49", "type": "numeric", "distinct": "1", "missing": "16", "min": "1209600", "max": "1209600", "mean": "1209600", "stdev": "0" }, { "name": "cf_000", "index": "50", "type": "numeric", "distinct": "51", "missing": "506", "min": "0", "max": "39800", "mean": "48", "stdev": "1071" }, { "name": "ci_000", "index": "51", "type": "numeric", "distinct": "1962", "missing": "10", "min": "0", "max": "109177846", "mean": "3334527", "stdev": "7449549" }, { "name": "cj_000", "index": "52", "type": "numeric", "distinct": "379", "missing": "10", "min": "0", "max": "33891209", "mean": "105377", "stdev": "1122629" }, { "name": "ck_000", "index": "53", "type": "numeric", "distinct": "1959", "missing": "10", "min": "0", "max": "30656362", "mean": "684449", "stdev": "1984847" }, { "name": "cl_000", "index": "54", "type": "numeric", "distinct": "119", "missing": "329", "min": "0", "max": "122368", "mean": "304", "stdev": "4265" }, { "name": "cm_000", "index": "55", "type": "numeric", "distinct": "330", "missing": "338", "min": "0", "max": "47248", "mean": "296", "stdev": "1669" }, { "name": "cn_000", "index": "56", "type": "numeric", "distinct": "63", "missing": "17", "min": "0", "max": "1803010", "mean": "2052", "stdev": "43061" }, { "name": "cn_002", "index": "57", "type": "numeric", "distinct": "916", "missing": "17", "min": "0", "max": "16779056", "mean": "139405", "stdev": "828090" }, { "name": "cn_005", "index": "58", "type": "numeric", "distinct": "1850", "missing": "17", "min": "0", "max": "58611112", "mean": "1320481", "stdev": "3121263" }, { "name": "cn_007", "index": "59", "type": "numeric", "distinct": "1421", "missing": "17", "min": "0", "max": "22267964", "mean": "66979", "stdev": "567129" }, { "name": "cn_008", "index": "60", "type": "numeric", "distinct": "1174", "missing": "17", "min": "0", "max": "5358318", "mean": "18652", "stdev": "178374" }, { "name": "cn_009", "index": "61", "type": "numeric", "distinct": "509", "missing": "17", "min": "0", "max": "1055412", "mean": "3353", "stdev": "41555" }, { "name": "cp_000", "index": "62", "type": "numeric", "distinct": "367", "missing": "92", "min": "0", "max": "181738", "mean": "588", "stdev": "6152" }, { "name": "cs_007", "index": "63", "type": "numeric", "distinct": "1641", "missing": "15", "min": "0", "max": "471626", "mean": "14018", "stdev": "23586" }, { "name": "cs_009", "index": "64", "type": "numeric", "distinct": "11", "missing": "15", "min": "0", "max": "978", "mean": "1", "stdev": "22" }, { "name": "cv_000", "index": "65", "type": "numeric", "distinct": "1484", "missing": "472", "min": "0", "max": "48845878", "mean": "1991505", "stdev": "3492863" }, { "name": "cx_000", "index": "66", "type": "numeric", "distinct": "1277", "missing": "472", "min": "0", "max": "27116462", "mean": "338905", "stdev": "1345777" }, { "name": "cy_000", "index": "67", "type": "numeric", "distinct": "96", "missing": "472", "min": "0", "max": "43606", "mean": "75", "stdev": "1246" }, { "name": "cz_000", "index": "68", "type": "numeric", "distinct": "831", "missing": "472", "min": "0", "max": "18446472", "mean": "27188", "stdev": "473354" }, { "name": "da_000", "index": "69", "type": "numeric", "distinct": "18", "missing": "472", "min": "0", "max": "20488", "mean": "15", "stdev": "524" }, { "name": "db_000", "index": "70", "type": "numeric", "distinct": "54", "missing": "472", "min": "0", "max": "680", "mean": "14", "stdev": "35" }, { "name": "dd_000", "index": "71", "type": "numeric", "distinct": "1131", "missing": "84", "min": "0", "max": "238760", "mean": "2956", "stdev": "8568" }, { "name": "df_000", "index": "72", "type": "numeric", "distinct": "37", "missing": "131", "min": "0", "max": "2797800", "mean": "2642", "stdev": "69373" }, { "name": "dh_000", "index": "73", "type": "numeric", "distinct": "117", "missing": "131", "min": "0", "max": "1040700", "mean": "1297", "stdev": "26644" }, { "name": "di_000", "index": "74", "type": "numeric", "distinct": "288", "missing": "131", "min": "0", "max": "13046180", "mean": "39117", "stdev": "441318" }, { "name": "dj_000", "index": "75", "type": "numeric", "distinct": "8", "missing": "131", "min": "0", "max": "4280", "mean": "3", "stdev": "99" }, { "name": "dk_000", "index": "76", "type": "numeric", "distinct": "11", "missing": "131", "min": "0", "max": "1050738", "mean": "1448", "stdev": "34017" }, { "name": "dl_000", "index": "77", "type": "numeric", "distinct": "8", "missing": "131", "min": "0", "max": "15202350", "mean": "10958", "stdev": "364890" }, { "name": "dm_000", "index": "78", "type": "numeric", "distinct": "9", "missing": "131", "min": "0", "max": "4982828", "mean": "3308", "stdev": "116703" }, { "name": "dn_000", "index": "79", "type": "numeric", "distinct": "1658", "missing": "15", "min": "0", "max": "1730472", "mean": "33113", "stdev": "96153" }, { "name": "dp_000", "index": "80", "type": "numeric", "distinct": "1173", "missing": "93", "min": "0", "max": "209164", "mean": "7336", "stdev": "14249" }, { "name": "dq_000", "index": "81", "type": "numeric", "distinct": "398", "missing": "93", "min": "0", "max": "433592270", "mean": "1280859", "stdev": "12289260" }, { "name": "dr_000", "index": "82", "type": "numeric", "distinct": "367", "missing": "93", "min": "0", "max": "20957910", "mean": "156334", "stdev": "1048887" }, { "name": "dt_000", "index": "83", "type": "numeric", "distinct": "1369", "missing": "93", "min": "0", "max": "400166", "mean": "15478", "stdev": "31396" }, { "name": "du_000", "index": "84", "type": "numeric", "distinct": "1581", "missing": "93", "min": "0", "max": "136103880", "mean": "4202269", "stdev": "10780332" }, { "name": "dv_000", "index": "85", "type": "numeric", "distinct": "1628", "missing": "93", "min": "0", "max": "37888738", "mean": "594423", "stdev": "1731004" }, { "name": "dx_000", "index": "86", "type": "numeric", "distinct": "601", "missing": "92", "min": "0", "max": "69076068", "mean": "698546", "stdev": "3638650" }, { "name": "dy_000", "index": "87", "type": "numeric", "distinct": "404", "missing": "92", "min": "0", "max": "1854406", "mean": "7390", "stdev": "60020" }, { "name": "dz_000", "index": "88", "type": "numeric", "distinct": "3", "missing": "92", "min": "0", "max": "4", "mean": "0", "stdev": "0" }, { "name": "ea_000", "index": "89", "type": "numeric", "distinct": "14", "missing": "92", "min": "0", "max": "128", "mean": "0", "stdev": "5" }, { "name": "eb_000", "index": "90", "type": "numeric", "distinct": "1184", "missing": "131", "min": "0", "max": "1290018710", "mean": "9786239", "stdev": "44276395" }, { "name": "ec_00", "index": "91", "type": "numeric", "distinct": "1542", "missing": "357", "min": "0", "max": "32470", "mean": "1154", "stdev": "2203" }, { "name": "ed_000", "index": "92", "type": "numeric", "distinct": "855", "missing": "329", "min": "0", "max": "34884", "mean": "1274", "stdev": "2345" }, { "name": "ee_000", "index": "93", "type": "numeric", "distinct": "1918", "missing": "15", "min": "0", "max": "41129984", "mean": "722667", "stdev": "2251314" }, { "name": "ee_001", "index": "94", "type": "numeric", "distinct": "1901", "missing": "15", "min": "0", "max": "61151062", "mean": "754652", "stdev": "2477183" }, { "name": "ee_002", "index": "95", "type": "numeric", "distinct": "1783", "missing": "15", "min": "0", "max": "12061602", "mean": "422596", "stdev": "888107" }, { "name": "ee_007", "index": "96", "type": "numeric", "distinct": "1519", "missing": "15", "min": "0", "max": "17458056", "mean": "303761", "stdev": "1151346" }, { "name": "ee_009", "index": "97", "type": "numeric", "distinct": "761", "missing": "15", "min": "0", "max": "1442184", "mean": "10760", "stdev": "57952" }, { "name": "ef_000", "index": "98", "type": "numeric", "distinct": "4", "missing": "92", "min": "0", "max": "252", "mean": "0", "stdev": "6" }, { "name": "eg_000", "index": "99", "type": "numeric", "distinct": "6", "missing": "92", "min": "0", "max": "162", "mean": "0", "stdev": "4" } ], "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 }