Skip to content

Commit

Permalink
docs: fix args in DataConfig (#292)
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda authored Nov 12, 2023
1 parent 317a172 commit 26e5055
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/data.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ Pytorch Tabular handles this using a `DataConfig` object.
## Basic Usage

- `target`: List\[str\]: A list of strings with the names of the target column(s)
- `continuous_columns`: List\[str\]: Column names of the numeric fields. Defaults to \[\]
- `categorical_columns`: List\[str\]: Column names of the categorical fields to treat differently
- `continuous_cols`: List\[str\]: Column names of the numeric fields. Defaults to \[\]
- `categorical_cols`: List\[str\]: Column names of the categorical fields to treat differently

### Usage Example

```python
data_config = DataConfig(
target=["label"],
continuous_columns=["feature_1", "feature_2"],
categorical_columns=["cat_feature_1", "cat_feature_2"],
continuous_cols=["feature_1", "feature_2"],
categorical_cols=["cat_feature_1", "cat_feature_2"],
)
```

Expand Down

0 comments on commit 26e5055

Please sign in to comment.