Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion glest/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
__version__ = "0.0.1-alpha.1"
__version__ = "0.0.1"

from .core import GLEstimator, GLEstimatorCV, Partitioner
6 changes: 3 additions & 3 deletions glest/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
)
from .plot import grouping_diagram
from sklearn.utils.validation import indexable
from sklearn.base import clone
from sklearn.base import clone, BaseEstimator
from typing import List


class Partitioner:
class Partitioner(BaseEstimator):
"""A class for partitionning the feature space, stratified by level sets
of predicted probabilities.

Expand Down Expand Up @@ -327,7 +327,7 @@ def predict(self, X, y_scores):
return labels


class GLEstimator:
class GLEstimator(BaseEstimator):
"""Estimate the grouping loss of a fitted probabilistic classifier.

Parameters
Expand Down
Loading