-
3.39.23
|
The parent abstract class to represent the general factorization parameters. More...
Public Member Functions | |
def | __init__ (self, num_facts, is_update_way_R2L, init_lambda, constraints, step_size, constant_step_size, is_verbose, factor_format='dynamic', packing_RL=True, no_normalization=False, no_lambda=False, norm2_max_iter=100, norm2_threshold=1e-6, grad_calc_opt_mode=EXTERNAL_OPT, **kwargs) |
def | __repr__ (self) |
Returns object representation. More... | |
Static Public Member Functions | |
def | factor_format_str2int (factor_format) |
def | factor_format_int2str (factor_format) |
def | get_constraints (projs) |
Returns a python list of constraints from the projs which is a ConstralintList or a list/tuple that can be a mix of ConstraintGeneric or pyfaust.proj.proj_gen. More... | |
Public Attributes | |
step_size | |
constant_step_size | |
norm2_max_iter | |
norm2_threshold | |
factor_format | |
packing_RL | |
no_normalization | |
no_lambda | |
use_MHTP | |
The parent abstract class to represent the general factorization parameters.
The class is the base parameters for Palm4MSA and Hierarchical factorization but as an abstract class it's not for direct use. The documentation is hence left empty, please refer to the subclasses.
def pyfaust.factparams.ParamsFact.__init__ | ( | self, | |
num_facts, | |||
is_update_way_R2L, | |||
init_lambda, | |||
constraints, | |||
step_size, | |||
constant_step_size, | |||
is_verbose, | |||
factor_format = 'dynamic' , |
|||
packing_RL = True , |
|||
no_normalization = False , |
|||
no_lambda = False , |
|||
norm2_max_iter = 100 , |
|||
norm2_threshold = 1e-6 , |
|||
grad_calc_opt_mode = EXTERNAL_OPT , |
|||
** | kwargs | ||
) |
def pyfaust.factparams.ParamsFact.__repr__ | ( | self | ) |
Returns object representation.
Reimplemented in pyfaust.factparams.ParamsPalm4MSA, pyfaust.factparams.ParamsHierarchicalDFT, and pyfaust.factparams.ParamsHierarchical.
|
static |
|
static |
|
static |
Returns a python list of constraints from the projs which is a ConstralintList or a list/tuple that can be a mix of ConstraintGeneric or pyfaust.proj.proj_gen.
If projs is a ConstraintList then the function just returns the same object as is.
The function purpose is to make the list uniform as ConstraintGeneric objects.
pyfaust.factparams.ParamsFact.constant_step_size |
pyfaust.factparams.ParamsFact.factor_format |
pyfaust.factparams.ParamsFact.no_lambda |
pyfaust.factparams.ParamsFact.no_normalization |
pyfaust.factparams.ParamsFact.norm2_max_iter |
pyfaust.factparams.ParamsFact.norm2_threshold |
pyfaust.factparams.ParamsFact.packing_RL |
pyfaust.factparams.ParamsFact.step_size |
pyfaust.factparams.ParamsFact.use_MHTP |