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

Move normalize.py to utils of alchemical_model #115

Merged
merged 4 commits into from
Feb 29, 2024
Merged
Show file tree
Hide file tree
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
1 change: 0 additions & 1 deletion docs/src/dev-docs/utils/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,5 @@ This is the API for the ``utils`` module of ``metatensor-models``.
merge_capabilities
model-io
neighbors_lists
normalize
omegaconf
output_gradient
9 changes: 0 additions & 9 deletions docs/src/dev-docs/utils/normalize.rst

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@

from ... import ARCHITECTURE_CONFIG_PATH
from ...utils.composition import apply_composition_contribution
from ...utils.normalize import apply_normalization
from .utils import systems_to_torch_spex_dict
from .utils.normalize import apply_normalization


DEFAULT_HYPERS = OmegaConf.to_container(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
from ...utils.merge_capabilities import merge_capabilities
from ...utils.model_io import load_checkpoint, save_model
from ...utils.neighbors_lists import get_system_with_neighbors_lists
from ...utils.normalize import (
from .model import DEFAULT_HYPERS, Model
from .utils.normalize import (
get_average_number_of_atoms,
get_average_number_of_neighbors,
)
from .model import DEFAULT_HYPERS, Model


logger = logging.getLogger(__name__)
Expand Down
Loading