Skip to content

Commit

Permalink
Travis2 (#381)
Browse files Browse the repository at this point in the history
* trying different package versions for tensorflow and keras due to unannounced breaking changed to APIs

* removes only-binary from install to see if that helps with install issues

* two tests surpassed our best expected performance

* removes unnecessary spacing
  • Loading branch information
ClimbsRocks committed Feb 8, 2018
1 parent 1097e4f commit 8887a36
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
5 changes: 2 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,10 @@ install:
- TEST_DIR=$PWD
- pip install --upgrade pip setuptools wheel
- pip install coveralls nose tables
- pip install --only-binary=numpy,scipy,pandas -r requirements.txt
- if [[ $TESTS_TO_RUN == *'advanced_tests'* ]]; then pip install lightgbm keras==2.1.1 tensorflow catboost xgboost; fi
- pip install -r requirements.txt
- if [[ $TESTS_TO_RUN == *'advanced_tests'* ]]; then pip install lightgbm keras==2.1.1 tensorflow==1.4.0 catboost xgboost; fi
- if [[ $TESTS_TO_RUN == *'backwards_compatibility_test'* ]]; then pip install scikit-learn==0.18.0; fi

script:
- nosetests $TESTS_TO_RUN

- coveralls
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
dill>=0.2.5, < 0.3
dill>=0.2.5, <0.3
h5py>=2.7.0, <3.0
lightgbm>=2.0.11, <2.1
lightgbm>=2.0.11, <3.0
numpy>=1.11.0, <2.0
pandas>=0.18.0, <1.0
pathos>=0.2.1, <0.3.0
Expand Down
2 changes: 1 addition & 1 deletion tests/advanced_tests/advanced_install_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def test_feature_learning_categorical_ensembling_getting_single_predictions_clas
if model_name == 'CatBoostClassifier':
lower_bound = -0.265

assert lower_bound < first_score < -0.147
assert lower_bound < first_score < -0.140

# 2. make sure the speed is reasonable (do it a few extra times)
data_length = len(df_titanic_test_dictionaries)
Expand Down
2 changes: 1 addition & 1 deletion tests/core_tests/api_coverage_tests_classifiers.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def test_perform_feature_selection_true_classification():
print('test_score')
print(test_score)

assert -0.16 < test_score < -0.135
assert -0.16 < test_score < -0.124


def test_perform_feature_scaling_true_classification():
Expand Down

0 comments on commit 8887a36

Please sign in to comment.