Skip to content

Commit

Permalink
Changed cli command to exclude superfluous commands
Browse files Browse the repository at this point in the history
changed cli command to exclude superfluous commands

changed cli command to exclude superfluous commands
  • Loading branch information
adityasevak123ga committed May 17, 2023
1 parent 6b3fac8 commit df3f699
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions uncoverml/scripts/uncoverml.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,9 +319,9 @@ def validate(pipeline_file, model_or_cluster_file, partitions):
model = state_dict["model"]

config = ls.config.Config(pipeline_file)
config.pickle_load = False
config.target_file = config.oos_validation_file
config.target_property = config.oos_validation_property
# config.pickle_load = False
# config.target_file = config.oos_validation_file
# config.target_property = config.oos_validation_property

targets_all, x_all = _load_data(config, partitions)

Expand Down
2 changes: 1 addition & 1 deletion uncoverml/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ def oos_validate(targets_all, x_all, model, config):
density_ax.legend(loc='lower right')
r2_val = '{:.2f}'.format(scores['r2_score'])
r2_string = f'R2 Score: {r2_val}'
density_ax.text(.01, .99, r2_string, ha='left', va='top', transform=ax.transAxes)
density_ax.text(.01, .99, r2_string, ha='left', va='top', transform=density_ax.transAxes)
density_fig.suptitle('Real vs Predicted Density Scatter')
density_fig.tight_layout()
density_fig.savefig(Path(config.output_dir).joinpath(config.name + "_real_vs_pred_density_scatter.png"))
Expand Down

0 comments on commit df3f699

Please sign in to comment.