Skip to content

Commit

Permalink
Update component docs (#516)
Browse files Browse the repository at this point in the history
Update component docs to make it more explicit where resources and
models should be defined.
  • Loading branch information
PhilippeMoussalli authored Oct 13, 2023
1 parent 4d26b84 commit 45bc198
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/components/custom_component.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,10 @@ class ExampleComponent(PandasTransformComponent):
```

The `__init__` method is called once for each component class with custom arguments defined in the
`args` section of the [component specification](../components/component_spec.md).)
`args` section of the [component specification](../components/component_spec.md).) This is a good
place to initialize resources and costly initializations such as network connections, models,
parsing a config file, etc. By doing so, you can effectively prevent the redundant re-initialization
of resources each time the `transform` method is invoked.

The `transform` method is called multiple times, each time containing a pandas `dataframe`
with a partition of your data loaded in memory.
Expand Down

0 comments on commit 45bc198

Please sign in to comment.