xueyiming преди 1 ден
родител
ревизия
76a6055376
променени са 1 файла, в които са добавени 0 реда и са изтрити 10 реда
  1. 0 10
      ad/pai_flow_operator.py

+ 0 - 10
ad/pai_flow_operator.py

@@ -388,14 +388,6 @@ def extract_date_yyyymmdd(input_string):
         return matches[0]
     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):
     model_config = {}
     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
     online_date = extract_date_yyyymmdd(model_path)
     model_config['online_date'] = online_date
-    model_name = extract_model_name(model_path)
-    model_config['model_name'] = model_name
     return model_config