-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
8,068 additions
and
14,648 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
import logging | ||
from typing import Dict, List, Sequence, Tuple, Union | ||
|
||
import numpy as np | ||
import pandas as pd | ||
import plotly.express as px | ||
import yaml | ||
|
||
logging.basicConfig(level=logging.INFO) | ||
|
||
from report_creator import ( | ||
Base, | ||
Block, | ||
Collapse, | ||
DataTable, | ||
Group, | ||
Image, | ||
Json, | ||
Markdown, | ||
Plot, | ||
Python, | ||
ReportCreator, | ||
Select, | ||
Separator, | ||
Statistic, | ||
Text, | ||
Yaml, | ||
) | ||
|
||
if __name__ == "__main__": | ||
|
||
|
||
with ReportCreator("Kitchen Sink Report") as report: | ||
view = Block( | ||
Group( | ||
Statistic( | ||
heading="Chances of rain", | ||
value="84", | ||
unit="%", | ||
), | ||
Statistic(heading="Loss", value=0.1), | ||
Statistic( | ||
heading="Accuracy", | ||
value=95, | ||
label="Number of correct predictions Total number of predictions", | ||
), | ||
label="Grouped Stats", | ||
), | ||
Group( | ||
Statistic( | ||
heading="Answer to Life, The Universe, and Everything", | ||
value="42", | ||
), | ||
Statistic( | ||
heading="Confidence", | ||
value=95, | ||
unit="%", | ||
label="How likely is this to be correct.", | ||
), | ||
Statistic( | ||
heading="Author", | ||
value="Douglas Adams", | ||
), | ||
) | ||
) | ||
|
||
report.save(view, "index.html") |
Oops, something went wrong.