semopy


Report autogeneration

Previously, it has been demonstrated how to extract valuable information from the fitted model programmaticaly by means of different functions and methods. However, might prefer a fancier approach of a readable document with information of most interest. semopy provides a report function that takes a fitted model and generates an HTML file. See an example:

from semopy.examples import political_democracy
from semopy import ModelMeans

desc = political_democracy.get_model()
data = political_democracy.get_data()
model = ModelMeans(desc)
model.fit(data)
report(model, "Political Democracy")
The "Political Democracy" string plays a role of a report title and a folder name where the report will be saved. The output can be seen here.