Skip to content

Commit

Permalink
module file parameters added to component spec class
Browse files Browse the repository at this point in the history
  • Loading branch information
pratishtha-abrol committed Jun 17, 2021
1 parent 4d6f59c commit 1108e43
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions component/component.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ class SchemaCurationSpec(types.ComponentSpec):
"""ComponentSpec for TFX Schema Curation Custom Component."""

PARAMETERS = {
# These are parameters that will be passed in the call to
# create an instance of this component.
# 'name': ExecutionParameter(type=Text),
'module_file': ExecutionParameter(type=str, optional=True),
'module_path': ExecutionParameter(type=str, optional=True),
'preprocessing_fn': ExecutionParameter(type=str, optional=True),
'exclude_splits': ExecutionParameter(type=str, optional=True),
}
INPUTS = {
Expand All @@ -49,6 +49,12 @@ class SchemaCurationSpec(types.ComponentSpec):
class SchemaCuration(base_component.BaseComponent):
"""Custom TFX Schema Curation Component.
The SchemaCuration component is used to apply user code to a chema generated by SchemaGen
in order to curate the schema based on domain knowledge.
Component `outputs` contains:
- `output_schema`: Channel of type `standard_artifact.Schema`
Current progress :
- Accepts schema, outputs the same schema
"""
Expand Down

0 comments on commit 1108e43

Please sign in to comment.