Skip to content

Commit

Permalink
Remove dead code and pretify some things.
Browse files Browse the repository at this point in the history
  • Loading branch information
ostrokach committed Jun 27, 2016
1 parent 1e4c0d6 commit d94441f
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 273 deletions.
4 changes: 2 additions & 2 deletions devtools/travis-ci/configure_tests.sh
Expand Up @@ -7,12 +7,12 @@ if [[ -z ${SRC_DIR} || \
-z ${SCRIPTS_DIR} || \
-z ${TEST_DIR} ]] ; then
echo 'Required environment variable not set!'
exit -1
exit
fi

if [[ ${SRC_DIR} = ${TEST_DIR} ]] ; then
echo "SRC_DIR and TEST_DIR must be different!"
exit -1
exit
fi


Expand Down
2 changes: 1 addition & 1 deletion elaspic/helper.py
Expand Up @@ -82,7 +82,7 @@ def make_tarfile(source_dir, output_filename):

# %% Helper functions for sql objects
def decode_domain_def(domains, merge=True, return_string=False):
""" Unlike split_domain(), this function returns a tuple of tuples of strings,
"""Unlike split_domain(), this function returns a tuple of tuples of strings,
preserving letter numbering (e.g. 10B)
"""
if not domains:
Expand Down
4 changes: 1 addition & 3 deletions elaspic/machine_learning.py
Expand Up @@ -10,7 +10,6 @@
from . import helper


# %%
def write_row_to_file(results, output_filename):
"""
TODO: Add a datetime column to each written row.
Expand Down Expand Up @@ -65,8 +64,7 @@ def cross_validate_predictor(data, features, clf_options, output_filename=None):


def get_final_predictor(data, features, options):
"""Train a predictor using the entire dataset.
"""
"""Train a predictor using the entire dataset."""
# Keep only recognized options
import inspect
accepted_options = inspect.getargspec(ensemble.GradientBoostingRegressor)[0]
Expand Down

0 comments on commit d94441f

Please sign in to comment.