DEVELOPMENT... { "data_id": "44463", "name": "KDDCup09_upselling_seed_0_nrows_2000_nclasses_10_ncols_100_stratify_True", "exact_name": "KDDCup09_upselling_seed_0_nrows_2000_nclasses_10_ncols_100_stratify_True", "version": 1, "version_label": "7c2046dc-610a-4c91-9bfb-b1af89eb5611", "description": "Subsampling of the dataset KDDCup09_upselling (44186) 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:03:37", "update_comment": null, "last_update": "2022-11-17 18:03:37", "licence": "Public", "status": "active", "error_message": null, "url": "https:\/\/api.openml.org\/data\/download\/22111225\/dataset", "default_target_attribute": "UPSELLING", "row_id_attribute": null, "ignore_attribute": null, "runs": 0, "suggest": { "input": [ "KDDCup09_upselling_seed_0_nrows_2000_nclasses_10_ncols_100_stratify_True", "Subsampling of the dataset KDDCup09_upselling (44186) 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 = r " ], "weight": 5 }, "qualities": { "NumberOfInstances": 2000, "NumberOfFeatures": 50, "NumberOfClasses": 2, "NumberOfMissingValues": 0, "NumberOfInstancesWithMissingValues": 0, "NumberOfNumericFeatures": 34, "NumberOfSymbolicFeatures": 16, "PercentageOfSymbolicFeatures": 32, "AutoCorrelation": 0.5047523761880941, "PercentageOfNumericFeatures": 68, "PercentageOfMissingValues": 0, "PercentageOfInstancesWithMissingValues": 0, "PercentageOfBinaryFeatures": 6, "NumberOfBinaryFeatures": 3, "MinorityClassSize": 1000, "MinorityClassPercentage": 50, "MajorityClassSize": 1000, "MajorityClassPercentage": 50, "Dimensionality": 0.025 }, "tags": [], "features": [ { "name": "UPSELLING", "index": "49", "type": "nominal", "distinct": "2", "missing": "0", "target": "1", "distr": [ [ "-1", "1" ], [ [ "1000", "0" ], [ "0", "1000" ] ] ] }, { "name": "Var133", "index": "26", "type": "numeric", "distinct": "1857", "missing": "0", "min": "0", "max": "12096000", "mean": "2240487", "stdev": "2434742" }, { "name": "Var132", "index": "25", "type": "numeric", "distinct": "13", "missing": "0", "min": "0", "max": "96", "mean": "3", "stdev": "9" }, { "name": "Var134", "index": "27", "type": "numeric", "distinct": "1728", "missing": "0", "min": "0", "max": "5735340", "mean": "427864", "stdev": "593067" }, { "name": "Var140", "index": "28", "type": "numeric", "distinct": "651", "missing": "0", "min": "0", "max": "38885", "mean": "1402", "stdev": "3096" }, { "name": "Var144", "index": "29", "type": "numeric", "distinct": "8", "missing": "0", "min": "0", "max": "63", "mean": "11", "stdev": "11" }, { "name": "Var149", "index": "30", "type": "numeric", "distinct": "1103", "missing": "0", "min": "0", "max": "16934400", "mean": "294060", "stdev": "733197" }, { "name": "Var153", "index": "31", "type": "numeric", "distinct": "1968", "missing": "0", "min": "468", "max": "13166520", "mean": "5964250", "stdev": "4270926" }, { "name": "Var160", "index": "32", "type": "numeric", "distinct": "125", "missing": "0", "min": "0", "max": "1172", "mean": "38", "stdev": "62" }, { "name": "Var163", "index": "33", "type": "numeric", "distinct": "1317", "missing": "0", "min": "0", "max": "10886400", "mean": "468758", "stdev": "822680" }, { "name": "Var194", "index": "34", "type": "nominal", "distinct": "4", "missing": "0", "distr": [ [ "0", "1", "2", "3" ], [ [ "2", "3" ], [ "228", "246" ], [ "6", "5" ], [ "764", "746" ] ] ] }, { "name": "Var196", "index": "35", "type": "nominal", "distinct": "2", "missing": "0", "distr": [ [ "0", "1", "3" ], [ [ "998", "993" ], [ "0", "0" ], [ "2", "7" ] ] ] }, { "name": "Var201", "index": "36", "type": "nominal", "distinct": "2", "missing": "0", "distr": [ [ "1", "2" ], [ [ "236", "254" ], [ "764", "746" ] ] ] }, { "name": "Var203", "index": "37", "type": "nominal", "distinct": "4", "missing": "0", "distr": [ [ "0", "1", "2", "5" ], [ [ "930", "912" ], [ "24", "16" ], [ "44", "71" ], [ "2", "1" ] ] ] }, { "name": "Var205", "index": "38", "type": "nominal", "distinct": "4", "missing": "0", "distr": [ [ "0", "1", "2", "3" ], [ [ "243", "247" ], [ "637", "652" ], [ "87", "78" ], [ "33", "23" ] ] ] }, { "name": "Var207", "index": "39", "type": "nominal", "distinct": "10", "missing": "0", "distr": [ [ "0", "1", "10", "13", "2", "3", "4", "5", "6", "7", "8", "9" ], [ [ "1", "0" ], [ "0", "0" ], [ "704", "642" ], [ "0", "0" ], [ "1", "2" ], [ "2", "1" ], [ "139", "160" ], [ "69", "80" ], [ "0", "2" ], [ "19", "27" ], [ "38", "53" ], [ "27", "33" ] ] ] }, { "name": "Var208", "index": "40", "type": "nominal", "distinct": "3", "missing": "0", "distr": [ [ "0", "1", "2" ], [ [ "940", "915" ], [ "58", "84" ], [ "2", "1" ] ] ] }, { "name": "Var210", "index": "41", "type": "nominal", "distinct": "4", "missing": "0", "distr": [ [ "0", "1", "2", "3", "5" ], [ [ "0", "0" ], [ "9", "0" ], [ "2", "4" ], [ "27", "3" ], [ "962", "993" ] ] ] }, { "name": "Var211", "index": "42", "type": "nominal", "distinct": "2", "missing": "0", "distr": [ [ "0", "1" ], [ [ "778", "992" ], [ "222", "8" ] ] ] }, { "name": "Var218", "index": "43", "type": "nominal", "distinct": "3", "missing": "0", "distr": [ [ "0", "1", "2" ], [ [ "490", "371" ], [ "496", "611" ], [ "14", "18" ] ] ] }, { "name": "Var221", "index": "44", "type": "nominal", "distinct": "7", "missing": "0", "distr": [ [ "0", "1", "2", "3", "4", "5", "6" ], [ [ "30", "45" ], [ "1", "4" ], [ "37", "51" ], [ "63", "70" ], [ "739", "676" ], [ "5", "2" ], [ "125", "152" ] ] ] }, { "name": "Var223", "index": "45", "type": "nominal", "distinct": "5", "missing": "0", "distr": [ [ "0", "1", "2", "3", "4" ], [ [ "762", "789" ], [ "40", "40" ], [ "2", "3" ], [ "98", "117" ], [ "98", "51" ] ] ] }, { "name": "Var225", "index": "46", "type": "nominal", "distinct": "4", "missing": "0", "distr": [ [ "0", "1", "2", "3" ], [ [ "232", "338" ], [ "198", "184" ], [ "38", "70" ], [ "532", "408" ] ] ] }, { "name": "Var227", "index": "47", "type": "nominal", "distinct": "6", "missing": "0", "distr": [ [ "0", "1", "2", "3", "4", "5", "6" ], [ [ "36", "52" ], [ "68", "89" ], [ "705", "646" ], [ "120", "138" ], [ "53", "57" ], [ "0", "0" ], [ "18", "18" ] ] ] }, { "name": "Var229", "index": "48", "type": "nominal", "distinct": "5", "missing": "0", "distr": [ [ "0", "1", "2", "3", "4" ], [ [ "238", "275" ], [ "185", "257" ], [ "1", "1" ], [ "2", "0" ], [ "574", "467" ] ] ] }, { "name": "Var76", "index": "13", "type": "numeric", "distinct": "1565", "missing": "0", "min": "0", "max": "19353600", "mean": "1490255", "stdev": "1869338" }, { "name": "Var13", "index": "1", "type": "numeric", "distinct": "683", "missing": "0", "min": "0", "max": "29376", "mean": "1181", "stdev": "2253" }, { "name": "Var21", "index": "2", "type": "numeric", "distinct": "233", "missing": "0", "min": "4", "max": "5568", "mean": "230", "stdev": "309" }, { "name": "Var22", "index": "3", "type": "numeric", "distinct": "233", "missing": "0", "min": "5", "max": "6960", "mean": "287", "stdev": "387" }, { "name": "Var24", "index": "4", "type": "numeric", "distinct": "33", "missing": "0", "min": "0", "max": "124", "mean": "5", "stdev": "8" }, { "name": "Var25", "index": "5", "type": "numeric", "distinct": "98", "missing": "0", "min": "0", "max": "2000", "mean": "105", "stdev": "147" }, { "name": "Var28", "index": "6", "type": "numeric", "distinct": "454", "missing": "0", "min": "0", "max": "1260", "mean": "212", "stdev": "82" }, { "name": "Var35", "index": "7", "type": "numeric", "distinct": "8", "missing": "0", "min": "0", "max": "45", "mean": "1", "stdev": "3" }, { "name": "Var38", "index": "8", "type": "numeric", "distinct": "1544", "missing": "0", "min": "0", "max": "14531580", "mean": "2419255", "stdev": "2995231" }, { "name": "Var57", "index": "9", "type": "numeric", "distinct": "1944", "missing": "0", "min": "0", "max": "7", "mean": "4", "stdev": "2" }, { "name": "Var65", "index": "10", "type": "numeric", "distinct": "9", "missing": "0", "min": "9", "max": "108", "mean": "15", "stdev": "10" }, { "name": "Var73", "index": "11", "type": "numeric", "distinct": "111", "missing": "0", "min": "12", "max": "238", "mean": "72", "stdev": "51" }, { "name": "Var74", "index": "12", "type": "numeric", "distinct": "133", "missing": "0", "min": "0", "max": "4928", "mean": "96", "stdev": "239" }, { "name": "Var6", "index": "0", "type": "numeric", "distinct": "517", "missing": "0", "min": "0", "max": "103740", "mean": "1400", "stdev": "2893" }, { "name": "Var78", "index": "14", "type": "numeric", "distinct": "8", "missing": "0", "min": "0", "max": "21", "mean": "0", "stdev": "2" }, { "name": "Var81", "index": "15", "type": "numeric", "distinct": "1999", "missing": "0", "min": "372", "max": "757509", "mean": "94870", "stdev": "97395" }, { "name": "Var83", "index": "16", "type": "numeric", "distinct": "44", "missing": "0", "min": "0", "max": "1150", "mean": "17", "stdev": "43" }, { "name": "Var85", "index": "17", "type": "numeric", "distinct": "47", "missing": "0", "min": "0", "max": "210", "mean": "9", "stdev": "15" }, { "name": "Var109", "index": "18", "type": "numeric", "distinct": "66", "missing": "0", "min": "0", "max": "1712", "mean": "60", "stdev": "89" }, { "name": "Var112", "index": "19", "type": "numeric", "distinct": "70", "missing": "0", "min": "0", "max": "1512", "mean": "69", "stdev": "106" }, { "name": "Var113", "index": "20", "type": "numeric", "distinct": "1997", "missing": "0", "min": "-2574396", "max": "9278480", "mean": "-11251", "stdev": "479924" }, { "name": "Var119", "index": "21", "type": "numeric", "distinct": "478", "missing": "0", "min": "5", "max": "90535", "mean": "929", "stdev": "2313" }, { "name": "Var123", "index": "22", "type": "numeric", "distinct": "70", "missing": "0", "min": "0", "max": "1758", "mean": "51", "stdev": "89" }, { "name": "Var125", "index": "23", "type": "numeric", "distinct": "1275", "missing": "0", "min": "0", "max": "2120562", "mean": "27616", "stdev": "73922" }, { "name": "Var126", "index": "24", "type": "numeric", "distinct": "51", "missing": "0", "min": "-32", "max": "68", "mean": "-4", "stdev": "26" } ], "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 }