MCPcopy Create free account
hub / github.com/PythonOT/POT / check_params

Function check_params

ot/utils.py:564–581  ·  view source on GitHub ↗

r"""check_params: check whether some parameters are missing

(**kwargs)

Source from the content-addressed store, hash-verified

562
563
564def check_params(**kwargs):
565 r"""check_params: check whether some parameters are missing"""
566
567 missing_params = []
568 check = True
569
570 for param in kwargs:
571 if kwargs[param] is None:
572 missing_params.append(param)
573
574 if len(missing_params) > 0:
575 print("POT - Warning: following necessary parameters are missing")
576 for p in missing_params:
577 print("\n", p)
578
579 check = False
580
581 return check
582
583
584def check_random_state(seed):

Callers 15

fitMethod · 0.85
transformMethod · 0.85
transform_labelsMethod · 0.85
inverse_transformMethod · 0.85
transformMethod · 0.85
inverse_transformMethod · 0.85
fitMethod · 0.85
fitMethod · 0.85
fitMethod · 0.85
transformMethod · 0.85
fitMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected