@@ -90,7 +90,7 @@ def _get_estimation_procedure_list():
9090 procs_dict = xmltodict .parse (xml_string )
9191 # Minimalistic check if the XML is useful
9292 if "oml:estimationprocedures" not in procs_dict :
93- raise ValueError ("Error in return XML, does not contain tag " " oml:estimationprocedures." )
93+ raise ValueError ("Error in return XML, does not contain tag oml:estimationprocedures." )
9494 elif "@xmlns:oml" not in procs_dict ["oml:estimationprocedures" ]:
9595 raise ValueError (
9696 "Error in return XML, does not contain tag "
@@ -110,7 +110,9 @@ def _get_estimation_procedure_list():
110110 try :
111111 task_type_id = TaskType (task_type_int )
112112 except ValueError as e :
113- warnings .warn ("Could not create task type id for %d due to error %s" % (task_type_int , str (e )))
113+ warnings .warn (
114+ "Could not create task type id for %d due to error %s" % (task_type_int , str (e ))
115+ )
114116 continue
115117 procs .append (
116118 {
@@ -336,7 +338,10 @@ def get_task(
336338 task
337339 """
338340 if not isinstance (task_id , int ):
339- warnings .warn ("Task id must be specified as `int` from 0.14.0 onwards." , DeprecationWarning )
341+ warnings .warn (
342+ "Task id must be specified as `int` from 0.14.0 onwards." ,
343+ DeprecationWarning ,
344+ )
340345
341346 try :
342347 task_id = int (task_id )
@@ -474,7 +479,10 @@ def create_task(
474479 evaluation_measure : Optional [str ] = None ,
475480 ** kwargs
476481) -> Union [
477- OpenMLClassificationTask , OpenMLRegressionTask , OpenMLLearningCurveTask , OpenMLClusteringTask
482+ OpenMLClassificationTask ,
483+ OpenMLRegressionTask ,
484+ OpenMLLearningCurveTask ,
485+ OpenMLClusteringTask ,
478486]:
479487 """Create a task based on different given attributes.
480488
0 commit comments