Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove duplicate class DropoutConfig and fix typo in docstring #54

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 1 addition & 9 deletions projects/home/recap/model/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down Expand Up @@ -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."""

Expand Down