Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ENH] add placeholder test suite for neural networks #5511

Merged
merged 1 commit into from Nov 2, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
33 changes: 33 additions & 0 deletions sktime/networks/tests/test_all_networks.py
@@ -0,0 +1,33 @@
"""Unit tests for all neural networks."""

from sktime.tests.test_all_estimators import BaseFixtureGenerator, QuickTester


class NetworkFixtureGenerator(BaseFixtureGenerator):
"""Fixture generator for classifier tests.

Fixtures parameterized
----------------------
estimator_class: estimator inheriting from BaseObject
ranges over estimator classes not excluded by EXCLUDE_ESTIMATORS, EXCLUDED_TESTS
estimator_instance: instance of estimator inheriting from BaseObject
ranges over estimator classes not excluded by EXCLUDE_ESTIMATORS, EXCLUDED_TESTS
instances are generated by create_test_instance class method
scenario: instance of TestScenario
ranges over all scenarios returned by retrieve_scenarios
"""

# note: this should be separate from TestAllNetworks
# additional fixtures, parameters, etc should be added here
# TestAllNetworks should contain the tests only

estimator_type_filter = "network"


class TestAllNetworks(NetworkFixtureGenerator, QuickTester):
"""Module level tests for all sktime neural networks."""

def test_dummy(self, estimator_instance):
"""Dummy test to act as placeholder."""
# check if multivariate input raises error for univariate regressors
assert 42 == 42