{ "data_id": "44547", "name": "gina_seed_4_nrows_2000_nclasses_10_ncols_100_stratify_True", "exact_name": "gina_seed_4_nrows_2000_nclasses_10_ncols_100_stratify_True", "version": 1, "version_label": "40769398-0e53-4a02-b6f5-2b08e4a03b06", "description": "Subsampling of the dataset gina (41158) with\n\nseed=4\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:32:13", "update_comment": null, "last_update": "2022-11-17 18:32:13", "licence": "Public", "status": "active", "error_message": null, "url": "https:\/\/api.openml.org\/data\/download\/22111309\/dataset", "default_target_attribute": "class", "row_id_attribute": null, "ignore_attribute": null, "runs": 0, "suggest": { "input": [ "gina_seed_4_nrows_2000_nclasses_10_ncols_100_stratify_True", "Subsampling of the dataset gina (41158) with seed=4 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.choice( cla " ], "weight": 5 }, "qualities": { "NumberOfInstances": 2000, "NumberOfFeatures": 101, "NumberOfClasses": 2, "NumberOfMissingValues": 0, "NumberOfInstancesWithMissingValues": 0, "NumberOfNumericFeatures": 100, "NumberOfSymbolicFeatures": 1, "PercentageOfBinaryFeatures": 0.9900990099009901, "PercentageOfInstancesWithMissingValues": 0, "AutoCorrelation": 0.5102551275637819, "PercentageOfMissingValues": 0, "Dimensionality": 0.0505, "PercentageOfNumericFeatures": 99.00990099009901, "MajorityClassPercentage": 50.849999999999994, "PercentageOfSymbolicFeatures": 0.9900990099009901, "MajorityClassSize": 1017, "MinorityClassPercentage": 49.15, "MinorityClassSize": 983, "NumberOfBinaryFeatures": 1 }, "tags": [ { "uploader": "38960", "tag": "Statistics" } ], "features": [ { "name": "class", "index": "100", "type": "nominal", "distinct": "2", "missing": "0", "target": "1", "distr": [ [ "0", "1" ], [ [ "1017", "0" ], [ "0", "983" ] ] ] }, { "name": "V26", "index": "0", "type": "numeric", "distinct": "231", "missing": "0", "min": "0", "max": "255", "mean": "79", "stdev": "103" }, { "name": "V34", "index": "1", "type": "numeric", "distinct": "82", "missing": "0", "min": "0", "max": "255", "mean": "8", "stdev": "39" }, { "name": "V55", "index": "2", "type": "numeric", "distinct": "195", "missing": "0", "min": "0", "max": "255", "mean": "47", "stdev": "89" }, { "name": "V71", "index": "3", "type": "numeric", "distinct": "154", "missing": "0", "min": "0", "max": "255", "mean": "23", "stdev": "64" }, { "name": "V75", "index": "4", "type": "numeric", "distinct": "227", "missing": "0", "min": "0", "max": "255", "mean": "106", "stdev": "112" }, { "name": "V83", "index": "5", "type": "numeric", "distinct": "126", "missing": "0", "min": "0", "max": "255", "mean": "15", "stdev": "52" }, { "name": "V110", "index": "6", "type": "numeric", "distinct": "221", "missing": "0", "min": "0", "max": "255", "mean": "77", "stdev": "106" }, { "name": "V123", "index": "7", "type": "numeric", "distinct": "233", "missing": "0", "min": "0", "max": "255", "mean": "95", "stdev": "109" }, { "name": "V124", "index": "8", "type": "numeric", "distinct": "41", "missing": "0", "min": "0", "max": "255", "mean": "3", "stdev": "26" }, { "name": "V126", "index": "9", "type": "numeric", "distinct": "183", "missing": "0", "min": "0", "max": "255", "mean": "49", "stdev": "91" }, { "name": "V154", "index": "10", "type": "numeric", "distinct": "239", "missing": "0", "min": "0", "max": "255", "mean": "107", "stdev": "110" }, { "name": "V155", "index": "11", "type": "numeric", "distinct": "219", "missing": "0", "min": "0", "max": "255", "mean": "89", "stdev": "109" }, { "name": "V162", "index": "12", "type": "numeric", "distinct": "235", "missing": "0", "min": "0", "max": "255", "mean": "116", "stdev": "112" }, { "name": "V165", "index": "13", "type": "numeric", "distinct": "33", "missing": "0", "min": "0", "max": "255", "mean": "3", "stdev": "25" }, { "name": "V172", "index": "14", "type": "numeric", "distinct": "111", "missing": "0", "min": "0", "max": "255", "mean": "14", "stdev": "51" }, { "name": "V183", "index": "15", "type": "numeric", "distinct": "125", "missing": "0", "min": "0", "max": "255", "mean": "16", "stdev": "55" }, { "name": "V187", "index": "16", "type": "numeric", "distinct": "229", "missing": "0", "min": "0", "max": "255", "mean": "79", "stdev": "105" }, { "name": "V191", "index": "17", "type": "numeric", "distinct": "238", "missing": "0", "min": "0", "max": "255", "mean": "123", "stdev": "110" }, { "name": "V196", "index": "18", "type": "numeric", "distinct": "62", "missing": "0", "min": "0", "max": "255", "mean": "7", "stdev": "36" }, { "name": "V207", "index": "19", "type": "numeric", "distinct": "127", "missing": "0", "min": "0", "max": "255", "mean": "24", "stdev": "67" }, { "name": "V209", "index": "20", "type": "numeric", "distinct": "103", "missing": "0", "min": "0", "max": "255", "mean": "12", "stdev": "48" }, { "name": "V214", "index": "21", "type": "numeric", "distinct": "240", "missing": "0", "min": "0", "max": "255", "mean": "103", "stdev": "109" }, { "name": "V250", "index": "22", "type": "numeric", "distinct": "233", "missing": "0", "min": "0", "max": "255", "mean": "84", "stdev": "106" }, { "name": "V252", "index": "23", "type": "numeric", "distinct": "237", "missing": "0", "min": "0", "max": "255", "mean": "96", "stdev": "109" }, { "name": "V277", "index": "24", "type": "numeric", "distinct": "118", "missing": "0", "min": "0", "max": "255", "mean": "15", "stdev": "54" }, { "name": "V302", "index": "25", "type": "numeric", "distinct": "21", "missing": "0", "min": "0", "max": "253", "mean": "1", "stdev": "16" }, { "name": "V325", "index": "26", "type": "numeric", "distinct": "241", "missing": "0", "min": "0", "max": "255", "mean": "109", "stdev": "109" }, { "name": "V333", "index": "27", "type": "numeric", "distinct": "176", "missing": "0", "min": "0", "max": "255", "mean": "36", "stdev": "79" }, { "name": "V334", "index": "28", "type": "numeric", "distinct": "26", "missing": "0", "min": "0", "max": "253", "mean": "2", "stdev": "17" }, { "name": "V337", "index": "29", "type": "numeric", "distinct": "28", "missing": "0", "min": "0", "max": "255", "mean": "2", "stdev": "17" }, { "name": "V348", "index": "30", "type": "numeric", "distinct": "107", "missing": "0", "min": "0", "max": "255", "mean": "12", "stdev": "48" }, { "name": "V349", "index": "31", "type": "numeric", "distinct": "184", "missing": "0", "min": "0", "max": "255", "mean": "47", "stdev": "89" }, { "name": "V371", "index": "32", "type": "numeric", "distinct": "141", "missing": "0", "min": "0", "max": "255", "mean": "21", "stdev": "62" }, { "name": "V373", "index": "33", "type": "numeric", "distinct": "193", "missing": "0", "min": "0", "max": "255", "mean": "40", "stdev": "82" }, { "name": "V386", "index": "34", "type": "numeric", "distinct": "90", "missing": "0", "min": "0", "max": "255", "mean": "11", "stdev": "47" }, { "name": "V399", "index": "35", "type": "numeric", "distinct": "242", "missing": "0", "min": "0", "max": "255", "mean": "128", "stdev": "109" }, { "name": "V422", "index": "36", "type": "numeric", "distinct": "209", "missing": "0", "min": "0", "max": "255", "mean": "73", "stdev": "103" }, { "name": "V427", "index": "37", "type": "numeric", "distinct": "59", "missing": "0", "min": "0", "max": "254", "mean": "5", "stdev": "30" }, { "name": "V441", "index": "38", "type": "numeric", "distinct": "45", "missing": "0", "min": "0", "max": "255", "mean": "3", "stdev": "23" }, { "name": "V447", "index": "39", "type": "numeric", "distinct": "35", "missing": "0", "min": "0", "max": "255", "mean": "2", "stdev": "18" }, { "name": "V452", "index": "40", "type": "numeric", "distinct": "62", "missing": "0", "min": "0", "max": "255", "mean": "5", "stdev": "33" }, { "name": "V456", "index": "41", "type": "numeric", "distinct": "38", "missing": "0", "min": "0", "max": "255", "mean": "4", "stdev": "29" }, { "name": "V459", "index": "42", "type": "numeric", "distinct": "20", "missing": "0", "min": "0", "max": "254", "mean": "2", "stdev": "19" }, { "name": "V460", "index": "43", "type": "numeric", "distinct": "136", "missing": "0", "min": "0", "max": "255", "mean": "19", "stdev": "60" }, { "name": "V463", "index": "44", "type": "numeric", "distinct": "24", "missing": "0", "min": "0", "max": "254", "mean": "2", "stdev": "17" }, { "name": "V465", "index": "45", "type": "numeric", "distinct": "126", "missing": "0", "min": "0", "max": "255", "mean": "21", "stdev": "62" }, { "name": "V471", "index": "46", "type": "numeric", "distinct": "195", "missing": "0", "min": "0", "max": "255", "mean": "58", "stdev": "96" }, { "name": "V480", "index": "47", "type": "numeric", "distinct": "220", "missing": "0", "min": "0", "max": "255", "mean": "87", "stdev": "108" }, { "name": "V485", "index": "48", "type": "numeric", "distinct": "235", "missing": "0", "min": "0", "max": "255", "mean": "95", "stdev": "107" }, { "name": "V487", "index": "49", "type": "numeric", "distinct": "128", "missing": "0", "min": "0", "max": "255", "mean": "17", "stdev": "55" }, { "name": "V501", "index": "50", "type": "numeric", "distinct": "141", "missing": "0", "min": "0", "max": "255", "mean": "21", "stdev": "62" }, { "name": "V514", "index": "51", "type": "numeric", "distinct": "230", "missing": "0", "min": "0", "max": "255", "mean": "105", "stdev": "112" }, { "name": "V515", "index": "52", "type": "numeric", "distinct": "107", "missing": "0", "min": "0", "max": "255", "mean": "14", "stdev": "52" }, { "name": "V520", "index": "53", "type": "numeric", "distinct": "154", "missing": "0", "min": "0", "max": "255", "mean": "22", "stdev": "63" }, { "name": "V535", "index": "54", "type": "numeric", "distinct": "240", "missing": "0", "min": "0", "max": "255", "mean": "130", "stdev": "111" }, { "name": "V538", "index": "55", "type": "numeric", "distinct": "179", "missing": "0", "min": "0", "max": "255", "mean": "35", "stdev": "78" }, { "name": "V546", "index": "56", "type": "numeric", "distinct": "32", "missing": "0", "min": "0", "max": "254", "mean": "2", "stdev": "18" }, { "name": "V554", "index": "57", "type": "numeric", "distinct": "36", "missing": "0", "min": "0", "max": "255", "mean": "2", "stdev": "20" }, { "name": "V555", "index": "58", "type": "numeric", "distinct": "48", "missing": "0", "min": "0", "max": "253", "mean": "4", "stdev": "26" }, { "name": "V599", "index": "59", "type": "numeric", "distinct": "224", "missing": "0", "min": "0", "max": "255", "mean": "91", "stdev": "110" }, { "name": "V600", "index": "60", "type": "numeric", "distinct": "155", "missing": "0", "min": "0", "max": "255", "mean": "27", "stdev": "69" }, { "name": "V610", "index": "61", "type": "numeric", "distinct": "72", "missing": "0", "min": "0", "max": "255", "mean": "7", "stdev": "36" }, { "name": "V633", "index": "62", "type": "numeric", "distinct": "236", "missing": "0", "min": "0", "max": "255", "mean": "107", "stdev": "110" }, { "name": "V634", "index": "63", "type": "numeric", "distinct": "238", "missing": "0", "min": "0", "max": "255", "mean": "124", "stdev": "112" }, { "name": "V640", "index": "64", "type": "numeric", "distinct": "234", "missing": "0", "min": "0", "max": "255", "mean": "110", "stdev": "111" }, { "name": "V643", "index": "65", "type": "numeric", "distinct": "98", "missing": "0", "min": "0", "max": "255", "mean": "12", "stdev": "47" }, { "name": "V660", "index": "66", "type": "numeric", "distinct": "227", "missing": "0", "min": "0", "max": "255", "mean": "78", "stdev": "103" }, { "name": "V662", "index": "67", "type": "numeric", "distinct": "47", "missing": "0", "min": "0", "max": "255", "mean": "4", "stdev": "28" }, { "name": "V709", "index": "68", "type": "numeric", "distinct": "195", "missing": "0", "min": "0", "max": "255", "mean": "44", "stdev": "85" }, { "name": "V736", "index": "69", "type": "numeric", "distinct": "207", "missing": "0", "min": "0", "max": "255", "mean": "73", "stdev": "104" }, { "name": "V770", "index": "70", "type": "numeric", "distinct": "218", "missing": "0", "min": "0", "max": "255", "mean": "112", "stdev": "113" }, { "name": "V771", "index": "71", "type": "numeric", "distinct": "211", "missing": "0", "min": "0", "max": "255", "mean": "77", "stdev": "105" }, { "name": "V775", "index": "72", "type": "numeric", "distinct": "131", "missing": "0", "min": "0", "max": "255", "mean": "24", "stdev": "68" }, { "name": "V777", "index": "73", "type": "numeric", "distinct": "176", "missing": "0", "min": "0", "max": "255", "mean": "43", "stdev": "86" }, { "name": "V790", "index": "74", "type": "numeric", "distinct": "54", "missing": "0", "min": "0", "max": "253", "mean": "4", "stdev": "27" }, { "name": "V804", "index": "75", "type": "numeric", "distinct": "94", "missing": "0", "min": "0", "max": "255", "mean": "12", "stdev": "48" }, { "name": "V805", "index": "76", "type": "numeric", "distinct": "87", "missing": "0", "min": "0", "max": "254", "mean": "8", "stdev": "38" }, { "name": "V820", "index": "77", "type": "numeric", "distinct": "166", "missing": "0", "min": "0", "max": "255", "mean": "34", "stdev": "78" }, { "name": "V823", "index": "78", "type": "numeric", "distinct": "234", "missing": "0", "min": "0", "max": "255", "mean": "112", "stdev": "112" }, { "name": "V838", "index": "79", "type": "numeric", "distinct": "180", "missing": "0", "min": "0", "max": "255", "mean": "37", "stdev": "80" }, { "name": "V841", "index": "80", "type": "numeric", "distinct": "28", "missing": "0", "min": "0", "max": "254", "mean": "2", "stdev": "17" }, { "name": "V842", "index": "81", "type": "numeric", "distinct": "181", "missing": "0", "min": "0", "max": "255", "mean": "48", "stdev": "90" }, { "name": "V851", "index": "82", "type": "numeric", "distinct": "238", "missing": "0", "min": "0", "max": "255", "mean": "103", "stdev": "109" }, { "name": "V856", "index": "83", "type": "numeric", "distinct": "223", "missing": "0", "min": "0", "max": "255", "mean": "124", "stdev": "111" }, { "name": "V862", "index": "84", "type": "numeric", "distinct": "71", "missing": "0", "min": "0", "max": "255", "mean": "6", "stdev": "34" }, { "name": "V868", "index": "85", "type": "numeric", "distinct": "149", "missing": "0", "min": "0", "max": "255", "mean": "21", "stdev": "61" }, { "name": "V875", "index": "86", "type": "numeric", "distinct": "128", "missing": "0", "min": "0", "max": "255", "mean": "18", "stdev": "58" }, { "name": "V876", "index": "87", "type": "numeric", "distinct": "63", "missing": "0", "min": "0", "max": "255", "mean": "7", "stdev": "36" }, { "name": "V880", "index": "88", "type": "numeric", "distinct": "206", "missing": "0", "min": "0", "max": "255", "mean": "61", "stdev": "97" }, { "name": "V886", "index": "89", "type": "numeric", "distinct": "223", "missing": "0", "min": "0", "max": "255", "mean": "101", "stdev": "111" }, { "name": "V888", "index": "90", "type": "numeric", "distinct": "231", "missing": "0", "min": "0", "max": "255", "mean": "119", "stdev": "112" }, { "name": "V898", "index": "91", "type": "numeric", "distinct": "19", "missing": "0", "min": "0", "max": "254", "mean": "1", "stdev": "17" }, { "name": "V907", "index": "92", "type": "numeric", "distinct": "222", "missing": "0", "min": "0", "max": "255", "mean": "105", "stdev": "111" }, { "name": "V930", "index": "93", "type": "numeric", "distinct": "204", "missing": "0", "min": "0", "max": "255", "mean": "74", "stdev": "103" }, { "name": "V936", "index": "94", "type": "numeric", "distinct": "239", "missing": "0", "min": "0", "max": "255", "mean": "117", "stdev": "112" }, { "name": "V938", "index": "95", "type": "numeric", "distinct": "237", "missing": "0", "min": "0", "max": "255", "mean": "137", "stdev": "111" }, { "name": "V942", "index": "96", "type": "numeric", "distinct": "188", "missing": "0", "min": "0", "max": "255", "mean": "42", "stdev": "83" }, { "name": "V959", "index": "97", "type": "numeric", "distinct": "82", "missing": "0", "min": "0", "max": "255", "mean": "8", "stdev": "40" }, { "name": "V960", "index": "98", "type": "numeric", "distinct": "57", "missing": "0", "min": "0", "max": "254", "mean": "6", "stdev": "34" }, { "name": "V968", "index": "99", "type": "numeric", "distinct": "76", "missing": "0", "min": "0", "max": "255", "mean": "8", "stdev": "39" } ], "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 }