Skip to content

Commit

Permalink
PV-2007: Update scatter plots function to use correct scores file bas…
Browse files Browse the repository at this point in the history
…ed on oos parameter.
  • Loading branch information
taleksov committed May 6, 2024
1 parent 2e72d02 commit 34aa5db
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion uncoverml/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,8 @@ def plot_feature_correlation_matrix(config: Config, x_all, oos_val):


def validation_scatter(config: Config, y_true, predictions, oos_val):
scores_file = os.path.join(config.output_dir, config.name + "_validation_scores.json")
file_name_suffix = '_oos' if oos_val else ''
scores_file = os.path.join(config.output_dir, config.name + f"_validation_scores{file_name_suffix}.json")
with open(scores_file, 'r') as f:
scores = json.load(f)

Expand Down

0 comments on commit 34aa5db

Please sign in to comment.