DEVELOPMENT... { "data_id": "44783", "name": "porto-seguro_seed_0_nrows_2000_nclasses_10_ncols_100_stratify_True", "exact_name": "porto-seguro_seed_0_nrows_2000_nclasses_10_ncols_100_stratify_True", "version": 1, "version_label": "e161dd88-5626-4456-9c87-eb82df7c49bb", "description": "Subsampling of the dataset porto-seguro (42742) 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": "David Wilson", "uploader_id": 32840, "visibility": "public", "creator": "\"Eddie Bergman\"", "contributor": null, "date": "2022-11-17 18:54:35", "update_comment": null, "last_update": "2022-11-17 18:54:35", "licence": "Public", "status": "active", "error_message": null, "url": "https:\/\/api.openml.org\/data\/download\/22111545\/dataset", "default_target_attribute": "target", "row_id_attribute": null, "ignore_attribute": null, "runs": 0, "suggest": { "input": [ "porto-seguro_seed_0_nrows_2000_nclasses_10_ncols_100_stratify_True", "Subsampling of the dataset porto-seguro (42742) 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.cho " ], "weight": 5 }, "qualities": { "NumberOfInstances": 2000, "NumberOfFeatures": 58, "NumberOfClasses": 2, "NumberOfMissingValues": 2846, "NumberOfInstancesWithMissingValues": 1577, "NumberOfNumericFeatures": 26, "NumberOfSymbolicFeatures": 32, "PercentageOfSymbolicFeatures": 55.172413793103445, "AutoCorrelation": 0.9294647323661831, "PercentageOfNumericFeatures": 44.827586206896555, "PercentageOfMissingValues": 2.453448275862069, "PercentageOfInstancesWithMissingValues": 78.85, "PercentageOfBinaryFeatures": 41.37931034482759, "NumberOfBinaryFeatures": 24, "MinorityClassSize": 73, "MinorityClassPercentage": 3.65, "MajorityClassSize": 1927, "MajorityClassPercentage": 96.35000000000001, "Dimensionality": 0.029 }, "tags": [], "features": [ { "name": "target", "index": "57", "type": "nominal", "distinct": "2", "missing": "0", "target": "1", "distr": [ [ "0", "1" ], [ [ "1927", "0" ], [ "0", "73" ] ] ] }, { "name": "ps_car_10_cat", "index": "30", "type": "nominal", "distinct": "3", "missing": "0", "distr": [ [ "0", "1", "2" ], [ [ "17", "0" ], [ "1909", "73" ], [ "1", "0" ] ] ] }, { "name": "ps_car_09_cat", "index": "29", "type": "nominal", "distinct": "5", "missing": "3", "distr": [ [ "0", "1", "2", "3", "4" ], [ [ "613", "22" ], [ "100", "7" ], [ "1154", "42" ], [ "47", "2" ], [ "10", "0" ] ] ] }, { "name": "ps_car_11_cat", "index": "31", "type": "nominal", "distinct": "104", "missing": "0", "distr": [ [ "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "40", "41", "42", "43", "44", "45", "46", "47", "48", "49", "50", "51", "52", "53", "54", "55", "56", "57", "58", "59", "60", "61", "62", "63", "64", "65", "66", "67", "68", "69", "70", "71", "72", "73", "74", "75", "76", "77", "78", "79", "80", "81", "82", "83", "84", "85", "86", "87", "88", "89", "90", "91", "92", "93", "94", "95", "96", "97", "98", "99", "100", "101", "102", "103", "104" ], [ [ "15", "1" ], [ "6", "0" ], [ "9", "1" ], [ "12", "1" ], [ "36", "4" ], [ "8", "0" ], [ "16", "0" ], [ "7", "0" ], [ "4", "0" ], [ "42", "2" ], [ "25", "1" ], [ "20", "1" ], [ "8", "1" ], [ "7", "0" ], [ "6", "0" ], [ "18", "0" ], [ "11", "0" ], [ "3", "2" ], [ "15", "1" ], [ "9", "0" ], [ "8", "1" ], [ "36", "2" ], [ "3", "0" ], [ "8", "0" ], [ "6", "0" ], [ "10", "0" ], [ "20", "1" ], [ "32", "1" ], [ "12", "1" ], [ "5", "0" ], [ "22", "0" ], [ "40", "2" ], [ "9", "0" ], [ "12", "1" ], [ "1", "0" ], [ "5", "0" ], [ "9", "1" ], [ "29", "0" ], [ "20", "1" ], [ "17", "1" ], [ "13", "0" ], [ "19", "1" ], [ "12", "0" ], [ "20", "2" ], [ "6", "0" ], [ "13", "0" ], [ "10", "1" ], [ "16", "0" ], [ "13", "0" ], [ "8", "0" ], [ "16", "1" ], [ "14", "0" ], [ "15", "0" ], [ "5", "0" ], [ "12", "0" ], [ "2", "1" ], [ "7", "0" ], [ "9", "0" ], [ "4", "1" ], [ "35", "0" ], [ "10", "0" ], [ "12", "0" ], [ "8", "0" ], [ "56", "0" ], [ "44", "0" ], [ "10", "0" ], [ "24", "1" ], [ "35", "0" ], [ "6", "0" ], [ "28", "0" ], [ "9", "0" ], [ "16", "1" ], [ "7", "0" ], [ "18", "1" ], [ "4", "0" ], [ "10", "1" ], [ "13", "0" ], [ "19", "0" ], [ "6", "2" ], [ "19", "1" ], [ "5", "0" ], [ "28", "2" ], [ "34", "1" ], [ "15", "0" ], [ "17", "0" ], [ "14", "1" ], [ "61", "2" ], [ "13", "0" ], [ "11", "1" ], [ "19", "1" ], [ "6", "0" ], [ "33", "1" ], [ "10", "0" ], [ "8", "1" ], [ "13", "0" ], [ "5", "0" ], [ "4", "0" ], [ "13", "0" ], [ "36", "1" ], [ "9", "1" ], [ "26", "1" ], [ "5", "0" ], [ "61", "4" ], [ "297", "15" ] ] ] }, { "name": "ps_car_11", "index": "32", "type": "numeric", "distinct": "4", "missing": "0", "min": "0", "max": "3", "mean": "2", "stdev": "1" }, { "name": "ps_car_12", "index": "33", "type": "numeric", "distinct": "65", "missing": "0", "min": "0", "max": "1", "mean": "0", "stdev": "0" }, { "name": "ps_car_13", "index": "34", "type": "numeric", "distinct": "1846", "missing": "0", "min": "0", "max": "2", "mean": "1", "stdev": "0" }, { "name": "ps_car_14", "index": "35", "type": "numeric", "distinct": "367", "missing": "144", "min": "0", "max": "1", "mean": "0", "stdev": "0" }, { "name": "ps_car_15", "index": "36", "type": "numeric", "distinct": "15", "missing": "0", "min": "0", "max": "4", "mean": "3", "stdev": "1" }, { "name": "ps_calc_01", "index": "37", "type": "numeric", "distinct": "10", "missing": "0", "min": "0", "max": "1", "mean": "0", "stdev": "0" }, { "name": "ps_calc_02", "index": "38", "type": "numeric", "distinct": "10", "missing": "0", "min": "0", "max": "1", "mean": "0", "stdev": "0" }, { "name": "ps_calc_03", "index": "39", "type": "numeric", "distinct": "10", "missing": "0", "min": "0", "max": "1", "mean": "0", "stdev": "0" }, { "name": "ps_calc_04", "index": "40", "type": "numeric", "distinct": "6", "missing": "0", "min": "0", "max": "5", "mean": "2", "stdev": "1" }, { "name": "ps_calc_05", "index": "41", "type": "numeric", "distinct": "7", "missing": "0", "min": "0", "max": "6", "mean": "2", "stdev": "1" }, { "name": "ps_calc_06", "index": "42", "type": "numeric", "distinct": "8", "missing": "0", "min": "3", "max": "10", "mean": "8", "stdev": "1" }, { "name": "ps_calc_07", "index": "43", "type": "numeric", "distinct": "9", "missing": "0", "min": "0", "max": "8", "mean": "3", "stdev": "1" }, { "name": "ps_calc_08", "index": "44", "type": "numeric", "distinct": "9", "missing": "0", "min": "4", "max": "12", "mean": "9", "stdev": "1" }, { "name": "ps_calc_09", "index": "45", "type": "numeric", "distinct": "8", "missing": "0", "min": "0", "max": "7", "mean": "2", "stdev": "1" }, { "name": "ps_calc_10", "index": "46", "type": "numeric", "distinct": "20", "missing": "0", "min": "1", "max": "22", "mean": "8", "stdev": "3" }, { "name": "ps_calc_11", "index": "47", "type": "numeric", "distinct": "15", "missing": "0", "min": "0", "max": "14", "mean": "5", "stdev": "2" }, { "name": "ps_calc_12", "index": "48", "type": "numeric", "distinct": "8", "missing": "0", "min": "0", "max": "7", "mean": "1", "stdev": "1" }, { "name": "ps_calc_13", "index": "49", "type": "numeric", "distinct": "11", "missing": "0", "min": "0", "max": "10", "mean": "3", "stdev": "2" }, { "name": "ps_calc_14", "index": "50", "type": "numeric", "distinct": "20", "missing": "0", "min": "0", "max": "19", "mean": "8", "stdev": "3" }, { "name": "ps_calc_15_bin", "index": "51", "type": "nominal", "distinct": "2", "missing": "0", "distr": [ [ "0", "1" ], [ [ "1677", "61" ], [ "250", "12" ] ] ] }, { "name": "ps_calc_16_bin", "index": "52", "type": "nominal", "distinct": "2", "missing": "0", "distr": [ [ "0", "1" ], [ [ "692", "27" ], [ "1235", "46" ] ] ] }, { "name": "ps_calc_17_bin", "index": "53", "type": "nominal", "distinct": "2", "missing": "0", "distr": [ [ "0", "1" ], [ [ "873", "30" ], [ "1054", "43" ] ] ] }, { "name": "ps_calc_18_bin", "index": "54", "type": "nominal", "distinct": "2", "missing": "0", "distr": [ [ "0", "1" ], [ [ "1380", "49" ], [ "547", "24" ] ] ] }, { "name": "ps_calc_19_bin", "index": "55", "type": "nominal", "distinct": "2", "missing": "0", "distr": [ [ "0", "1" ], [ [ "1254", "56" ], [ "673", "17" ] ] ] }, { "name": "ps_calc_20_bin", "index": "56", "type": "nominal", "distinct": "2", "missing": "0", "distr": [ [ "0", "1" ], [ [ "1641", "61" ], [ "286", "12" ] ] ] }, { "name": "ps_ind_16_bin", "index": "15", "type": "nominal", "distinct": "2", "missing": "0", "distr": [ [ "0", "1" ], [ [ "662", "25" ], [ "1265", "48" ] ] ] }, { "name": "ps_ind_02_cat", "index": "1", "type": "nominal", "distinct": "4", "missing": "0", "distr": [ [ "1", "2", "3", "4" ], [ [ "1406", "49" ], [ "410", "19" ], [ "71", "3" ], [ "40", "2" ] ] ] }, { "name": "ps_ind_03", "index": "2", "type": "numeric", "distinct": "12", "missing": "0", "min": "0", "max": "11", "mean": "4", "stdev": "3" }, { "name": "ps_ind_04_cat", "index": "3", "type": "nominal", "distinct": "2", "missing": "0", "distr": [ [ "0", "1" ], [ [ "1128", "38" ], [ "799", "35" ] ] ] }, { "name": "ps_ind_05_cat", "index": "4", "type": "nominal", "distinct": "7", "missing": "19", "distr": [ [ "0", "1", "2", "3", "4", "5", "6" ], [ [ "1696", "64" ], [ "30", "1" ], [ "11", "1" ], [ "33", "0" ], [ "63", "4" ], [ "10", "0" ], [ "65", "3" ] ] ] }, { "name": "ps_ind_06_bin", "index": "5", "type": "nominal", "distinct": "2", "missing": "0", "distr": [ [ "0", "1" ], [ [ "1138", "48" ], [ "789", "25" ] ] ] }, { "name": "ps_ind_07_bin", "index": "6", "type": "nominal", "distinct": "2", "missing": "0", "distr": [ [ "0", "1" ], [ [ "1388", "50" ], [ "539", "23" ] ] ] }, { "name": "ps_ind_08_bin", "index": "7", "type": "nominal", "distinct": "2", "missing": "0", "distr": [ [ "0", "1" ], [ [ "1656", "60" ], [ "271", "13" ] ] ] }, { "name": "ps_ind_09_bin", "index": "8", "type": "nominal", "distinct": "2", "missing": "0", "distr": [ [ "0", "1" ], [ [ "1599", "61" ], [ "328", "12" ] ] ] }, { "name": "ps_ind_10_bin", "index": "9", "type": "nominal", "distinct": "2", "missing": "0", "distr": [ [ "0", "1" ], [ [ "1926", "73" ], [ "1", "0" ] ] ] }, { "name": "ps_ind_11_bin", "index": "10", "type": "nominal", "distinct": "2", "missing": "0", "distr": [ [ "0", "1" ], [ [ "1925", "73" ], [ "2", "0" ] ] ] }, { "name": "ps_ind_12_bin", "index": "11", "type": "nominal", "distinct": "2", "missing": "0", "distr": [ [ "0", "1" ], [ [ "1904", "71" ], [ "23", "2" ] ] ] }, { "name": "ps_ind_13_bin", "index": "12", "type": "nominal", "distinct": "2", "missing": "0", "distr": [ [ "0", "1" ], [ [ "1924", "73" ], [ "3", "0" ] ] ] }, { "name": "ps_ind_14", "index": "13", "type": "numeric", "distinct": "4", "missing": "0", "min": "0", "max": "4", "mean": "0", "stdev": "0" }, { "name": "ps_ind_15", "index": "14", "type": "numeric", "distinct": "14", "missing": "0", "min": "0", "max": "13", "mean": "7", "stdev": "4" }, { "name": "ps_ind_01", "index": "0", "type": "numeric", "distinct": "8", "missing": "0", "min": "0", "max": "7", "mean": "2", "stdev": "2" }, { "name": "ps_ind_17_bin", "index": "16", "type": "nominal", "distinct": "2", "missing": "0", "distr": [ [ "0", "1" ], [ [ "1711", "65" ], [ "216", "8" ] ] ] }, { "name": "ps_ind_18_bin", "index": "17", "type": "nominal", "distinct": "2", "missing": "0", "distr": [ [ "0", "1" ], [ [ "1610", "58" ], [ "317", "15" ] ] ] }, { "name": "ps_reg_01", "index": "18", "type": "numeric", "distinct": "10", "missing": "0", "min": "0", "max": "1", "mean": "1", "stdev": "0" }, { "name": "ps_reg_02", "index": "19", "type": "numeric", "distinct": "19", "missing": "0", "min": "0", "max": "2", "mean": "0", "stdev": "0" }, { "name": "ps_reg_03", "index": "20", "type": "numeric", "distinct": "1205", "missing": "352", "min": "0", "max": "2", "mean": "1", "stdev": "0" }, { "name": "ps_car_01_cat", "index": "21", "type": "nominal", "distinct": "12", "missing": "0", "distr": [ [ "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11" ], [ [ "15", "0" ], [ "6", "0" ], [ "8", "0" ], [ "20", "1" ], [ "80", "5" ], [ "57", "3" ], [ "196", "1" ], [ "573", "19" ], [ "48", "2" ], [ "68", "5" ], [ "156", "11" ], [ "700", "26" ] ] ] }, { "name": "ps_car_02_cat", "index": "22", "type": "nominal", "distinct": "2", "missing": "1", "distr": [ [ "0", "1" ], [ [ "329", "17" ], [ "1597", "56" ] ] ] }, { "name": "ps_car_03_cat", "index": "23", "type": "nominal", "distinct": "2", "missing": "1378", "distr": [ [ "0", "1" ], [ [ "244", "10" ], [ "350", "18" ] ] ] }, { "name": "ps_car_04_cat", "index": "24", "type": "nominal", "distinct": "9", "missing": "0", "distr": [ [ "0", "1", "2", "3", "4", "5", "6", "7", "8", "9" ], [ [ "1583", "55" ], [ "97", "3" ], [ "80", "5" ], [ "3", "0" ], [ "2", "0" ], [ "1", "0" ], [ "10", "0" ], [ "0", "0" ], [ "82", "5" ], [ "69", "5" ] ] ] }, { "name": "ps_car_05_cat", "index": "25", "type": "nominal", "distinct": "2", "missing": "903", "distr": [ [ "0", "1" ], [ [ "510", "19" ], [ "542", "26" ] ] ] }, { "name": "ps_car_06_cat", "index": "26", "type": "nominal", "distinct": "18", "missing": "0", "distr": [ [ "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17" ], [ [ "341", "15" ], [ "387", "9" ], [ "6", "0" ], [ "42", "2" ], [ "92", "4" ], [ "4", "0" ], [ "81", "1" ], [ "58", "5" ], [ "5", "0" ], [ "56", "2" ], [ "94", "4" ], [ "399", "16" ], [ "11", "0" ], [ "32", "1" ], [ "207", "8" ], [ "78", "4" ], [ "17", "1" ], [ "17", "1" ] ] ] }, { "name": "ps_car_07_cat", "index": "27", "type": "nominal", "distinct": "2", "missing": "46", "distr": [ [ "0", "1" ], [ [ "113", "3" ], [ "1770", "68" ] ] ] }, { "name": "ps_car_08_cat", "index": "28", "type": "nominal", "distinct": "2", "missing": "0", "distr": [ [ "0", "1" ], [ [ "321", "15" ], [ "1606", "58" ] ] ] } ], "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 }