mirror of
https://github.com/twitter/the-algorithm-ml.git
synced 2024-12-23 06:41:49 +01:00
Remove duplicate class DropoutConfig and fix typo in docstring
This commit is contained in:
parent
78c3235eee
commit
ee7f8f7e64
@ -18,7 +18,7 @@ class DropoutConfig(base_config.BaseConfig):
|
||||
|
||||
|
||||
class LayerNormConfig(base_config.BaseConfig):
|
||||
"""Configruation for the layer normalization."""
|
||||
"""Configuration for the layer normalization."""
|
||||
|
||||
epsilon: float = pydantic.Field(
|
||||
1e-3, description="Small float added to variance to avoid dividing by zero."
|
||||
@ -110,14 +110,6 @@ class FeaturizationConfig(base_config.BaseConfig):
|
||||
)
|
||||
|
||||
|
||||
class DropoutConfig(base_config.BaseConfig):
|
||||
"""Configuration for the dropout layer."""
|
||||
|
||||
rate: pydantic.PositiveFloat = pydantic.Field(
|
||||
0.1, description="Fraction of inputs to be dropped."
|
||||
)
|
||||
|
||||
|
||||
class MlpConfig(base_config.BaseConfig):
|
||||
"""Configuration for MLP model."""
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user