Open ivanistheone opened 2 months ago
In the Linear regression model checking sections, the functions get_aic and get_aic_bic are not necessary.
get_aic
get_aic_bic
The text processing used to extract the AIC value model.fit().summary().tables[0].as_text().split('\n')[7].split('AIC:')[1].strip() can be replace with model.fit().aic.
model.fit().summary().tables[0].as_text().split('\n')[7].split('AIC:')[1].strip()
model.fit().aic
Similarly, the BIC is available under the .bic attribute: model.fit().bic.
.bic
model.fit().bic
In the Linear regression model checking sections, the functions
get_aic
andget_aic_bic
are not necessary.The text processing used to extract the AIC value
model.fit().summary().tables[0].as_text().split('\n')[7].split('AIC:')[1].strip()
can be replace withmodel.fit().aic
.Similarly, the BIC is available under the
.bic
attribute:model.fit().bic
.