Skip to content

Commit 33b06da

Browse files
committed
Model baseline model imports to snorkel/labeling/model
1 parent 4c36133 commit 33b06da

File tree

4 files changed

+2
-9
lines changed

4 files changed

+2
-9
lines changed

docs/packages/labeling.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,9 @@ Programmatic data set labeling: LF creation, models, and analysis utilities.
1414
LFApplier
1515
LabelModel
1616
LabelingFunction
17-
MajorityClassVoter
18-
MajorityLabelVoter
1917
lf.nlp.NLPLabelingFunction
2018
PandasLFApplier
2119
apply.dask.PandasParallelLFApplier
22-
RandomVoter
2320
apply.spark.SparkLFApplier
2421
lf.nlp_spark.SparkNLPLabelingFunction
2522
filter_unlabeled_dataframe

snorkel/labeling/__init__.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,5 @@
44
from .apply.core import LFApplier # noqa: F401
55
from .apply.pandas import PandasLFApplier # noqa: F401
66
from .lf.core import LabelingFunction, labeling_function # noqa: F401
7-
from .model.baselines import ( # noqa: F401
8-
MajorityClassVoter,
9-
MajorityLabelVoter,
10-
RandomVoter,
11-
)
127
from .model.label_model import LabelModel # noqa: F401
138
from .utils import filter_unlabeled_dataframe # noqa: F401

snorkel/labeling/model/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from .baselines import MajorityClassVoter, MajorityLabelVoter, RandomVoter # noqa: F401

test/labeling/model/test_baseline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import numpy as np
44

5-
from snorkel.labeling import MajorityClassVoter, MajorityLabelVoter, RandomVoter
5+
from snorkel.labeling.model import MajorityClassVoter, MajorityLabelVoter, RandomVoter
66

77

88
class BaselineModelTest(unittest.TestCase):

0 commit comments

Comments
 (0)