Schemas
siapy.datasets.schemas
¶
Target
¶
Bases: BaseModel
, ABC
model_config
class-attribute
instance-attribute
¶
model_config = ConfigDict(arbitrary_types_allowed=True)
from_dict
abstractmethod
classmethod
¶
from_iterable
abstractmethod
classmethod
¶
PARAMETER | DESCRIPTION |
---|---|
data |
TYPE:
|
Source code in siapy/datasets/schemas.py
32 33 34 |
|
to_dict
abstractmethod
¶
Source code in siapy/datasets/schemas.py
36 37 |
|
to_dataframe
abstractmethod
¶
to_dataframe() -> DataFrame
Source code in siapy/datasets/schemas.py
39 40 |
|
ClassificationTarget
¶
Bases: Target
model_config
class-attribute
instance-attribute
¶
model_config = ConfigDict(arbitrary_types_allowed=True)
from_iterable
classmethod
¶
from_iterable(data: Iterable) -> ClassificationTarget
PARAMETER | DESCRIPTION |
---|---|
data |
TYPE:
|
Source code in siapy/datasets/schemas.py
59 60 61 62 |
|
from_dict
classmethod
¶
from_dict(data: dict[str, Any]) -> ClassificationTarget
PARAMETER | DESCRIPTION |
---|---|
data |
|
Source code in siapy/datasets/schemas.py
64 65 66 67 68 69 |
|
to_dict
¶
Source code in siapy/datasets/schemas.py
71 72 73 74 75 76 |
|
to_dataframe
¶
to_dataframe() -> DataFrame
Source code in siapy/datasets/schemas.py
78 79 |
|
reset_index
¶
reset_index() -> ClassificationTarget
Source code in siapy/datasets/schemas.py
81 82 83 84 85 86 |
|
RegressionTarget
¶
Bases: Target
model_config
class-attribute
instance-attribute
¶
model_config = ConfigDict(arbitrary_types_allowed=True)
from_iterable
classmethod
¶
from_iterable(data: Iterable) -> RegressionTarget
PARAMETER | DESCRIPTION |
---|---|
data |
TYPE:
|
Source code in siapy/datasets/schemas.py
100 101 102 103 |
|
from_dict
classmethod
¶
from_dict(data: dict[str, Any]) -> RegressionTarget
to_dict
¶
Source code in siapy/datasets/schemas.py
111 112 113 114 115 |
|
to_dataframe
¶
to_dataframe() -> DataFrame
Source code in siapy/datasets/schemas.py
117 118 |
|
reset_index
¶
reset_index() -> RegressionTarget
Source code in siapy/datasets/schemas.py
120 121 |
|
TabularDatasetData
¶
Bases: BaseModel
PARAMETER | DESCRIPTION |
---|---|
*args |
TYPE:
|
**kwargs |
TYPE:
|
Source code in siapy/datasets/schemas.py
131 132 133 |
|
model_config
class-attribute
instance-attribute
¶
model_config = ConfigDict(arbitrary_types_allowed=True)
from_dict
classmethod
¶
from_dict(data: dict[str, Any]) -> TabularDatasetData
PARAMETER | DESCRIPTION |
---|---|
data |
|
Source code in siapy/datasets/schemas.py
152 153 154 155 156 157 158 |
|
target_from_dict
staticmethod
¶
PARAMETER | DESCRIPTION |
---|---|
data |
|
Source code in siapy/datasets/schemas.py
160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 |
|
to_dict
¶
Source code in siapy/datasets/schemas.py
195 196 197 198 199 200 201 |
|
to_dataframe
¶
to_dataframe() -> DataFrame
Source code in siapy/datasets/schemas.py
203 204 205 206 207 208 |
|
reset_index
¶
reset_index() -> TabularDatasetData
Source code in siapy/datasets/schemas.py
210 211 212 213 214 215 216 |
|