Skip to content

Commit

Permalink
Remove top-level imports in tests
Browse files Browse the repository at this point in the history
This is a pre-requisite for cleaning up our public API.
  • Loading branch information
timokau committed Apr 17, 2020
1 parent 006d227 commit 719cc7a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions csrank/tests/test_fate.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
from keras.regularizers import l2
import numpy as np

from csrank import FATENetworkCore
from csrank import FATEObjectRanker
from csrank.core import FATENetworkCore
from csrank.objectranking import FATEObjectRanker
from csrank.tests.test_ranking import optimizer


Expand Down
2 changes: 1 addition & 1 deletion csrank/tests/test_ranking.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import pytest
import tensorflow as tf

from csrank import PairedCombinatorialLogit
from csrank.constants import CMPNET
from csrank.constants import ERR
from csrank.constants import FATE_RANKER
Expand All @@ -15,6 +14,7 @@
from csrank.constants import LISTNET
from csrank.constants import RANKNET
from csrank.constants import RANKSVM
from csrank.discretechoice import PairedCombinatorialLogit
from csrank.metrics_np import zero_one_accuracy_np
from csrank.metrics_np import zero_one_rank_loss_for_scores_ties_np
from csrank.objectranking import *
Expand Down
2 changes: 1 addition & 1 deletion csrank/tests/test_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import pytest
import tensorflow as tf

from csrank import SyntheticIterator
from csrank.dataset_reader import SyntheticIterator
from csrank.tensorflow_util import tensorify
from csrank.tuning import check_learner_class

Expand Down

0 comments on commit 719cc7a

Please sign in to comment.