Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
4 changes: 0 additions & 4 deletions docs/packages/labeling.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,10 @@ Programmatic data set labeling: LF creation, models, and analysis utilities.
apply.dask.DaskLFApplier
LFAnalysis
LFApplier
LabelModel
LabelingFunction
MajorityClassVoter
MajorityLabelVoter
lf.nlp.NLPLabelingFunction
PandasLFApplier
apply.dask.PandasParallelLFApplier
RandomVoter
apply.spark.SparkLFApplier
lf.nlp_spark.SparkNLPLabelingFunction
filter_unlabeled_dataframe
Expand Down
6 changes: 0 additions & 6 deletions snorkel/labeling/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,4 @@
from .apply.core import LFApplier # noqa: F401
from .apply.pandas import PandasLFApplier # noqa: F401
from .lf.core import LabelingFunction, labeling_function # noqa: F401
from .model.baselines import ( # noqa: F401
MajorityClassVoter,
MajorityLabelVoter,
RandomVoter,
)
from .model.label_model import LabelModel # noqa: F401
from .utils import filter_unlabeled_dataframe # noqa: F401
2 changes: 2 additions & 0 deletions snorkel/labeling/model/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from .baselines import MajorityClassVoter, MajorityLabelVoter, RandomVoter # noqa: F401
from .label_model import LabelModel # noqa: F401
2 changes: 1 addition & 1 deletion test/labeling/model/test_baseline.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import numpy as np

from snorkel.labeling import MajorityClassVoter, MajorityLabelVoter, RandomVoter
from snorkel.labeling.model import MajorityClassVoter, MajorityLabelVoter, RandomVoter


class BaselineModelTest(unittest.TestCase):
Expand Down
2 changes: 1 addition & 1 deletion test/labeling/model/test_label_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import torch.nn as nn
import torch.optim as optim

from snorkel.labeling import LabelModel
from snorkel.labeling.model import LabelModel
from snorkel.labeling.model.label_model import TrainConfig
from snorkel.synthetic.synthetic_data import generate_simple_label_matrix

Expand Down
8 changes: 2 additions & 6 deletions test/labeling/test_convergence.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,8 @@
import pytest
import torch

from snorkel.labeling import (
LabelingFunction,
LabelModel,
PandasLFApplier,
labeling_function,
)
from snorkel.labeling import LabelingFunction, PandasLFApplier, labeling_function
from snorkel.labeling.model import LabelModel
from snorkel.preprocess import preprocessor
from snorkel.types import DataPoint

Expand Down