Skip to content

Commit

Permalink
run black on jupyter notebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
rishabh-ranjan committed Nov 27, 2023
1 parent c9ac328 commit ad5fa1f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 2 additions & 0 deletions examples/amazon/demo-amazon.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
"outputs": [],
"source": [
"from relbench.datasets import get_dataset\n",
"\n",
"dataset = get_dataset(\"rel-amazon\")"
]
},
Expand Down Expand Up @@ -904,6 +905,7 @@
],
"source": [
"import numpy as np\n",
"\n",
"pred = np.array([0] * len(task.test_table.df))\n",
"task.evaluate(pred)"
]
Expand Down
10 changes: 4 additions & 6 deletions examples/stackex/pack_stack_exchange.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"outputs": [],
"source": [
"import sys\n",
"sys.path.append('../../')\n",
"\n",
"sys.path.append(\"../../\")\n",
"from relbench.datasets import get_dataset"
]
},
Expand All @@ -30,10 +31,7 @@
}
],
"source": [
"dataset = get_dataset(\n",
" name=\"rel-stackex\",\n",
" process=True\n",
")"
"dataset = get_dataset(name=\"rel-stackex\", process=True)"
]
},
{
Expand Down Expand Up @@ -420,7 +418,7 @@
}
],
"source": [
"task.train_table.df.contribution.value_counts(normalize = True)"
"task.train_table.df.contribution.value_counts(normalize=True)"
]
},
{
Expand Down

0 comments on commit ad5fa1f

Please sign in to comment.