physbo.gp.mean.const module

class physbo.gp.mean.const.const(params=None, max_params=1000000000000.0, min_params=-1000000000000.0)[source]

Bases: object

constant

get_cand_params(t)[source]

Getting the median array of candidates.

Parameters:

t (array_like) – Input array or object that can be converted to an array

Returns:

median – A new array holding the result.

Return type:

numpy.ndarray

get_grad(num_data, params=None)[source]

Returning a new array of (num_data), filled with ones.

Parameters:
  • num_data (int) – total number of data

  • params (object) – not used

Return type:

numpy.ndarray

get_mean(num_data, params=None)[source]
Parameters:
  • num_data (int) – total number of data

  • params (numpy.ndarray) – parameters

Return type:

numpy.ndarray

get_params_bound()[source]

Getting the boundary list for parameters

Returns:

bound – num_params array with the tupple (min_param, max_params)

Return type:

list

init_params(params)[source]

Initializing parameters

Parameters:

params (numpy.ndarray) – parameters

Returns:

params – initialized parameters

Return type:

numpy.ndarray

set_params(params)[source]

Setting parameters defined in const class.

Parameters:

params (numpy.ndarray) – parameters

Return type:

numpy.ndarray

supp_params(params)[source]

Setting maximum and minimum value of parameters.

Parameters:

params (numpy.ndarray) – parameters

Return type:

numpy.ndarray