Skip to content

Commit

Permalink
[schema] Mark skip internal only (#3022)
Browse files Browse the repository at this point in the history
  • Loading branch information
jppgks authored Jan 30, 2023
1 parent ca9ec5d commit 6d3a8c3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ludwig/schema/encoders/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ class BaseEncoderConfig(schema_utils.BaseMarshmallowConfig, ABC):

type: str

skip: bool = schema_utils.Boolean(False, "[internal] Whether to skip encoder and use input as output.")
skip: bool = schema_utils.Boolean(
False,
"[internal] Whether to skip encoder and use input as output.",
parameter_metadata=ENCODER_METADATA["BaseEncoder"]["skip"],
)


@DeveloperAPI
Expand Down
5 changes: 5 additions & 0 deletions ludwig/schema/metadata/configs/encoders.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
BaseEncoder:
skip:
internal_only: true
other_information: Internal Only
ui_display_name: Not Displayed
ALBERT:
type:
short_description:
Expand Down

0 comments on commit 6d3a8c3

Please sign in to comment.