main_config
Configuration file for the model, trainer, data paths and data.
Args
dataclass
Configuration class for the model, trainer, data paths, and data.
Attributes:
| Name | Type | Description |
|---|---|---|
model |
BaseModelArgs
|
Configuration for the model. |
trainer |
BaseTrainer
|
Configuration for the trainer. |
data |
DataArgs
|
Configuration for the data. |
eval_path |
str | None
|
Path for evaluation. |
hydra |
Any
|
Configuration for Hydra. |
Source code in src/configs/main_config.py
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 | |
get_model(cfg)
Returns a model based on the model name.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
cfg
|
Args
|
Configuration object containing model parameters. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
BaseModel |
BaseModel | BaseMLModel
|
An instance of the model class. |
Source code in src/configs/main_config.py
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 | |