Skip to content

Commit

Permalink
Refinery reduction (#11)
Browse files Browse the repository at this point in the history
* Removes overview charts but label distribution

* Remove display Graphs enum
  • Loading branch information
JWittmeyer authored Nov 11, 2024
1 parent 75fa5a5 commit 3bd200a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 20 deletions.
13 changes: 1 addition & 12 deletions enums/enum-functions.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { DisplayGraphs, InformationSourceType, LabelSource, SearchGroup, Slice, StaticOrderByKeys } from "./enums";
import { InformationSourceType, LabelSource, SearchGroup, Slice, StaticOrderByKeys } from "./enums";

export function informationSourceTypeToString(source: InformationSourceType, short: boolean, forDisplay: boolean = true) {
if (forDisplay) {
Expand All @@ -12,17 +12,6 @@ export function informationSourceTypeToString(source: InformationSourceType, sho
return source;
}

export function displayGraphsTypeToString(source: DisplayGraphs) {
switch (source) {

case DisplayGraphs.CONFUSION_MATRIX: return "Confusion Matrix";
case DisplayGraphs.INTER_ANNOTATOR: return "Inter Annotator";
case DisplayGraphs.LABEL_DISTRIBUTION: return "Label Distribution";
case DisplayGraphs.CONFIDENCE_DISTRIBUTION: return "Confidence Distribution";
case DisplayGraphs.ALL: return "All";
default: return source;
}
}

export function labelSourceToString(source: LabelSource, forDisplay: boolean = true) {
if (forDisplay) {
Expand Down
8 changes: 0 additions & 8 deletions enums/enums.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,6 @@ export enum InformationSourceType {
PRE_COMPUTED = "PRE_COMPUTED",
}

export enum DisplayGraphs {
ALL = "ALL",
CONFUSION_MATRIX = "CONFUSION_MATRIX",
INTER_ANNOTATOR = "INTER_ANNOTATOR",
LABEL_DISTRIBUTION = "LABEL_DISTRIBUTION",
CONFIDENCE_DISTRIBUTION = "CONFIDENCE_DISTRIBUTION",
}

export enum LabelSource {
MANUAL = "MANUAL",
WEAK_SUPERVISION = "WEAK_SUPERVISION",
Expand Down

0 comments on commit 3bd200a

Please sign in to comment.