Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 3bd200a

Browse files
authoredNov 11, 2024
Refinery reduction (#11)
* Removes overview charts but label distribution * Remove display Graphs enum
1 parent 75fa5a5 commit 3bd200a

File tree

2 files changed

+1
-20
lines changed

2 files changed

+1
-20
lines changed
 

‎enums/enum-functions.ts

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { DisplayGraphs, InformationSourceType, LabelSource, SearchGroup, Slice, StaticOrderByKeys } from "./enums";
1+
import { InformationSourceType, LabelSource, SearchGroup, Slice, StaticOrderByKeys } from "./enums";
22

33
export function informationSourceTypeToString(source: InformationSourceType, short: boolean, forDisplay: boolean = true) {
44
if (forDisplay) {
@@ -12,17 +12,6 @@ export function informationSourceTypeToString(source: InformationSourceType, sho
1212
return source;
1313
}
1414

15-
export function displayGraphsTypeToString(source: DisplayGraphs) {
16-
switch (source) {
17-
18-
case DisplayGraphs.CONFUSION_MATRIX: return "Confusion Matrix";
19-
case DisplayGraphs.INTER_ANNOTATOR: return "Inter Annotator";
20-
case DisplayGraphs.LABEL_DISTRIBUTION: return "Label Distribution";
21-
case DisplayGraphs.CONFIDENCE_DISTRIBUTION: return "Confidence Distribution";
22-
case DisplayGraphs.ALL: return "All";
23-
default: return source;
24-
}
25-
}
2615

2716
export function labelSourceToString(source: LabelSource, forDisplay: boolean = true) {
2817
if (forDisplay) {

‎enums/enums.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,6 @@ export enum InformationSourceType {
44
PRE_COMPUTED = "PRE_COMPUTED",
55
}
66

7-
export enum DisplayGraphs {
8-
ALL = "ALL",
9-
CONFUSION_MATRIX = "CONFUSION_MATRIX",
10-
INTER_ANNOTATOR = "INTER_ANNOTATOR",
11-
LABEL_DISTRIBUTION = "LABEL_DISTRIBUTION",
12-
CONFIDENCE_DISTRIBUTION = "CONFIDENCE_DISTRIBUTION",
13-
}
14-
157
export enum LabelSource {
168
MANUAL = "MANUAL",
179
WEAK_SUPERVISION = "WEAK_SUPERVISION",

0 commit comments

Comments
 (0)
Please sign in to comment.