Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: reported DCR_share with the description when holdout provided #103

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

ivonaVlckova
Copy link

DCR share metric added to html report

@ivonaVlckova ivonaVlckova requested a review from mplatzer February 7, 2025 16:53
@ivonaVlckova ivonaVlckova self-assigned this Feb 7, 2025
@ivonaVlckova
Copy link
Author

I am not sure whether DCR share table below CDF makes sense but I created a separated one because it did not fit to other distance metrics where the distances are compared for the training and holdout dataset.

@ivonaVlckova ivonaVlckova linked an issue Feb 7, 2025 that may be closed by this pull request
@ivonaVlckova ivonaVlckova requested a review from a team February 11, 2025 13:41
@@ -152,9 +152,15 @@ <h1 id="summary"><span>{{ meta.report_title }}</span>{{ meta.report_subtitle }}<
<td style="width: 70px;">
<div class="result-box-title">
Distances
{% if metrics.distances.dcr_share is not none %}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Imo this if/else is not needed. Let's go for a single tooltip version.

<div class="white-box p-3">
{{ distances_dcr_html_chart }}
</div>
<br />
{% if metrics.distances.dcr_share is not none %}
<div class="table-responsive col-md-8 offset-md-2">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we make this table just as wide as the table above.

Screenshot 2025-02-12 at 19 14 35

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried it manually. As I am not familiar with html so I am not sure whether there can be some issue with this solution

</div>
<br />
<div class="explainer" style="margin-bottom: 30px">
<div class="explainer-header">
<div class="explainer-icon">{{html_assets['explainer.svg']}}</div>
<div class="explainer-title">Explainer</div>
</div>
{% if metrics.distances.dcr_share is not none %}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above. let's use a single version for the explainer, assuming that DCR share is availabel. otherwise the text will be hard to maintain.

@ivonaVlckova
Copy link
Author

When running pytest, I realized that model report is created. Should I adjust some test script as well/create a test?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feature request: DCR share in html report
2 participants