Skip to content

Commit

Permalink
script-2 missing connector feature_table_name (#529)
Browse files Browse the repository at this point in the history
  • Loading branch information
joker2411 authored Dec 12, 2024
1 parent e882104 commit d4b2138
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ def preprocess_and_train(
parser.add_argument("--merged_config", type=json.loads)
parser.add_argument("--input_column_types", type=json.loads)
parser.add_argument("--input_columns", type=json.loads)
parser.add_argument("--connector_feature_table_name", type=str)
parser.add_argument("--wh_creds", type=json.loads)
parser.add_argument("--output_path", type=str)
parser.add_argument("--mode", type=str)
Expand Down Expand Up @@ -298,6 +299,7 @@ def preprocess_and_train(
warehouse = wh_creds["type"]
train_procedure = train_and_store_model_results
connector = ConnectorFactory.create(wh_creds, output_dir)
connector.feature_table_name = args.connector_feature_table_name
local_folder = connector.get_local_dir()

material_info_ = args.material_names
Expand Down
2 changes: 2 additions & 0 deletions src/predictions/profiles_mlcorelib/processors/K8sProcessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,8 @@ def train(
json.dumps(input_column_types),
"--input_columns",
json.dumps(input_columns),
"--connector_feature_table_name",
self.connector.feature_table_name,
"--metrics_table",
metrics_table,
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ def train(
json.dumps(input_column_types),
"--input_columns",
json.dumps(input_columns),
"--connector_feature_table_name",
self.connector.feature_table_name,
"--wh_creds",
json.dumps(wh_creds),
"--output_path",
Expand Down

0 comments on commit d4b2138

Please sign in to comment.