MACEParameterOptions¶
Included in QATK.MLFF
- class MACEParameterOptions¶
Deprecated since version 2026.03: MACEParameterOptions is deprecated and will be removed in a future release. Use
MLParameterOptionsinstead.MACE-specific parameter options container (deprecated). All attributes trigger deprecation warnings.
- For new code, use
MLParameterOptionswhich provides: DEVICE (AUTOMATIC, CPU, GPU)
DTYPE (FLOAT32, FLOAT64)
TASK_TYPE (GENERAL, ATOM_WISE)
POOLING (SUM, MEAN, MAX)
- class DEVICE¶
Device options for ML training and inference.
- class DTYPE¶
Data type precision options.
- class POOLING¶
Pooling methods for aggregation.
- class TASK_TYPE¶
Task type for property prediction.
- For new code, use
Notes¶
Deprecated since version 2026.03: MACEParameterOptions is deprecated and will be removed in a future release. Use MLParameterOptions instead, which provides the same functionality with a framework-agnostic design.
The MACEParameterOptions class provides predefined options for various MACE training parameters. These options are organized into nested classes, each representing a specific parameter category.
Migration Guide: Replace MACEParameterOptions with MLParameterOptions in your code. The API
is identical for DEVICE, DTYPE, TASK_TYPE, and POOLING options.
Available Option Groups¶
DEVICE
Controls which hardware device is used for training:
MACEParameterOptions.DEVICE.AUTOMATIC- Automatically selects GPU if available, otherwise CPUMACEParameterOptions.DEVICE.CPU- Use CPU for trainingMACEParameterOptions.DEVICE.GPU- Use GPU (CUDA) for training
DTYPE
Specifies the floating-point precision for model parameters:
MACEParameterOptions.DTYPE.FLOAT32- 32-bit floating point (faster, less memory)MACEParameterOptions.DTYPE.FLOAT64- 64-bit floating point (more accurate)
TASK_TYPE
Defines the type of prediction task:
MACEParameterOptions.TASK_TYPE.GENERAL- Global, per-configuration property predictionMACEParameterOptions.TASK_TYPE.ATOM_WISE- Atom-wise property prediction
POOLING
Specifies the pooling method for aggregating atomic contributions:
MACEParameterOptions.POOLING.SUM- Sum atomic contributionsMACEParameterOptions.POOLING.MEAN- Average atomic contributionsMACEParameterOptions.POOLING.MAX- Take maximum of atomic contributions
Usage Example¶
training_parameters = TrainingParameters(
experiment_name='my_experiment',
default_dtype=MACEParameterOptions.DTYPE.FLOAT64,
device=MACEParameterOptions.DEVICE.AUTOMATIC,
)