physbo.predictor module

class physbo.predictor.base_predictor(config, model=None)[source]

Bases: object

Base predictor is defined in this class.

delete_stats(*args, **kwds)[source]

Default function to delete status. This function must be overwritten in each model.

Parameters:
  • args

  • kwds

fit(*args, **kwds)[source]

Default fit function. This function must be overwritten in each model.

Parameters:
  • args

  • kwds

get_basis(*args, **kwds)[source]

Default function to get basis This function must be overwritten in each model.

Parameters:
  • args

  • kwds

get_post_fcov(*args, **kwds)[source]

Default function to get a covariance of the score. This function must be overwritten in each model.

Parameters:
  • args

  • kwds

get_post_fmean(*args, **kwds)[source]

Default function to get a mean value of the score. This function must be overwritten in each model.

Parameters:
  • args

  • kwds

get_post_params(*args, **kwds)[source]

Default function to get parameters. This function must be overwritten in each model.

Parameters:
  • args

  • kwds

get_post_params_samples(*args, **kwds)[source]

Default function to get parameters of samples. This function must be overwritten in each model.

Parameters:
  • args

  • kwds

get_post_samples(*args, **kwds)[source]

Default function to get samples. This function must be overwritten in each model.

Parameters:
  • args

  • kwds

get_predict_samples(*args, **kwds)[source]

Default function to get prediction variables of samples. This function must be overwritten in each model.

Parameters:
  • args

  • kwds

load(file_name)[source]

Default function to load variables. The information is updated using self.update function.

Parameters:

file_name (str) – A file name to load variables from the file.

prepare(*args, **kwds)[source]

Default prepare function. This function must be overwritten in each model.

Parameters:
  • args

  • kwds

save(file_name)[source]

Default function to save information by using pickle.dump function. The protocol version is set as 3.

Parameters:

file_name (str) – A file name to save self.__dict__ object.

update(*args, **kwds)[source]

Default function to update variables. This function must be overwritten in each model.

Parameters:
  • args

  • kwds