Пример #1
0
    def setup(self):
        """Setup the attributes for testing."""
        self.foo = Foo(a="foo", b="foo")
        self.baz = Baz(e="baz", f="baz")
        self.bar = Bar(c=self.foo, d=self.foo)

        (self.X, self.Y) = load_iris(problem="label_ranking")
Пример #2
0
    def setup(self):
        """Setup the attributes for testing."""
        # The strategy will be set at the corresponding testing method
        self.dummy_model = DummyPartialLabelRanker(constant=np.ones(3))

        (self.X, self.Y) = load_iris(problem="partial_label_ranking")
Пример #3
0
    def setup(self):
        """Setup the attributes for testing."""
        # The strategy will be set at the corresponding testing method
        self.dummy_model = DummyLabelRanker(constant=np.array([1, 2, 3]))

        (self.X, self.Y) = load_iris(problem="label_ranking")
Пример #4
0
    def setup(self):
        """Setup the attributes for testing."""
        # The strategy will be set in the corresponding testing method
        self.misser = SimpleMisser(probability=0.6, random_state=198075)

        (_, self.Y) = load_iris(problem="partial_label_ranking")
Пример #5
0
 def setup(self):
     """Setup the attributes for testing."""
     (self.X, self.Y) = load_iris(problem="partial_label_ranking")