Skip to content

Commit

Permalink
[#60] Hook up the new save model metadata training step 3
Browse files Browse the repository at this point in the history
  • Loading branch information
riley-harper committed Oct 18, 2023
1 parent d22024f commit 8622b44
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
1 change: 1 addition & 0 deletions hlink/linking/table_definitions.csv
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ training_data,Training: Raw training data as read from specified file,1
hh_training_data,Household Training: Raw HH training data as read from specified file,1
training_features,Training: Transformed data with features,1
hh_training_features,Household Training: Transformed HH training data with features,1
training_model_metadata,Training: Metadata like feature weights that describe the trained model,0
model_eval_training_data,Model Exploration: Raw training data as read from specified file,1
model_eval_training_vectorized,Model Exploration: Training data after applying comparison feature and pipeline transformations,1
model_eval_training_results,Model Exploration: Results of ML model exploration train/test splits,0
Expand Down
7 changes: 2 additions & 5 deletions hlink/linking/training/link_step_save_model_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,8 @@ def __init__(self, task):
super().__init__(
task,
"save metadata about the model",
input_table_names=[
f"{task.table_prefix}training_features",
f"{task.table_prefix}training_vectorized",
],
output_table_names=[f"{task.table_prefix}training_results"],
output_table_names=[f"{task.table_prefix}training_model_metadata"],
input_model_names=[f"{task.table_prefix}trained_model"],
)

def _run(self):
Expand Down
2 changes: 2 additions & 0 deletions hlink/linking/training/training.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from .link_step_ingest_file import LinkStepIngestFile
from .link_step_create_comparison_features import LinkStepCreateComparisonFeatures
from .link_step_train_and_save_model import LinkStepTrainAndSaveModel
from .link_step_save_model_metadata import LinkStepSaveModelMetadata


class Training(LinkTask):
Expand All @@ -21,4 +22,5 @@ def get_steps(self):
LinkStepIngestFile(self),
LinkStepCreateComparisonFeatures(self),
LinkStepTrainAndSaveModel(self),
LinkStepSaveModelMetadata(self),
]

0 comments on commit 8622b44

Please # to comment.