\(\newcommand{\B}[1]{ {\bf #1} }\) \(\newcommand{\R}[1]{ {\rm #1} }\)
data_include¶
View page sourceRows of Data Table That are Include for a Fit¶
Prototype¶
# at_cascade.data_include
def data_include(
fit_database,
root_database
) :
assert type( fit_database ) == str
assert type( root_database ) == str
assert type( data_include_table ) == list
if len( data_include_table ) > 0 :
assert type( data_include_table[0] ) == dict
assert data_include_table[0]['hold_out'] == 0
return data_include_table
fit_database¶
This is the database for the job that we will be fitting. All of the dismod_at hold out commands that will be used for the fit must be executed; i.e., the hold_out column in the data_subset table is the same as will be used for the fit.
root_database¶
This is the root node database. It contains the dismod_at tables that are the same for all the fits in the cascade.
data_include_table¶
This is the rows of the data table that are included in the fit; i.e., the rows that satisfy the following conditions:
The node is the node being fit or a descendant of the node being fit.
All the covariates are within their maximum difference limits.
The hold_out value in the data table is zero
The corresponding hold_out value in the data_subset table is zero.
The corresponding integrand is not in the option table hold_out list.