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

fix: Improve explanation readability #1815

Merged
merged 5 commits into from
Nov 14, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions frontend/components/text-classifier/results/RecordExplain.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export default {
let percent = Math.round(Math.abs(grad) * 100);
if (percent !== 0) {
/* eslint-disable no-mixed-operators */
const p = 1.5; // color sensitivity (values from 1 to 4)
const p = 1; // color sensitivity (values from 1 to 4)
leiyre marked this conversation as resolved.
Show resolved Hide resolved
const s = 100 / Math.log10(100) ** p;
percent = Math.round(Math.log10(percent) ** p * s);
}
Expand Down Expand Up @@ -91,7 +91,7 @@ export default {
margin: auto;
transform: translateY(10px);
position: absolute;
bottom: 5px;
bottom: 4px;
right: 0;
left: 0;
}
Expand All @@ -110,7 +110,7 @@ export default {
}
}
.grad-neg-#{$i} {
$bg: hsla(200, 60%, 100% - $i * 0.5, 1);
$bg: hsla(200, 60%, 100% - $i * 0.5, 0.5);
@extend %grad;
background: $bg;
.atom__tooltip {
Expand All @@ -132,7 +132,7 @@ export default {
}
}
.grad-rest-#{$i} {
$bg: hsla(0, 80%, 100% - $i * 0.5, 1);
$bg: hsla(0, 80%, 100% - $i * 0.5, 0.5);
@extend %grad;
background: $bg;
.atom__tooltip {
Expand Down