Skip to content

Commit

Permalink
Web fix
Browse files Browse the repository at this point in the history
  • Loading branch information
swansonk14 committed Aug 20, 2020
1 parent c5d3545 commit 15aaef2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion chemprop/web/app/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

from chemprop.args import PredictArgs, TrainArgs
from chemprop.constants import MODEL_FILE_NAME, TRAIN_LOGGER_NAME
from chemprop.data import get_data, get_header, get_smiles, validate_data
from chemprop.data import get_data, get_header, get_smiles, get_task_names, validate_data
from chemprop.train import make_predictions, run_training
from chemprop.utils import create_logger, load_task_names, load_args

Expand Down Expand Up @@ -209,6 +209,9 @@ def train():
'--ensemble_size', str(ensemble_size)
])

# Get task names
args.task_names = get_task_names(path=data_path)

# Check if regression/classification selection matches data
data = get_data(path=data_path)
targets = data.targets()
Expand Down

0 comments on commit 15aaef2

Please sign in to comment.