|
@@ -388,14 +388,6 @@ def extract_date_yyyymmdd(input_string):
|
|
return matches[0]
|
|
return matches[0]
|
|
return None
|
|
return None
|
|
|
|
|
|
-def extract_model_name(input_string):
|
|
|
|
- pattern = r"ad_rank_dnn_([^/]+)/\d{8}"
|
|
|
|
- matches = re.findall(pattern, input_string)
|
|
|
|
- if matches:
|
|
|
|
- return matches[0]
|
|
|
|
- return None
|
|
|
|
-
|
|
|
|
-
|
|
|
|
def get_online_model_config(service_name: str):
|
|
def get_online_model_config(service_name: str):
|
|
model_config = {}
|
|
model_config = {}
|
|
model_detail = PAIClient.get_describe_service(service_name)
|
|
model_detail = PAIClient.get_describe_service(service_name)
|
|
@@ -405,8 +397,6 @@ def get_online_model_config(service_name: str):
|
|
model_config['model_path'] = model_path
|
|
model_config['model_path'] = model_path
|
|
online_date = extract_date_yyyymmdd(model_path)
|
|
online_date = extract_date_yyyymmdd(model_path)
|
|
model_config['online_date'] = online_date
|
|
model_config['online_date'] = online_date
|
|
- model_name = extract_model_name(model_path)
|
|
|
|
- model_config['model_name'] = model_name
|
|
|
|
return model_config
|
|
return model_config
|
|
|
|
|
|
|
|
|