Skip to content

Commit

Permalink
add_index_to_datasets
Browse files Browse the repository at this point in the history
  • Loading branch information
jteijema committed Sep 18, 2024
1 parent a39c570 commit f6a6cb1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions asreviewcontrib/makita/template_prior.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,13 @@ def get_template_specific_params(self, params):
print(f"Total rows of non-prior knowledge: {total_rows_without_priors}")

# Save the combined dataset to the appropriate file paths
combined_dataset.to_csv(filepath_with_priors, index=False)
combined_dataset.to_csv(filepath_with_priors,
index=True,
index_label='record_id')
combined_dataset[combined_dataset["makita_priors"] != 1].to_csv(
filepath_without_priors, index=False
filepath_without_priors,
index=True,
index_label='record_id'
)

# Create a string of indices for rows with prior knowledge
Expand Down

0 comments on commit f6a6cb1

Please sign in to comment.