Skip to content

Commit 0628e1f

Browse files
committed
Rename
1 parent 61f8e4d commit 0628e1f

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

notebooks/msr_banzhaf_digits.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@
193193
"cell_type": "markdown",
194194
"metadata": {},
195195
"source": [
196-
"As with all other model-based valuation methods, for Data Banzhaf we need a scoring function to measure performance of the model over the test set. We will use accuracy, but it can be anything, like e.g. $R^2$, using strings from the [standard sklearn scoring methods](https://scikit-learn.org/stable/modules/model_evaluation.html), passed to [SupervisedScorer][pydvl.valuation.scorers.supervised.SupervisedScorer].\n",
196+
"As with all other model-based valuation methods, for Data Banzhaf we need a scoring function to measure performance of the model over the test set. We will use accuracy, but it can be anything, like e.g. $R^2$, using strings from the [standard sklearn scoring methods](https://scikit-learn.org/stable/modules/model_evaluation.html), passed to [SkorchSupervisedScorer][pydvl.valuation.scorers.torchscorer.SkorchSupervisedScorer].\n",
197197
"\n",
198198
"We group our torch model and the scoring function into an instance of [ModelUtility][pydvl.valuation.utility.ModelUtility]."
199199
]
@@ -205,11 +205,11 @@
205205
"outputs": [],
206206
"source": [
207207
"from pydvl.valuation.samplers import PermutationSampler, RelativeTruncation\n",
208-
"from pydvl.valuation.scorers import SupervisedScorer\n",
208+
"from pydvl.valuation.scorers import SkorchSupervisedScorer\n",
209209
"from pydvl.valuation.stopping import MinUpdates\n",
210210
"from pydvl.valuation.utility import ModelUtility\n",
211211
"\n",
212-
"accuracy_over_test_set = SupervisedScorer(\n",
212+
"accuracy_over_test_set = SkorchSupervisedScorer(\n",
213213
" model, test_data=test, default=0.0, range=(0, 1)\n",
214214
")\n",
215215
"\n",

src/pydvl/valuation/scorers/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@
1313

1414
from .base import *
1515
from .classwise import *
16+
from .skorch import *
1617
from .supervised import *
17-
from .torchscorer import *
1818
from .utils import *
File renamed without changes.

0 commit comments

Comments
 (0)