io
sgp.io.ANNIO
Bases: HashableBaseModelIO
sgp.io.DatabaseIO
Bases: HashableBaseModelIO
sgp.io.DatabaseIO.XY
property
sgp.io.DatabaseIO.YX
property
sgp.io.DatabaseIO.df
property
df: DataFrame
Get the data for the database.
| RETURNS | DESCRIPTION |
|---|---|
DataFrame
|
A DataFrame with the data for the database. |
sgp.io.DatabaseIO.df_mpd
property
df_mpd: DataFrame
Get the data for the multivariate distribution.
| RETURNS | DESCRIPTION |
|---|---|
DataFrame
|
A DataFrame with the data for the multivariate distribution. |
sgp.io.DatabaseIO.X
Get the original variable from the variable in the multivariate distribution.
sgp.io.DatabaseIO.Xs
Get the values for the original variables from the variables in the multivariate distribution.
sgp.io.DatabaseIO.Y
Get the variable in the multivariate distribution from the original variable.
sgp.io.DatabaseIO.Ys
Get the values for the variables in the multivariate distribution from the original variables.
sgp.io.DatabaseIO.describe
Get the statistics of the database key.
sgp.io.EquationIO
Bases: HashableBaseModelIO
sgp.io.HSSIO
sgp.io.HSSParametersIO
sgp.io.HashableBaseModelIO
Bases: BaseModel
Input/output utilities for the models with support for the following features:
- Hashing of the model
- Conversion to and from dictionaries, json, toml, and yaml files
- Compatibility with pydantic v1 and v2
sgp.io.HashableBaseModelIO.exclude
property
Fields to exclude from the model, typically used to exclude arbitrary types when it is allowed in the pydantic model to avoid hashing issues.
sgp.io.HashableBaseModelIO.fromBytes
classmethod
Load the model from a binary string or file if a path is provided.
sgp.io.HashableBaseModelIO.fromCryptography
classmethod
Decrypt the model using the key.
sgp.io.HashableBaseModelIO.fromDict
classmethod
fromDict(*, data: dict, **kwargs) -> Self
Load the model from a dictionary.
sgp.io.HashableBaseModelIO.fromJson
classmethod
Load the model from a json string or file if a path is provided.
sgp.io.HashableBaseModelIO.fromToml
classmethod
Load the model from a toml string or file if a path is provided.
sgp.io.HashableBaseModelIO.fromYaml
classmethod
Load the model from a yaml string or file if a path is provided.
sgp.io.HashableBaseModelIO.toBytes
Convert the model to a binary string or save it to a file if a path is provided.
sgp.io.HashableBaseModelIO.toCryptography
Encrypt the model using the key.
sgp.io.HashableBaseModelIO.toJson
Convert the model to a json string or save it to a file if a path is provided.
sgp.io.HashableBaseModelIO.toToml
Convert the model to a toml string or save it to a file if a path is provided.
sgp.io.HashableBaseModelIO.toYaml
Convert the model to a yaml string or save it to a file if a path is provided.
sgp.io.HashableBaseModelIO.update
update(data: dict = None, **kwargs) -> Self
Update the options of the optimizer
sgp.io.InputIO
Bases: VariableIO
sgp.io.MPDIO
Bases: HashableBaseModelIO
sgp.io.SGPIO
Bases: HashableBaseModelIO
sgp.io.SoilParametersIO
Bases: HashableBaseModelIO
sgp.io.VariableIO
Bases: HashableBaseModelIO