Skip to content

Commit

Permalink
Test FETADiscreteChoice estimator interface
Browse files Browse the repository at this point in the history
  • Loading branch information
timokau committed Apr 30, 2020
1 parent 2019bff commit dc1ee9f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions csrank/tests/test_estimators.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
"""Check that our estimators adhere to the scikit-learn interface.
https://scikit-learn.org/stable/developers/develop.html#rolling-your-own-estimator
"""

import pytest
from sklearn.utils.estimator_checks import check_estimator

from csrank.discretechoice import FETADiscreteChoiceFunction


@pytest.mark.parametrize("Estimator", [FETADiscreteChoiceFunction])
def test_all_estimators(Estimator):
return check_estimator(Estimator)

0 comments on commit dc1ee9f

Please sign in to comment.