Skip to content

Commit

Permalink
chore: fix weekly bool numpy (#919)
Browse files Browse the repository at this point in the history
  • Loading branch information
jfrery authored Oct 15, 2024
1 parent bfa8f73 commit 78062b6
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions docs/advanced_examples/ExperimentPrivacyTreePaper.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@
"for dataset_name, dataset_data in datasets.items():\n",
" X, y = dataset_data[\"X\"].astype(np.float32), dataset_data[\"y\"]\n",
" assert len(set(y)) >= 2\n",
" if y.dtype not in [np.int32, np.bool]:\n",
" if y.dtype not in [np.int32, bool]:\n",
" print(f\"Unexpected datatype for y in dataset {dataset_name}: {y.dtype}\")\n",
"\n",
" key_dataset = f\"{dataset_name} (#features: {X.shape[1]})\"\n",
Expand Down Expand Up @@ -1290,7 +1290,7 @@
"rkf = RepeatedKFold(n_splits=5, n_repeats=3, random_state=0)\n",
"X, y = datasets[\"spambase\"][\"X\"].astype(np.float32), datasets[\"spambase\"][\"y\"]\n",
"assert len(set(y)) == 2\n",
"if y.dtype not in [np.int32, np.bool]:\n",
"if y.dtype not in [np.int32, bool]:\n",
" print(f\"Unexpected datatype for y in dataset spambase: {y.dtype}\")\n",
"\n",
"scores_global = {}\n",
Expand Down Expand Up @@ -1327,127 +1327,127 @@
"name": "stderr",
"output_type": "stream",
"text": [
"\r",
"\r\n",
" 0%| | 0/14 [00:00<?, ?it/s]"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"\r",
"\r\n",
" 7%|▋ | 1/14 [02:02<26:31, 122.43s/it]"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"\r",
"\r\n",
" 14%|█▍ | 2/14 [03:31<20:32, 102.74s/it]"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"\r",
"\r\n",
" 21%|██▏ | 3/14 [04:53<17:07, 93.40s/it] "
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"\r",
"\r\n",
" 29%|██▊ | 4/14 [06:14<14:43, 88.30s/it]"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"\r",
"\r\n",
" 36%|███▌ | 5/14 [07:33<12:45, 85.06s/it]"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"\r",
"\r\n",
" 43%|████▎ | 6/14 [08:44<10:43, 80.43s/it]"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"\r",
"\r\n",
" 50%|█████ | 7/14 [10:13<09:42, 83.26s/it]"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"\r",
"\r\n",
" 57%|█████▋ | 8/14 [11:31<08:08, 81.41s/it]"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"\r",
"\r\n",
" 64%|██████▍ | 9/14 [12:43<06:32, 78.45s/it]"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"\r",
"\r\n",
" 71%|███████▏ | 10/14 [13:57<05:08, 77.04s/it]"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"\r",
"\r\n",
" 79%|███████▊ | 11/14 [14:54<03:32, 70.95s/it]"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"\r",
"\r\n",
" 86%|████████▌ | 12/14 [15:50<02:12, 66.45s/it]"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"\r",
"\r\n",
" 93%|█████████▎| 13/14 [16:29<00:58, 58.22s/it]"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"\r",
"\r\n",
"100%|██████████| 14/14 [17:14<00:00, 54.10s/it]"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"\r",
"\r\n",
"100%|██████████| 14/14 [17:14<00:00, 73.89s/it]"
]
},
Expand Down

0 comments on commit 78062b6

Please sign in to comment.