File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -280,6 +280,9 @@ def postprocess(
280280 safe_test_func_name = re .sub (r"[^a-zA-Z0-9-]" , "-" , test_func_name ).lower ()
281281 dataset_name = f"{ safe_test_func_name } -{ safe_experiment_id } "
282282
283+ if len (dataset_name ) > 63 :
284+ dataset_name = dataset_name [:63 ]
285+
283286 exp_file = exp_dir / f"{ experiment_id } .jsonl"
284287 with open (exp_file , "w" , encoding = "utf-8" ) as f :
285288 for row in exp_rows :
@@ -302,7 +305,7 @@ def postprocess(
302305 row_data ["evals" ] = {"score" : 0 }
303306 row_data ["eval_details" ] = {
304307 "score" : 0 ,
305- "is_score_valid" : False ,
308+ "is_score_valid" : True ,
306309 "reason" : "No evaluation result" ,
307310 "metrics" : {},
308311 }
@@ -338,6 +341,7 @@ def get_auth_value(key):
338341 "displayName" : dataset_name ,
339342 "evalProtocol" : {},
340343 "format" : "FORMAT_UNSPECIFIED" ,
344+ "exampleCount" : f"{ len (exp_rows )} " ,
341345 },
342346 "datasetId" : dataset_name ,
343347 }
You can’t perform that action at this time.
0 commit comments