Skip to content

Commit

Permalink
Module config correction
Browse files Browse the repository at this point in the history
  • Loading branch information
phurwicz committed Apr 22, 2023
1 parent a03ab68 commit f28dc02
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
5 changes: 3 additions & 2 deletions hover/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
],
),
Config(
"visual",
ConfigSection.VISUAL,
[
AutolockedConfigValue(
ConfigKey.ABSTAIN_HEXCOLOR,
Expand Down Expand Up @@ -74,7 +74,8 @@
ConfigSection.DATA_COLUMNS,
[
AutolockedConfigValue(
ConfigKey.ENCODED_LABEL_KEY,
# ConfigKey.ENCODED_LABEL_KEY,
"encoded_label_key",
"The column name for the encoded label.",
"label_encoded",
validation=Validator.is_str,
Expand Down
2 changes: 1 addition & 1 deletion hover/config_constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class ConfigSection:
VISUAL = "visual"
DATA_EMBEDDING = "data.embedding"
DATA_COLUMNS = "data.columns"
DATA_VALUES = "data.columns"
DATA_VALUES = "data.values"


class ConfigKey:
Expand Down
3 changes: 2 additions & 1 deletion hover/module_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
ABSTAIN_HEXCOLOR = hover.config[Section.VISUAL][Key.ABSTAIN_HEXCOLOR]

# constants for label encoding mechanism
ENCODED_LABEL_KEY = hover.config[Section.DATA_COLUMNS][Key.ENCODED_LABEL_KEY]
# ENCODED_LABEL_KEY = hover.config[Section.DATA_COLUMNS][Key.ENCODED_LABEL_KEY]
ENCODED_LABEL_KEY = "label_encoded"

# constants for saving work
DATA_SAVE_DIR = hover.config[Section.IO][Key.DATA_SAVE_DIR]
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def get_description():
# dimensionality reduction: UMAP is included
"umap-learn>=0.3.10",
# module config customization
"flexmod>=0.1.0",
"flexmod>=0.1.2",
# optional: more dimensionality reduction methods
# "ivis[cpu]>=1.7",
# optional: distant supervision
Expand Down

0 comments on commit f28dc02

Please sign in to comment.