module helpers.parameters#

Short summary#

module mlinsights.helpers.parameters

Functions about parameters.

source on GitHub

Functions#

function

truncated documentation

format_function_call

Formats a function call with named parameters.

format_parameters

Formats a list of parameters.

format_value

Formats a value to be included in a string.

Documentation#

Functions about parameters.

source on GitHub

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)

source on GitHub

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

source on GitHub

mlinsights.helpers.parameters.format_value(v)#

Formats a value to be included in a string.

Parameters

v – a string

Returns

a string

source on GitHub