1.1.10.2.5.1. src.ml_pipeline.Templates.main_class_templates.Model.Model¶
- class Model(Models_inst, name, **supplemental_kwargs)[source]¶
Bases:
ml_pipeline.ML_Model.ModelMethods
custom_funcdo_nothingexitexport_cachedexport_dataexport_model_to_pickleexport_resultsformat_string_by_attsgeneric_cleaningreturns self.<att_string>
returns all values of atts for class instance
get_random_Childreturns True/False whether the instance has the attribute
returns a list of True/False indicating whether the class has each attribute
import_cachedimport_model_from_picklejoin_fileslambda_on_Childrenmake_Input_Filesopen_Child_userpostprocesspreprocessPrint off all Class instance attributes
Print attributes of the class off, if not printed off, the string will be returned
Shows information about what type of class self is
Prints off (or returns a string) with the 'important' information about a class Most child classes will redefine this method with custom attributes to print off
Prints off (or returns a string) with information about a class in one line Most child classes will redefine this method with custom attributes to print off
Function does one of two things 1.
read_filesGive the user options on what to run
run_algorithmruns method_name associated with self and given *args and **kwargs, returns whatever the method_pointer returns
run_pipelineselect_Child_userreturn a list of Children instances where Child_add == Child_value
sets self.att = val
sets attributes of the class equal to the dictionary values
shapAttributes
BASE_OPTIONSDEFAULT_KWARGSEXCEL_PARAMSOVERRIDE_KWARGSRELATIVE_DATA_DIR_KEYSSUFFIXUPDATED_OPTIONS- has_atts(atts: List[str]) List[bool]¶
returns a list of True/False indicating whether the class has each attribute
- print_atts(how: str = 'imp', **kwargs)¶
Print attributes of the class off, if not printed off, the string will be returned
- print_imp_atts(print_off=True)[source]¶
Prints off (or returns a string) with the ‘important’ information about a class Most child classes will redefine this method with custom attributes to print off
- print_one_line_atts(print_off=True, leading_string='\t')[source]¶
Prints off (or returns a string) with information about a class in one line Most child classes will redefine this method with custom attributes to print off
- print_string(string: str, print_off: bool = True) Any¶
Function does one of two things 1. Prints off the string and returns NOne 2. Returns the string
- run()¶
Give the user options on what to run
- run_method(method_name, *method_args, **method_kwargs)¶
runs method_name associated with self and given *args and **kwargs, returns whatever the method_pointer returns
- select_Children_where(att, value)¶
return a list of Children instances where Child_add == Child_value