module helpers.parameters
#
Short summary#
module mlinsights.helpers.parameters
Functions about parameters.
Functions#
function |
truncated documentation |
---|---|
Formats a function call with named parameters. |
|
Formats a list of parameters. |
|
Formats a value to be included in a string. |
Documentation#
Functions about parameters.
- mlinsights.helpers.parameters.format_function_call(name, pdict)#
Formats a function call with named parameters.
- Parameters:
pdict – dictionary
- Returns:
string
<<<
from mlinsights.helpers.parameters import format_function_call d = dict(i=2, x=6.7, s="r") print(format_function_call("fct", d))
>>>
fct(i=2, s='r', x=6.7)
- mlinsights.helpers.parameters.format_parameters(pdict)#
Formats a list of parameters.
- Parameters:
pdict – dictionary
- Returns:
string
<<<
from mlinsights.helpers.parameters import format_parameters d = dict(i=2, x=6.7, s="r") print(format_parameters(d))
>>>
i=2, s='r', x=6.7
- mlinsights.helpers.parameters.format_value(v)#
Formats a value to be included in a string.
- Parameters:
v – a string
- Returns:
a string