Types
CommonKwargs
¶
Source code in python/opsml/types/_types.pyi
as_string()
¶
Return the string representation of the CommonKwargs.
Returns:
Type | Description |
---|---|
str
|
String representation of the CommonKwargs. |
from_string(s)
staticmethod
¶
Return the CommonKwargs enum from a string.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
s
|
str
|
The string representation of the CommonKwargs. |
required |
Returns:
Type | Description |
---|---|
Optional[CommonKwargs]
|
The CommonKwargs enum. |
DriftArgs
¶
Source code in python/opsml/types/_types.pyi
active
property
¶
Return the active status of the drift profile.
deactivate_others
property
¶
Return the deactivate_others status of the drift profile.
__init__(active=True, deactivate_others=False)
¶
Define a drift config
Parameters:
Name | Type | Description | Default |
---|---|---|---|
active
|
bool
|
Whether to set the drift profile to active |
True
|
deactivate_others
|
bool
|
Whether to deactivate all other drift profiles of the same space and name |
False
|
Source code in python/opsml/types/_types.pyi
DriftProfileMap
¶
Source code in python/opsml/types/_types.pyi
__getitem__(key)
¶
__init__()
¶
add_profile(alias, profile)
¶
Add a drift profile to the map
Parameters:
Name | Type | Description | Default |
---|---|---|---|
alias
|
str
|
Alias to use for the drift profile |
required |
profile
|
Any
|
Drift profile to add |
required |
is_empty()
¶
Returns whether the drift profile map is empty
Returns:
Type | Description |
---|---|
bool
|
True if the drift profile map is empty, False otherwise |
DriftProfileUri
¶
Source code in python/opsml/types/_types.pyi
__init__(uri, drift_type)
¶
Define a drift profile
Parameters:
Name | Type | Description | Default |
---|---|---|---|
root_dir
|
The root directory of the drift profile |
required | |
uri
|
Path
|
The relative path to the drift profile |
required |
drift_type
|
DriftType
|
Drift profile type |
required |
Source code in python/opsml/types/_types.pyi
SaveName
¶
Source code in python/opsml/types/_types.pyi
__str__()
¶
as_string()
¶
Return the string representation of the SaveName.
Returns:
Type | Description |
---|---|
str
|
String representation of the SaveName. |
SaverPath
¶
Source code in python/opsml/types/_types.pyi
__init__(parent, child, filename, extension)
¶
Helper for creating paths for saving artifacts.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
parent
|
Path
|
The parent path. |
required |
child
|
Path | None
|
The child path. |
required |
filename
|
SaveName | None
|
The filename. |
required |
extension
|
Suffix | None
|
The extension. |
required |
Source code in python/opsml/types/_types.pyi
Suffix
¶
Source code in python/opsml/types/_types.pyi
__str__()
¶
as_string()
¶
Return the string representation of the Suffix.
Returns:
Type | Description |
---|---|
str
|
String representation of the Suffix. |