@@ -1466,31 +1466,31 @@ def update_fun_control_with_hyper_num_cat_dicts(fun_control, num_dict, cat_dict,
14661466 fun_control ["core_model_hyper_dict" ][key ].update ({"upper" : len (fle ) - 1 })
14671467
14681468
1469- def get_core_model_from_name (core_model_name ):
1469+ def get_core_model_from_name (core_model_name ) -> object :
14701470 """
1471- Returns the core model name and instance from a core model name.
1471+ Returns the river core model name and instance from a core model name.
14721472
14731473 Args:
14741474 core_model_name (str): The name of the core model.
14751475
14761476 Returns:
1477- Tuple : The core model name and instance.
1477+ (str, object) : The core model name and instance.
14781478 """
14791479 core_model_module = core_model_name .split ("." )[0 ]
14801480 coremodel = core_model_name .split ("." )[1 ]
14811481 core_model_instance = getattr (getattr (river , core_model_module ), coremodel )
14821482 return coremodel , core_model_instance
14831483
14841484
1485- def get_prep_model (prepmodel_name ):
1485+ def get_prep_model (prepmodel_name ) -> object :
14861486 """
1487- Get the preprocessing model from the name.
1487+ Get the river preprocessing model from the name.
14881488
14891489 Args:
14901490 prepmodel_name (str): The name of the preprocessing model.
14911491
14921492 Returns:
1493- river.preprocessing: The preprocessing model.
1493+ river.preprocessing (object) : The river preprocessing model.
14941494
14951495 """
14961496 if prepmodel_name == "None" :
@@ -1500,15 +1500,15 @@ def get_prep_model(prepmodel_name):
15001500 return prepmodel
15011501
15021502
1503- def get_metric_sklearn (metric_name ):
1503+ def get_metric_sklearn (metric_name ) -> object :
15041504 """
1505- Returns the metric from the metric name.
1505+ Returns the sklearn metric from the metric name.
15061506
15071507 Args:
15081508 metric_name (str): The name of the metric.
15091509
15101510 Returns:
1511- sklearn.metrics: The metric from the metric name .
1511+ sklearn.metrics (object) : The sklearn metric.
15121512 """
15131513 metric_sklearn = getattr (sklearn .metrics , metric_name )
15141514 return metric_sklearn
0 commit comments