Skip to content

Commit

Permalink
fix: eval paths
Browse files Browse the repository at this point in the history
  • Loading branch information
bokajgd committed Sep 5, 2023
1 parent 3bca38b commit 6f1f1a1
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@
########################################
# UPDATE THESE TO SELECT MODEL OUTPUTS #
########################################
MODEL_NAME = "full_model_with_sentence_transformer_and_tfidf_all_sfis_ngram_range_12_max_df_095_min_df_2_max_features_750_embeddings"
MODEL_NAME = "full_model_without_text_features"
PROJECT_MODEL_DIR = Path(
f"E:/shared_resources/forced_admissions_inpatient/models/{MODEL_NAME}/pipeline_eval",
)

DEV_GROUP_NAME = "gainset-imbitterment"
DEV_GROUP_NAME = "gavial-foresaid"
DEVELOPMENT_GROUP = RunGroup(model_name=MODEL_NAME, group_name=DEV_GROUP_NAME)
BEST_POS_RATE = 0.05

EVAL_GROUP_NAME = f"{DEV_GROUP_NAME}-eval-on-test"
EVAL_GROUP = RunGroup(model_name=MODEL_NAME, group_name=DEV_GROUP_NAME)
EVAL_GROUP = RunGroup(model_name=MODEL_NAME, group_name=EVAL_GROUP_NAME)

################
# OUTPUT PATHS #
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class BestRun:
POS_RATE = 0.05


DEV_GROUP_NAME = "ventripyramid-ampullulae"
DEV_GROUP_NAME = "gavial-foresaid"

DEVELOPMENT_GROUP = RunGroup(name=DEV_GROUP_NAME)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# @package _global_
data:
# General config
dir: E:\shared_resources\forced_admissions_inpatient\flattened_datasets\full_feature_set_with_sent_transformer_and_tfidf_all_sfis_ngram_range_12_max_df_095_min_df_2_max_features_750_embeddings\
dir: E:\shared_resources\forced_admissions_inpatient\flattened_datasets\full_feature_set_without_text\
suffix: parquet
splits_for_training: ["train"]
splits_for_evaluation: null
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: forced_admissions_inpatient
project_path: E:\shared_resources\forced_admissions_inpatient\full_model_with_sentence_transformer_and_tfidf_all_sfis_ngram_range_12_max_df_095_min_df_2_max_features_750_embeddings
project_path: E:\shared_resources\forced_admissions_inpatient\models\full_model_without_text_features
seed: 42

wandb:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class RunGroup:
@property
def group_dir(self) -> Path:
return Path(
f"E:/shared_resources/forced_admissions_inpatient/full_model_with_sentence_transformer_and_tfidf_all_sfis_ngram_range_12_max_df_095_min_df_2_max_features_750_embeddings/pipeline_eval/{self.name}",
f"E:/shared_resources/forced_admissions_inpatient/models/full_model_without_text_features/pipeline_eval/{self.name}",
)

@property
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def __init__(self, artifact_path: Path, create_output_paths_on_init: bool = True

if create_output_paths_on_init:
for path in [self.artifact, self.tables, self.figures, self.estimates]:
path.mkdir(parents=False, exist_ok=True)
path.mkdir(parents=True, exist_ok=True)


class PaperOutputSettings:
Expand Down

0 comments on commit 6f1f1a1

Please sign in to comment.