Utility classes and functions

SOAP utility module

class utility.MemoryMonitor[source]

Monitor the memory usage of the current program

usage(name)[source]

Return int containing memory used by user’s processes.

class utility.Mymodel[source]

Modeller model class with customized functions.

utility.decode_genmethod(genmethod)[source]

Decode genmethod str

utility.load_scorer(originalscorer, indexlen)[source]

loading scorer, used for tranfering scoring across computers

class utility.mypickle[source]

this class will save the numpy array seperately when pickling the object to speed up performance and avoid pickle problems with large array, /////old version: only works when the numpy array is a varialbe of an object. WILL NOT WORK if you have a list of numpy arrays.