File size: 572 Bytes
fc0f7bd
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.


class Reduction:
    """Base class for our reduction-implementing estimators."""

    def fit(self, X, y, **kwargs):  # noqa: D102
        raise NotImplementedError()

    def predict(self, X):  # noqa: D102
        raise NotImplementedError()

    def predict_proba(self, X):  # noqa: D102
        raise NotImplementedError()


# Ensure that Reduction shows up in correct place in documentation
# when it is used as a base class
Reduction.__module__ = "fairlearn.reductions"