From da8f7cfaa93ac6ad4e18c8f858428372b684f518 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 1 Oct 2024 14:16:20 +0000 Subject: [PATCH] Deployed babda10 with MkDocs version: 1.6.1 --- .nojekyll | 0 404.html | 1656 ++++ api/core/configs/index.html | 1981 +++++ api/core/exceptions/index.html | 3825 ++++++++++ api/core/logger/index.html | 1903 +++++ api/core/types/index.html | 2137 ++++++ api/datasets/helpers/index.html | 2146 ++++++ api/datasets/schemas/index.html | 3965 ++++++++++ api/datasets/tabular/index.html | 2946 ++++++++ api/entities/images/index.html | 3984 ++++++++++ api/entities/imagesets/index.html | 2371 ++++++ api/entities/pixels/index.html | 2615 +++++++ api/entities/shapes/index.html | 3886 ++++++++++ api/entities/signatures/index.html | 3269 ++++++++ api/features/features/index.html | 5051 +++++++++++++ api/features/helpers/index.html | 2565 +++++++ api/features/spectral_indices/index.html | 2172 ++++++ api/models/metrics/index.html | 2912 +++++++ api/optimizers/configs/index.html | 2865 +++++++ api/optimizers/optimizers/index.html | 2829 +++++++ api/optimizers/parameters/index.html | 2952 ++++++++ api/optimizers/scorers/index.html | 2257 ++++++ api/transformations/corregistrator/index.html | 2464 ++++++ api/transformations/image/index.html | 2458 ++++++ api/utils/evaluators/index.html | 2551 +++++++ api/utils/images/index.html | 3094 ++++++++ api/utils/plots/index.html | 3016 ++++++++ assets/_mkdocstrings.css | 119 + assets/images/favicon.png | Bin 0 -> 1870 bytes assets/javascripts/bundle.56dfad97.min.js | 16 + assets/javascripts/bundle.56dfad97.min.js.map | 7 + assets/javascripts/lunr/min/lunr.ar.min.js | 1 + assets/javascripts/lunr/min/lunr.da.min.js | 18 + assets/javascripts/lunr/min/lunr.de.min.js | 18 + assets/javascripts/lunr/min/lunr.du.min.js | 18 + assets/javascripts/lunr/min/lunr.el.min.js | 1 + assets/javascripts/lunr/min/lunr.es.min.js | 18 + assets/javascripts/lunr/min/lunr.fi.min.js | 18 + assets/javascripts/lunr/min/lunr.fr.min.js | 18 + assets/javascripts/lunr/min/lunr.he.min.js | 1 + assets/javascripts/lunr/min/lunr.hi.min.js | 1 + assets/javascripts/lunr/min/lunr.hu.min.js | 18 + assets/javascripts/lunr/min/lunr.hy.min.js | 1 + assets/javascripts/lunr/min/lunr.it.min.js | 18 + assets/javascripts/lunr/min/lunr.ja.min.js | 1 + assets/javascripts/lunr/min/lunr.jp.min.js | 1 + assets/javascripts/lunr/min/lunr.kn.min.js | 1 + assets/javascripts/lunr/min/lunr.ko.min.js | 1 + assets/javascripts/lunr/min/lunr.multi.min.js | 1 + assets/javascripts/lunr/min/lunr.nl.min.js | 18 + assets/javascripts/lunr/min/lunr.no.min.js | 18 + assets/javascripts/lunr/min/lunr.pt.min.js | 18 + assets/javascripts/lunr/min/lunr.ro.min.js | 18 + assets/javascripts/lunr/min/lunr.ru.min.js | 18 + assets/javascripts/lunr/min/lunr.sa.min.js | 1 + .../lunr/min/lunr.stemmer.support.min.js | 1 + assets/javascripts/lunr/min/lunr.sv.min.js | 18 + assets/javascripts/lunr/min/lunr.ta.min.js | 1 + assets/javascripts/lunr/min/lunr.te.min.js | 1 + assets/javascripts/lunr/min/lunr.th.min.js | 1 + assets/javascripts/lunr/min/lunr.tr.min.js | 18 + assets/javascripts/lunr/min/lunr.vi.min.js | 1 + assets/javascripts/lunr/min/lunr.zh.min.js | 1 + assets/javascripts/lunr/tinyseg.js | 206 + assets/javascripts/lunr/wordcut.js | 6708 +++++++++++++++++ .../workers/search.07f07601.min.js | 42 + .../workers/search.07f07601.min.js.map | 7 + assets/stylesheets/main.35f28582.min.css | 1 + assets/stylesheets/main.35f28582.min.css.map | 1 + assets/stylesheets/palette.06af60db.min.css | 1 + .../stylesheets/palette.06af60db.min.css.map | 1 + changelog/index.html | 3485 +++++++++ contributing/index.html | 2121 ++++++ images/logo-text.png | Bin 0 -> 31827 bytes images/logo-text.svg | 1 + images/logo.png | Bin 0 -> 20229 bytes images/logo.svg | 1 + index.html | 1807 +++++ install/index.html | 1925 +++++ objects.inv | Bin 0 -> 3471 bytes permit/index.html | 1728 +++++ search/search_index.json | 1 + sitemap.xml | 123 + sitemap.xml.gz | Bin 0 -> 435 bytes 84 files changed, 92458 insertions(+) create mode 100644 .nojekyll create mode 100644 404.html create mode 100644 api/core/configs/index.html create mode 100644 api/core/exceptions/index.html create mode 100644 api/core/logger/index.html create mode 100644 api/core/types/index.html create mode 100644 api/datasets/helpers/index.html create mode 100644 api/datasets/schemas/index.html create mode 100644 api/datasets/tabular/index.html create mode 100644 api/entities/images/index.html create mode 100644 api/entities/imagesets/index.html create mode 100644 api/entities/pixels/index.html create mode 100644 api/entities/shapes/index.html create mode 100644 api/entities/signatures/index.html create mode 100644 api/features/features/index.html create mode 100644 api/features/helpers/index.html create mode 100644 api/features/spectral_indices/index.html create mode 100644 api/models/metrics/index.html create mode 100644 api/optimizers/configs/index.html create mode 100644 api/optimizers/optimizers/index.html create mode 100644 api/optimizers/parameters/index.html create mode 100644 api/optimizers/scorers/index.html create mode 100644 api/transformations/corregistrator/index.html create mode 100644 api/transformations/image/index.html create mode 100644 api/utils/evaluators/index.html create mode 100644 api/utils/images/index.html create mode 100644 api/utils/plots/index.html create mode 100644 assets/_mkdocstrings.css create mode 100644 assets/images/favicon.png create mode 100644 assets/javascripts/bundle.56dfad97.min.js create mode 100644 assets/javascripts/bundle.56dfad97.min.js.map create mode 100644 assets/javascripts/lunr/min/lunr.ar.min.js create mode 100644 assets/javascripts/lunr/min/lunr.da.min.js create mode 100644 assets/javascripts/lunr/min/lunr.de.min.js create mode 100644 assets/javascripts/lunr/min/lunr.du.min.js create mode 100644 assets/javascripts/lunr/min/lunr.el.min.js create mode 100644 assets/javascripts/lunr/min/lunr.es.min.js create mode 100644 assets/javascripts/lunr/min/lunr.fi.min.js create mode 100644 assets/javascripts/lunr/min/lunr.fr.min.js create mode 100644 assets/javascripts/lunr/min/lunr.he.min.js create mode 100644 assets/javascripts/lunr/min/lunr.hi.min.js create mode 100644 assets/javascripts/lunr/min/lunr.hu.min.js create mode 100644 assets/javascripts/lunr/min/lunr.hy.min.js create mode 100644 assets/javascripts/lunr/min/lunr.it.min.js create mode 100644 assets/javascripts/lunr/min/lunr.ja.min.js create mode 100644 assets/javascripts/lunr/min/lunr.jp.min.js create mode 100644 assets/javascripts/lunr/min/lunr.kn.min.js create mode 100644 assets/javascripts/lunr/min/lunr.ko.min.js create mode 100644 assets/javascripts/lunr/min/lunr.multi.min.js create mode 100644 assets/javascripts/lunr/min/lunr.nl.min.js create mode 100644 assets/javascripts/lunr/min/lunr.no.min.js create mode 100644 assets/javascripts/lunr/min/lunr.pt.min.js create mode 100644 assets/javascripts/lunr/min/lunr.ro.min.js create mode 100644 assets/javascripts/lunr/min/lunr.ru.min.js create mode 100644 assets/javascripts/lunr/min/lunr.sa.min.js create mode 100644 assets/javascripts/lunr/min/lunr.stemmer.support.min.js create mode 100644 assets/javascripts/lunr/min/lunr.sv.min.js create mode 100644 assets/javascripts/lunr/min/lunr.ta.min.js create mode 100644 assets/javascripts/lunr/min/lunr.te.min.js create mode 100644 assets/javascripts/lunr/min/lunr.th.min.js create mode 100644 assets/javascripts/lunr/min/lunr.tr.min.js create mode 100644 assets/javascripts/lunr/min/lunr.vi.min.js create mode 100644 assets/javascripts/lunr/min/lunr.zh.min.js create mode 100644 assets/javascripts/lunr/tinyseg.js create mode 100644 assets/javascripts/lunr/wordcut.js create mode 100644 assets/javascripts/workers/search.07f07601.min.js create mode 100644 assets/javascripts/workers/search.07f07601.min.js.map create mode 100644 assets/stylesheets/main.35f28582.min.css create mode 100644 assets/stylesheets/main.35f28582.min.css.map create mode 100644 assets/stylesheets/palette.06af60db.min.css create mode 100644 assets/stylesheets/palette.06af60db.min.css.map create mode 100644 changelog/index.html create mode 100644 contributing/index.html create mode 100644 images/logo-text.png create mode 100644 images/logo-text.svg create mode 100644 images/logo.png create mode 100644 images/logo.svg create mode 100644 index.html create mode 100644 install/index.html create mode 100644 objects.inv create mode 100644 permit/index.html create mode 100644 search/search_index.json create mode 100644 sitemap.xml create mode 100644 sitemap.xml.gz diff --git a/.nojekyll b/.nojekyll new file mode 100644 index 0000000..e69de29 diff --git a/404.html b/404.html new file mode 100644 index 0000000..c75990e --- /dev/null +++ b/404.html @@ -0,0 +1,1656 @@ + + + +
+ + + + + + + + + + + + + + + + +
siapy.core.exceptions
+
+
+¶
SiapyError
+
+
+¶
+ Bases: Exception
Base exception for SiaPy library.
+ + + + +PARAMETER | +DESCRIPTION | +
---|---|
message |
+
+
+
+
+
+
+ TYPE:
+ |
+
name |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/core/exceptions.py
18 +19 +20 +21 |
|
InvalidFilepathError
+
+
+¶InvalidFilepathError(filename: str)
+
+ Bases: SiapyError
Exception raised when a required file is not found.
+ + + + +PARAMETER | +DESCRIPTION | +
---|---|
filename |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/core/exceptions.py
27 +28 +29 |
|
InvalidInputError
+
+
+¶
+ Bases: SiapyError
Exception raised for invalid input.
+ + + + +PARAMETER | +DESCRIPTION | +
---|---|
input_value |
+
+
+
+
+
+
+ TYPE:
+ |
+
message |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/core/exceptions.py
35 +36 +37 +38 |
|
InvalidTypeError
+
+
+¶InvalidTypeError(input_value: Any, allowed_types: type | tuple[type, ...], message: str = 'Invalid type')
+
+ Bases: SiapyError
Exception raised for invalid type.
+ + + + +PARAMETER | +DESCRIPTION | +
---|---|
input_value |
+
+
+
+
+
+
+ TYPE:
+ |
+
allowed_types |
+
+
+
+
+
+ |
+
message |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/core/exceptions.py
44 +45 +46 +47 +48 +49 +50 +51 +52 +53 +54 +55 +56 |
|
input_type
+
+
+
+ instance-attribute
+
+
+¶input_type: Any = type(input_value)
+
allowed_types
+
+
+
+ instance-attribute
+
+
+¶allowed_types: type | tuple[type, ...] = allowed_types
+
ProcessingError
+
+
+¶ProcessingError(message: str = 'An error occurred during processing')
+
+ Bases: SiapyError
Exception raised for errors during processing.
+ + + + +PARAMETER | +DESCRIPTION | +
---|---|
message |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/core/exceptions.py
62 +63 +64 |
|
ConfigurationError
+
+
+¶ConfigurationError(message: str = 'Configuration error')
+
+ Bases: SiapyError
Exception raised for configuration errors.
+ + + + +PARAMETER | +DESCRIPTION | +
---|---|
message |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/core/exceptions.py
70 +71 +72 |
|
MethodNotImplementedError
+
+
+¶
+ Bases: SiapyError
Exception raised for not implemented methods.
+ + + + +PARAMETER | +DESCRIPTION | +
---|---|
class_name |
+
+
+
+
+
+
+ TYPE:
+ |
+
method_name |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/core/exceptions.py
78 +79 +80 +81 +82 +83 |
|
DirectInitializationError
+
+
+¶DirectInitializationError(class_: type)
+
+ Bases: SiapyError
Exception raised when a class method is required to create an instance.
+ + + + +PARAMETER | +DESCRIPTION | +
---|---|
class_ |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/core/exceptions.py
89 +90 +91 +92 +93 +94 +95 +96 |
|
siapy.core.types
+
+
+¶
SpectralType
+
+
+
+ module-attribute
+
+
+¶SpectralType = BilFile | BipFile | BsqFile
+
ImageType
+
+
+
+ module-attribute
+
+
+¶ImageType = SpectralImage | ndarray | Image
+
ImageSizeType
+
+
+
+ module-attribute
+
+
+¶
ImageDataType
+
+
+
+ module-attribute
+
+
+¶ImageDataType = uint8 | int16 | int32 | float32 | float64 | complex64 | complex128 | uint16 | uint32 | int64 | uint64
+
ImageContainerType
+
+
+
+ module-attribute
+
+
+¶ImageContainerType = SpectralImage | SpectralImageSet
+
ArrayLike1dType
+
+
+
+ module-attribute
+
+
+¶
siapy.datasets.helpers
+
+
+¶
generate_classification_target
+
+
+¶generate_classification_target(dataframe: DataFrame, column_names: str | list[str]) -> ClassificationTarget
+
PARAMETER | +DESCRIPTION | +
---|---|
dataframe |
+
+
+
+
+
+
+ TYPE:
+ |
+
column_names |
+
+
+
+
+
+ |
+
siapy/datasets/helpers.py
15 +16 +17 +18 +19 +20 +21 +22 +23 +24 +25 +26 +27 +28 +29 +30 +31 +32 +33 |
|
generate_regression_target
+
+
+¶generate_regression_target(dataframe: DataFrame, column_name: str) -> RegressionTarget
+
PARAMETER | +DESCRIPTION | +
---|---|
dataframe |
+
+
+
+
+
+
+ TYPE:
+ |
+
column_name |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/datasets/helpers.py
36 +37 +38 +39 +40 +41 +42 |
|
merge_signals_from_multiple_cameras
+
+
+¶merge_signals_from_multiple_cameras(data: TabularDatasetData)
+
PARAMETER | +DESCRIPTION | +
---|---|
data |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/datasets/helpers.py
45 +46 |
|
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:
+ |
+
siapy/datasets/schemas.py
32 +33 +34 |
|
to_dict
+
+
+
+ abstractmethod
+
+
+¶siapy/datasets/schemas.py
36 +37 |
|
to_dataframe
+
+
+
+ abstractmethod
+
+
+¶to_dataframe() -> DataFrame
+
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:
+ |
+
siapy/datasets/schemas.py
59 +60 +61 +62 |
|
from_dict
+
+
+
+ classmethod
+
+
+¶from_dict(data: dict[str, Any]) -> ClassificationTarget
+
PARAMETER | +DESCRIPTION | +
---|---|
data |
+
+
+
+
+
+ |
+
siapy/datasets/schemas.py
64 +65 +66 +67 +68 +69 |
|
to_dict
+
+
+¶siapy/datasets/schemas.py
71 +72 +73 +74 +75 +76 |
|
to_dataframe
+
+
+¶to_dataframe() -> DataFrame
+
siapy/datasets/schemas.py
78 +79 |
|
reset_index
+
+
+¶reset_index() -> ClassificationTarget
+
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:
+ |
+
siapy/datasets/schemas.py
100 +101 +102 +103 |
|
from_dict
+
+
+
+ classmethod
+
+
+¶from_dict(data: dict[str, Any]) -> RegressionTarget
+
PARAMETER | +DESCRIPTION | +
---|---|
data |
+
+
+
+
+
+ |
+
siapy/datasets/schemas.py
105 +106 +107 +108 +109 |
|
to_dict
+
+
+¶siapy/datasets/schemas.py
111 +112 +113 +114 +115 |
|
to_dataframe
+
+
+¶to_dataframe() -> DataFrame
+
siapy/datasets/schemas.py
117 +118 |
|
reset_index
+
+
+¶reset_index() -> RegressionTarget
+
siapy/datasets/schemas.py
120 +121 |
|
TabularDatasetData
+
+
+¶
+ Bases: BaseModel
PARAMETER | +DESCRIPTION | +
---|---|
*args |
+
+
+
+
+
+
+ TYPE:
+ |
+
**kwargs |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/datasets/schemas.py
131 +132 +133 |
|
model_config
+
+
+
+ class-attribute
+ instance-attribute
+
+
+¶model_config = ConfigDict(arbitrary_types_allowed=True)
+
target
+
+
+
+ class-attribute
+ instance-attribute
+
+
+¶target: Target | None = None
+
from_dict
+
+
+
+ classmethod
+
+
+¶from_dict(data: dict[str, Any]) -> TabularDatasetData
+
PARAMETER | +DESCRIPTION | +
---|---|
data |
+
+
+
+
+
+ |
+
siapy/datasets/schemas.py
152 +153 +154 +155 +156 +157 +158 |
|
target_from_dict
+
+
+
+ staticmethod
+
+
+¶PARAMETER | +DESCRIPTION | +
---|---|
data |
+
+
+
+
+
+ |
+
siapy/datasets/schemas.py
160 +161 +162 +163 +164 +165 +166 +167 +168 +169 +170 +171 +172 +173 +174 |
|
to_dict
+
+
+¶siapy/datasets/schemas.py
195 +196 +197 +198 +199 +200 +201 |
|
to_dataframe
+
+
+¶to_dataframe() -> DataFrame
+
siapy/datasets/schemas.py
203 +204 +205 +206 +207 +208 |
|
reset_index
+
+
+¶reset_index() -> TabularDatasetData
+
siapy/datasets/schemas.py
210 +211 +212 +213 +214 +215 +216 |
|
siapy.datasets.tabular
+
+
+¶
MetaDataEntity
+
+
+¶
+ Bases: BaseModel
TabularDataEntity
+
+
+¶
+ Bases: MetaDataEntity
model_config
+
+
+
+ class-attribute
+ instance-attribute
+
+
+¶model_config = ConfigDict(arbitrary_types_allowed=True)
+
TabularDataset
+
+
+
+ dataclass
+
+
+¶TabularDataset(container: ImageContainerType)
+
PARAMETER | +DESCRIPTION | +
---|---|
container |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/datasets/tabular.py
34 +35 +36 +37 +38 +39 +40 |
|
process_image_data
+
+
+¶process_image_data()
+
siapy/datasets/tabular.py
64 +65 +66 +67 +68 +69 +70 +71 +72 +73 +74 +75 +76 +77 +78 |
|
generate_dataset_data
+
+
+¶generate_dataset_data(mean_signatures=True) -> TabularDatasetData
+
PARAMETER | +DESCRIPTION | +
---|---|
mean_signatures |
+
+
+
+
+
+
+ DEFAULT:
+ |
+
siapy/datasets/tabular.py
80 + 81 + 82 + 83 + 84 + 85 + 86 + 87 + 88 + 89 + 90 + 91 + 92 + 93 + 94 + 95 + 96 + 97 + 98 + 99 +100 +101 +102 +103 +104 +105 +106 +107 +108 +109 +110 +111 +112 +113 +114 +115 +116 |
|
siapy.entities.images
+
+
+¶
GeometricShapes
+
+
+
+ dataclass
+
+
+¶GeometricShapes(image: SpectralImage, geometric_shapes: list[Shape] | None = None)
+
PARAMETER | +DESCRIPTION | +
---|---|
image |
+
+
+
+
+
+
+ TYPE:
+ |
+
geometric_shapes |
+
+
+
+
+
+ |
+
siapy/entities/images.py
29 +30 +31 +32 +33 +34 +35 |
|
append
+
+
+¶append(shape: Shape)
+
PARAMETER | +DESCRIPTION | +
---|---|
shape |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/entities/images.py
67 +68 +69 |
|
extend
+
+
+¶
insert
+
+
+¶PARAMETER | +DESCRIPTION | +
---|---|
index |
+
+
+
+
+
+
+ TYPE:
+ |
+
shape |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/entities/images.py
75 +76 +77 |
|
remove
+
+
+¶remove(shape: Shape)
+
PARAMETER | +DESCRIPTION | +
---|---|
shape |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/entities/images.py
79 +80 +81 |
|
pop
+
+
+¶PARAMETER | +DESCRIPTION | +
---|---|
index |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/entities/images.py
83 +84 |
|
clear
+
+
+¶clear()
+
siapy/entities/images.py
86 +87 |
|
index
+
+
+¶PARAMETER | +DESCRIPTION | +
---|---|
shape |
+
+
+
+
+
+
+ TYPE:
+ |
+
start |
+
+
+
+
+
+
+ TYPE:
+ |
+
stop |
+
+
+
+
+
+ |
+
siapy/entities/images.py
89 +90 +91 |
|
count
+
+
+¶PARAMETER | +DESCRIPTION | +
---|---|
shape |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/entities/images.py
93 +94 +95 |
|
reverse
+
+
+¶reverse()
+
siapy/entities/images.py
97 +98 |
|
sort
+
+
+¶PARAMETER | +DESCRIPTION | +
---|---|
key |
+
+
+
+
+
+
+ TYPE:
+ |
+
reverse |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/entities/images.py
100 +101 |
|
get_by_name
+
+
+¶PARAMETER | +DESCRIPTION | +
---|---|
name |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/entities/images.py
103 +104 +105 +106 +107 |
|
SpectralImage
+
+
+
+ dataclass
+
+
+¶SpectralImage(sp_file: SpectralType, geometric_shapes: list[Shape] | None = None)
+
PARAMETER | +DESCRIPTION | +
---|---|
sp_file |
+
+
+
+
+
+
+ TYPE:
+ |
+
geometric_shapes |
+
+
+
+
+
+ |
+
siapy/entities/images.py
135 +136 +137 +138 +139 |
|
envi_open
+
+
+
+ classmethod
+
+
+¶envi_open(*, header_path: str | Path, image_path: str | Path | None = None) -> SpectralImage
+
PARAMETER | +DESCRIPTION | +
---|---|
header_path |
+
+
+
+
+
+ |
+
image_path |
+
+
+
+
+
+ |
+
siapy/entities/images.py
158 +159 +160 +161 +162 +163 +164 +165 +166 +167 +168 +169 +170 +171 +172 |
|
to_display
+
+
+¶to_display(equalize: bool = True) -> Image
+
PARAMETER | +DESCRIPTION | +
---|---|
equalize |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/entities/images.py
228 +229 +230 +231 +232 +233 +234 +235 +236 +237 +238 |
|
to_numpy
+
+
+¶to_numpy(nan_value: float | None = None) -> ndarray
+
PARAMETER | +DESCRIPTION | +
---|---|
nan_value |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/entities/images.py
240 +241 +242 +243 +244 |
|
to_signatures
+
+
+¶to_signatures(pixels: Pixels) -> Signatures
+
PARAMETER | +DESCRIPTION | +
---|---|
pixels |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/entities/images.py
246 +247 +248 +249 |
|
to_subarray
+
+
+¶to_subarray(pixels: Pixels) -> ndarray
+
PARAMETER | +DESCRIPTION | +
---|---|
pixels |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/entities/images.py
251 +252 +253 +254 +255 +256 +257 +258 +259 +260 +261 +262 +263 +264 +265 +266 |
|
mean
+
+
+¶PARAMETER | +DESCRIPTION | +
---|---|
axis |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/entities/images.py
268 +269 +270 +271 +272 |
|
siapy.entities.imagesets
+
+
+¶
SpectralImageSet
+
+
+
+ dataclass
+
+
+¶SpectralImageSet(spectral_images: list[SpectralImage] | None = None)
+
PARAMETER | +DESCRIPTION | +
---|---|
spectral_images |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/entities/imagesets.py
20 +21 |
|
from_paths
+
+
+
+ classmethod
+
+
+¶from_paths(*, header_paths: Sequence[str | Path], image_paths: Sequence[str | Path] | None = None)
+
PARAMETER | +DESCRIPTION | +
---|---|
header_paths |
+
+
+
+
+
+ |
+
image_paths |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/entities/imagesets.py
35 +36 +37 +38 +39 +40 +41 +42 +43 +44 +45 +46 +47 +48 +49 +50 +51 +52 +53 +54 +55 +56 +57 +58 +59 +60 +61 +62 +63 +64 +65 +66 +67 |
|
images_by_camera_id
+
+
+¶images_by_camera_id(camera_id: str)
+
PARAMETER | +DESCRIPTION | +
---|---|
camera_id |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/entities/imagesets.py
77 +78 +79 +80 |
|
sort
+
+
+¶PARAMETER | +DESCRIPTION | +
---|---|
key |
+
+
+
+
+
+
+ TYPE:
+ |
+
reverse |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/entities/imagesets.py
82 +83 |
|
siapy.entities.pixels
+
+
+¶
Coordinates
+
+
+¶
+ Bases: NamedTuple
Pixels
+
+
+
+ dataclass
+
+
+¶Pixels(_data: DataFrame)
+
from_iterable
+
+
+
+ classmethod
+
+
+¶PARAMETER | +DESCRIPTION | +
---|---|
iterable |
+
+
+
+
+
+ |
+
siapy/entities/pixels.py
27 +28 +29 +30 +31 +32 +33 +34 +35 +36 +37 +38 +39 |
|
load_from_parquet
+
+
+
+ classmethod
+
+
+¶
df_homogenious
+
+
+¶df_homogenious() -> DataFrame
+
siapy/entities/pixels.py
50 +51 +52 +53 |
|
u
+
+
+¶u() -> Series
+
siapy/entities/pixels.py
55 +56 |
|
v
+
+
+¶v() -> Series
+
siapy/entities/pixels.py
58 +59 |
|
to_numpy
+
+
+¶to_numpy() -> ndarray
+
siapy/entities/pixels.py
61 +62 |
|
save_to_parquet
+
+
+¶
siapy.entities.shapes
+
+
+¶
SHAPE_TYPE_RECTANGLE
+
+
+
+ module-attribute
+
+
+¶SHAPE_TYPE_RECTANGLE = 'rectangle'
+
SHAPE_TYPE_FREEDRAW
+
+
+
+ module-attribute
+
+
+¶SHAPE_TYPE_FREEDRAW = 'freedraw'
+
ShapeType
+
+
+
+ module-attribute
+
+
+¶ShapeType = Literal[SHAPE_TYPE_RECTANGLE, SHAPE_TYPE_POINT, SHAPE_TYPE_FREEDRAW]
+
Shape
+
+
+
+ dataclass
+
+
+¶
+ Bases: ABC
PARAMETER | +DESCRIPTION | +
---|---|
shape_type |
+
+
+
+
+
+
+ TYPE:
+ |
+
pixels |
+
+
+
+
+
+
+ TYPE:
+ |
+
label |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/entities/shapes.py
27 +28 +29 +30 +31 +32 +33 +34 +35 |
|
from_shape_type
+
+
+
+ classmethod
+
+
+¶PARAMETER | +DESCRIPTION | +
---|---|
shape_type |
+
+
+
+
+
+
+ TYPE:
+ |
+
pixels |
+
+
+
+
+
+
+ TYPE:
+ |
+
label |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/entities/shapes.py
37 +38 +39 +40 +41 +42 +43 +44 +45 +46 +47 +48 +49 +50 +51 +52 +53 +54 +55 +56 +57 +58 +59 +60 +61 |
|
convex_hull
+
+
+
+ abstractmethod
+
+
+¶convex_hull()
+
siapy/entities/shapes.py
75 +76 +77 |
|
Rectangle
+
+
+¶
+ Bases: Shape
PARAMETER | +DESCRIPTION | +
---|---|
pixels |
+
+
+
+
+
+
+ TYPE:
+ |
+
label |
+
+
+
+
+
+
+ TYPE:
+ |
+
**kwargs |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/entities/shapes.py
81 +82 |
|
from_shape_type
+
+
+
+ classmethod
+
+
+¶PARAMETER | +DESCRIPTION | +
---|---|
shape_type |
+
+
+
+
+
+
+ TYPE:
+ |
+
pixels |
+
+
+
+
+
+
+ TYPE:
+ |
+
label |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/entities/shapes.py
37 +38 +39 +40 +41 +42 +43 +44 +45 +46 +47 +48 +49 +50 +51 +52 +53 +54 +55 +56 +57 +58 +59 +60 +61 |
|
convex_hull
+
+
+¶convex_hull() -> Pixels
+
siapy/entities/shapes.py
84 +85 +86 +87 +88 +89 +90 +91 +92 +93 |
|
Point
+
+
+¶
+ Bases: Shape
PARAMETER | +DESCRIPTION | +
---|---|
pixels |
+
+
+
+
+
+
+ TYPE:
+ |
+
label |
+
+
+
+
+
+
+ TYPE:
+ |
+
**kwargs |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/entities/shapes.py
97 +98 |
|
from_shape_type
+
+
+
+ classmethod
+
+
+¶PARAMETER | +DESCRIPTION | +
---|---|
shape_type |
+
+
+
+
+
+
+ TYPE:
+ |
+
pixels |
+
+
+
+
+
+
+ TYPE:
+ |
+
label |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/entities/shapes.py
37 +38 +39 +40 +41 +42 +43 +44 +45 +46 +47 +48 +49 +50 +51 +52 +53 +54 +55 +56 +57 +58 +59 +60 +61 |
|
FreeDraw
+
+
+¶
+ Bases: Shape
PARAMETER | +DESCRIPTION | +
---|---|
pixels |
+
+
+
+
+
+
+ TYPE:
+ |
+
label |
+
+
+
+
+
+
+ TYPE:
+ |
+
**kwargs |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/entities/shapes.py
105 +106 |
|
from_shape_type
+
+
+
+ classmethod
+
+
+¶PARAMETER | +DESCRIPTION | +
---|---|
shape_type |
+
+
+
+
+
+
+ TYPE:
+ |
+
pixels |
+
+
+
+
+
+
+ TYPE:
+ |
+
label |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/entities/shapes.py
37 +38 +39 +40 +41 +42 +43 +44 +45 +46 +47 +48 +49 +50 +51 +52 +53 +54 +55 +56 +57 +58 +59 +60 +61 |
|
convex_hull
+
+
+¶convex_hull() -> Pixels
+
siapy/entities/shapes.py
108 +109 +110 +111 +112 +113 +114 +115 +116 +117 +118 +119 +120 +121 +122 +123 +124 |
|
siapy.entities.signatures
+
+
+¶
Signals
+
+
+
+ dataclass
+
+
+¶Signals(_data: DataFrame)
+
load_from_parquet
+
+
+
+ classmethod
+
+
+¶PARAMETER | +DESCRIPTION | +
---|---|
filepath |
+
+
+
+
+
+ |
+
siapy/entities/signatures.py
22 +23 +24 +25 |
|
to_numpy
+
+
+¶to_numpy() -> ndarray
+
siapy/entities/signatures.py
31 +32 |
|
mean
+
+
+¶mean() -> ndarray
+
siapy/entities/signatures.py
34 +35 |
|
save_to_parquet
+
+
+¶
SignaturesFilter
+
+
+
+ dataclass
+
+
+¶PARAMETER | +DESCRIPTION | +
---|---|
pixels |
+
+
+
+
+
+
+ TYPE:
+ |
+
signals |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/entities/signatures.py
43 +44 +45 |
|
build
+
+
+¶build() -> Signatures
+
siapy/entities/signatures.py
47 +48 |
|
rows
+
+
+¶PARAMETER | +DESCRIPTION | +
---|---|
rows |
+
+
+
+
+
+ |
+
siapy/entities/signatures.py
50 +51 +52 +53 +54 +55 |
|
cols
+
+
+¶PARAMETER | +DESCRIPTION | +
---|---|
cols |
+
+
+
+
+
+ |
+
siapy/entities/signatures.py
57 +58 +59 +60 |
|
Signatures
+
+
+
+ dataclass
+
+
+¶PARAMETER | +DESCRIPTION | +
---|---|
*args |
+
+
+
+
+
+
+ TYPE:
+ |
+
**kwargs |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/entities/signatures.py
68 +69 |
|
from_array_and_pixels
+
+
+
+ classmethod
+
+
+¶from_array_and_pixels(image: ndarray, pixels: Pixels) -> Signatures
+
PARAMETER | +DESCRIPTION | +
---|---|
image |
+
+
+
+
+
+
+ TYPE:
+ |
+
pixels |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/entities/signatures.py
78 +79 +80 +81 +82 +83 +84 |
|
from_dataframe
+
+
+
+ classmethod
+
+
+¶from_dataframe(dataframe: DataFrame) -> Signatures
+
PARAMETER | +DESCRIPTION | +
---|---|
dataframe |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/entities/signatures.py
86 +87 +88 +89 +90 +91 +92 +93 +94 +95 +96 +97 |
|
load_from_parquet
+
+
+
+ classmethod
+
+
+¶load_from_parquet(filepath: str | Path) -> Signatures
+
PARAMETER | +DESCRIPTION | +
---|---|
filepath |
+
+
+
+
+
+ |
+
siapy/entities/signatures.py
99 +100 +101 +102 |
|
to_dataframe
+
+
+¶to_dataframe() -> DataFrame
+
siapy/entities/signatures.py
112 +113 |
|
to_numpy
+
+
+¶to_numpy() -> ndarray
+
siapy/entities/signatures.py
115 +116 |
|
filter
+
+
+¶filter() -> SignaturesFilter
+
siapy/entities/signatures.py
118 +119 |
|
save_to_parquet
+
+
+¶
siapy.features.features
+
+
+¶
AutoFeatClassification
+
+
+¶AutoFeatClassification(*, categorical_cols: list | None = None, feateng_cols: list | None = None, units: dict | None = None, feateng_steps: int = 2, featsel_runs: int = 5, max_gb: int | None = None, transformations: list[str] | tuple[str, ...] = ('1/', 'exp', 'log', 'abs', 'sqrt', '^2', '^3'), apply_pi_theorem: bool = True, always_return_numpy: bool = False, n_jobs: int = 1, verbose: int = 0, random_seed: int | None = None)
+
+ Bases: AutoFeatClassifier
PARAMETER | +DESCRIPTION | +
---|---|
categorical_cols |
+
+
+
+
+
+
+ TYPE:
+ |
+
feateng_cols |
+
+
+
+
+
+
+ TYPE:
+ |
+
units |
+
+
+
+
+
+
+ TYPE:
+ |
+
feateng_steps |
+
+
+
+
+
+
+ TYPE:
+ |
+
featsel_runs |
+
+
+
+
+
+
+ TYPE:
+ |
+
max_gb |
+
+
+
+
+
+
+ TYPE:
+ |
+
transformations |
+
+
+
+
+
+
+ TYPE:
+ |
+
apply_pi_theorem |
+
+
+
+
+
+
+ TYPE:
+ |
+
always_return_numpy |
+
+
+
+
+
+
+ TYPE:
+ |
+
n_jobs |
+
+
+
+
+
+
+ TYPE:
+ |
+
verbose |
+
+
+
+
+
+
+ TYPE:
+ |
+
random_seed |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/features/features.py
22 +23 +24 +25 +26 +27 +28 +29 +30 +31 +32 +33 +34 +35 +36 +37 +38 +39 +40 +41 +42 +43 +44 +45 +46 +47 +48 +49 +50 +51 +52 +53 +54 +55 +56 +57 +58 +59 +60 |
|
fit
+
+
+¶fit(data: ndarray | DataFrame, target: ndarray | DataFrame)
+
PARAMETER | +DESCRIPTION | +
---|---|
data |
+
+
+
+
+
+
+ TYPE:
+ |
+
target |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/features/features.py
62 +63 +64 |
|
transform
+
+
+¶transform(data: ndarray | DataFrame) -> ndarray | DataFrame
+
PARAMETER | +DESCRIPTION | +
---|---|
data |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/features/features.py
66 +67 +68 +69 |
|
fit_transform
+
+
+¶fit_transform(data: ndarray | DataFrame, target: ndarray | DataFrame) -> ndarray | DataFrame
+
PARAMETER | +DESCRIPTION | +
---|---|
data |
+
+
+
+
+
+
+ TYPE:
+ |
+
target |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/features/features.py
71 +72 +73 +74 +75 +76 |
|
AutoFeatRegression
+
+
+¶AutoFeatRegression(*, categorical_cols: list | None = None, feateng_cols: list | None = None, units: dict | None = None, feateng_steps: int = 2, featsel_runs: int = 5, max_gb: int | None = None, transformations: list[str] | tuple[str, ...] = ('1/', 'exp', 'log', 'abs', 'sqrt', '^2', '^3'), apply_pi_theorem: bool = True, always_return_numpy: bool = False, n_jobs: int = 1, verbose: int = 0, random_seed: int | None = None)
+
+ Bases: AutoFeatRegressor
PARAMETER | +DESCRIPTION | +
---|---|
categorical_cols |
+
+
+
+
+
+
+ TYPE:
+ |
+
feateng_cols |
+
+
+
+
+
+
+ TYPE:
+ |
+
units |
+
+
+
+
+
+
+ TYPE:
+ |
+
feateng_steps |
+
+
+
+
+
+
+ TYPE:
+ |
+
featsel_runs |
+
+
+
+
+
+
+ TYPE:
+ |
+
max_gb |
+
+
+
+
+
+
+ TYPE:
+ |
+
transformations |
+
+
+
+
+
+
+ TYPE:
+ |
+
apply_pi_theorem |
+
+
+
+
+
+
+ TYPE:
+ |
+
always_return_numpy |
+
+
+
+
+
+
+ TYPE:
+ |
+
n_jobs |
+
+
+
+
+
+
+ TYPE:
+ |
+
verbose |
+
+
+
+
+
+
+ TYPE:
+ |
+
random_seed |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/features/features.py
80 + 81 + 82 + 83 + 84 + 85 + 86 + 87 + 88 + 89 + 90 + 91 + 92 + 93 + 94 + 95 + 96 + 97 + 98 + 99 +100 +101 +102 +103 +104 +105 +106 +107 +108 +109 +110 +111 +112 +113 +114 +115 +116 +117 +118 |
|
fit
+
+
+¶fit(data: ndarray | DataFrame, target: ndarray | DataFrame)
+
PARAMETER | +DESCRIPTION | +
---|---|
data |
+
+
+
+
+
+
+ TYPE:
+ |
+
target |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/features/features.py
120 +121 +122 |
|
transform
+
+
+¶transform(data: ndarray | DataFrame) -> ndarray | DataFrame
+
PARAMETER | +DESCRIPTION | +
---|---|
data |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/features/features.py
124 +125 +126 +127 |
|
fit_transform
+
+
+¶fit_transform(data: ndarray | DataFrame, target: ndarray | DataFrame) -> ndarray | DataFrame
+
PARAMETER | +DESCRIPTION | +
---|---|
data |
+
+
+
+
+
+
+ TYPE:
+ |
+
target |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/features/features.py
129 +130 +131 +132 +133 +134 |
|
AutoSpectralIndices
+
+
+¶AutoSpectralIndices(problem_type: Literal['regression', 'classification'], spectral_indices: str | Iterable[str], *, selector_config: FeatureSelectorConfig = FeatureSelectorConfig(), bands_map: dict[str, str] | None = None, merge_with_original: bool = True)
+
+ Bases: BaseEstimator
, TransformerMixin
PARAMETER | +DESCRIPTION | +
---|---|
problem_type |
+
+
+
+
+
+
+ TYPE:
+ |
+
spectral_indices |
+
+
+
+
+
+ |
+
selector_config |
+
+
+
+
+
+
+ TYPE:
+ |
+
bands_map |
+
+
+
+
+
+ |
+
merge_with_original |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/features/features.py
138 +139 +140 +141 +142 +143 +144 +145 +146 +147 +148 +149 +150 +151 +152 |
|
spectral_indices
+
+
+
+ instance-attribute
+
+
+¶spectral_indices = spectral_indices
+
selector
+
+
+
+ instance-attribute
+
+
+¶selector = feature_selector_factory(problem_type=problem_type, config=selector_config)
+
merge_with_original
+
+
+
+ instance-attribute
+
+
+¶merge_with_original = merge_with_original
+
fit
+
+
+¶fit(data: DataFrame, target: Series) -> BaseEstimator
+
PARAMETER | +DESCRIPTION | +
---|---|
data |
+
+
+
+
+
+
+ TYPE:
+ |
+
target |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/features/features.py
154 +155 +156 +157 +158 +159 |
|
transform
+
+
+¶transform(data: DataFrame) -> DataFrame
+
PARAMETER | +DESCRIPTION | +
---|---|
data |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/features/features.py
161 +162 +163 +164 +165 +166 +167 +168 +169 +170 +171 +172 +173 +174 |
|
fit_transform
+
+
+¶fit_transform(data: DataFrame, target: Series) -> DataFrame
+
PARAMETER | +DESCRIPTION | +
---|---|
data |
+
+
+
+
+
+
+ TYPE:
+ |
+
target |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/features/features.py
176 +177 +178 |
|
AutoSpectralIndicesClassification
+
+
+¶AutoSpectralIndicesClassification(spectral_indices: str | Iterable[str], *, selector_config: FeatureSelectorConfig = FeatureSelectorConfig(), bands_map: dict[str, str] | None = None, merge_with_original: bool = True)
+
+ Bases: AutoSpectralIndices
PARAMETER | +DESCRIPTION | +
---|---|
spectral_indices |
+
+
+
+
+
+ |
+
selector_config |
+
+
+
+
+
+
+ TYPE:
+ |
+
bands_map |
+
+
+
+
+
+ |
+
merge_with_original |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/features/features.py
182 +183 +184 +185 +186 +187 +188 +189 +190 +191 +192 +193 +194 +195 +196 |
|
spectral_indices
+
+
+
+ instance-attribute
+
+
+¶spectral_indices = spectral_indices
+
selector
+
+
+
+ instance-attribute
+
+
+¶selector = feature_selector_factory(problem_type=problem_type, config=selector_config)
+
merge_with_original
+
+
+
+ instance-attribute
+
+
+¶merge_with_original = merge_with_original
+
fit
+
+
+¶fit(data: DataFrame, target: Series) -> BaseEstimator
+
PARAMETER | +DESCRIPTION | +
---|---|
data |
+
+
+
+
+
+
+ TYPE:
+ |
+
target |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/features/features.py
154 +155 +156 +157 +158 +159 |
|
transform
+
+
+¶transform(data: DataFrame) -> DataFrame
+
PARAMETER | +DESCRIPTION | +
---|---|
data |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/features/features.py
161 +162 +163 +164 +165 +166 +167 +168 +169 +170 +171 +172 +173 +174 |
|
fit_transform
+
+
+¶fit_transform(data: DataFrame, target: Series) -> DataFrame
+
PARAMETER | +DESCRIPTION | +
---|---|
data |
+
+
+
+
+
+
+ TYPE:
+ |
+
target |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/features/features.py
176 +177 +178 |
|
AutoSpectralIndicesRegression
+
+
+¶AutoSpectralIndicesRegression(spectral_indices: str | Iterable[str], *, selector_config: FeatureSelectorConfig = FeatureSelectorConfig(), bands_map: dict[str, str] | None = None, merge_with_original: bool = True)
+
+ Bases: AutoSpectralIndices
PARAMETER | +DESCRIPTION | +
---|---|
spectral_indices |
+
+
+
+
+
+ |
+
selector_config |
+
+
+
+
+
+
+ TYPE:
+ |
+
bands_map |
+
+
+
+
+
+ |
+
merge_with_original |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/features/features.py
200 +201 +202 +203 +204 +205 +206 +207 +208 +209 +210 +211 +212 +213 +214 |
|
spectral_indices
+
+
+
+ instance-attribute
+
+
+¶spectral_indices = spectral_indices
+
selector
+
+
+
+ instance-attribute
+
+
+¶selector = feature_selector_factory(problem_type=problem_type, config=selector_config)
+
merge_with_original
+
+
+
+ instance-attribute
+
+
+¶merge_with_original = merge_with_original
+
fit
+
+
+¶fit(data: DataFrame, target: Series) -> BaseEstimator
+
PARAMETER | +DESCRIPTION | +
---|---|
data |
+
+
+
+
+
+
+ TYPE:
+ |
+
target |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/features/features.py
154 +155 +156 +157 +158 +159 |
|
transform
+
+
+¶transform(data: DataFrame) -> DataFrame
+
PARAMETER | +DESCRIPTION | +
---|---|
data |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/features/features.py
161 +162 +163 +164 +165 +166 +167 +168 +169 +170 +171 +172 +173 +174 |
|
fit_transform
+
+
+¶fit_transform(data: DataFrame, target: Series) -> DataFrame
+
PARAMETER | +DESCRIPTION | +
---|---|
data |
+
+
+
+
+
+
+ TYPE:
+ |
+
target |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/features/features.py
176 +177 +178 |
|
siapy.features.helpers
+
+
+¶
FeatureSelectorConfig
+
+
+¶
+ Bases: BaseModel
k_features
+
+
+
+ class-attribute
+ instance-attribute
+
+
+¶
forward
+
+
+
+ class-attribute
+ instance-attribute
+
+
+¶forward: bool = True
+
floating
+
+
+
+ class-attribute
+ instance-attribute
+
+
+¶floating: bool = True
+
pre_dispatch
+
+
+
+ class-attribute
+ instance-attribute
+
+
+¶
model_config
+
+
+
+ class-attribute
+ instance-attribute
+
+
+¶model_config = ConfigDict(arbitrary_types_allowed=True, validate_assignment=True)
+
feature_selector_factory
+
+
+¶feature_selector_factory(problem_type: Literal['regression', 'classification'], *, k_features: int | str | tuple[int, ...] = (1, 20), cv: int = 3, forward: bool = True, floating: bool = True, verbose: int = 2, n_jobs: int = 1, pre_dispatch: int | str = '2*n_jobs', config: FeatureSelectorConfig | None = None) -> Pipeline
+
PARAMETER | +DESCRIPTION | +
---|---|
problem_type |
+
+
+
+
+
+
+ TYPE:
+ |
+
k_features |
+
+
+
+
+
+
+ TYPE:
+ |
+
cv |
+
+
+
+
+
+
+ TYPE:
+ |
+
forward |
+
+
+
+
+
+
+ TYPE:
+ |
+
floating |
+
+
+
+
+
+
+ TYPE:
+ |
+
verbose |
+
+
+
+
+
+
+ TYPE:
+ |
+
n_jobs |
+
+
+
+
+
+
+ TYPE:
+ |
+
pre_dispatch |
+
+
+
+
+
+ |
+
config |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/features/helpers.py
37 +38 +39 +40 +41 +42 +43 +44 +45 +46 +47 +48 +49 +50 +51 +52 +53 +54 +55 +56 +57 +58 +59 +60 +61 +62 +63 +64 +65 +66 +67 +68 +69 +70 +71 +72 +73 +74 +75 +76 +77 +78 +79 +80 +81 +82 +83 +84 +85 +86 +87 +88 |
|
siapy.features.spectral_indices
+
+
+¶
get_spectral_indices
+
+
+¶PARAMETER | +DESCRIPTION | +
---|---|
bands_acronym |
+
+
+
+
+
+ |
+
siapy/features/spectral_indices.py
29 +30 +31 +32 +33 +34 +35 +36 +37 +38 +39 +40 +41 +42 +43 +44 +45 +46 +47 +48 +49 +50 |
|
compute_spectral_indices
+
+
+¶compute_spectral_indices(data: DataFrame, spectral_indices: str | Iterable[str], bands_map: dict[str, str] | None = None, remove_nan_and_constants: bool = True) -> DataFrame
+
PARAMETER | +DESCRIPTION | +
---|---|
data |
+
+
+
+
+
+
+ TYPE:
+ |
+
spectral_indices |
+
+
+
+
+
+ |
+
bands_map |
+
+
+
+
+
+ |
+
remove_nan_and_constants |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/features/spectral_indices.py
53 +54 +55 +56 +57 +58 +59 +60 +61 +62 +63 +64 +65 +66 +67 +68 +69 +70 +71 +72 +73 +74 +75 +76 +77 +78 +79 +80 +81 +82 +83 +84 +85 +86 +87 +88 +89 +90 +91 +92 +93 |
|
siapy.models.metrics
+
+
+¶
ClassificationMetrics
+
+
+¶
+ Bases: NamedTuple
RegressionMetrics
+
+
+¶
+ Bases: NamedTuple
normalized_RMSE
+
+
+¶normalized_RMSE(y_true: ndarray, y_pred: ndarray, normalize_by: Literal['range', 'mean'] = 'range')
+
PARAMETER | +DESCRIPTION | +
---|---|
y_true |
+
+
+
+
+
+
+ TYPE:
+ |
+
y_pred |
+
+
+
+
+
+
+ TYPE:
+ |
+
normalize_by |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/models/metrics.py
25 +26 +27 +28 +29 +30 +31 +32 +33 +34 +35 +36 +37 +38 +39 +40 |
|
calculate_classification_metrics
+
+
+¶calculate_classification_metrics(y_true, y_pred, average: Literal['micro', 'macro', 'samples', 'weighted', 'binary'] | None = 'weighted')
+
PARAMETER | +DESCRIPTION | +
---|---|
y_true |
+
+
+
+
+ + + |
+
y_pred |
+
+
+
+
+ + + |
+
average |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/models/metrics.py
87 + 88 + 89 + 90 + 91 + 92 + 93 + 94 + 95 + 96 + 97 + 98 + 99 +100 +101 +102 |
|
calculate_regression_metrics
+
+
+¶calculate_regression_metrics(y_true, y_pred)
+
PARAMETER | +DESCRIPTION | +
---|---|
y_true |
+
+
+
+
+ + + |
+
y_pred |
+
+
+
+
+ + + |
+
siapy/models/metrics.py
105 +106 +107 +108 +109 +110 +111 +112 +113 +114 +115 +116 +117 +118 +119 +120 +121 +122 +123 |
|
siapy.optimizers.configs
+
+
+¶
CreateStudyConfig
+
+
+¶
+ Bases: BaseModel
model_config
+
+
+
+ class-attribute
+ instance-attribute
+
+
+¶model_config = ConfigDict(arbitrary_types_allowed=True)
+
storage
+
+
+
+ class-attribute
+ instance-attribute
+
+
+¶storage: str | BaseStorage | None = None
+
sampler
+
+
+
+ class-attribute
+ instance-attribute
+
+
+¶sampler: BaseSampler | None = None
+
pruner
+
+
+
+ class-attribute
+ instance-attribute
+
+
+¶pruner: BasePruner | None = None
+
study_name
+
+
+
+ class-attribute
+ instance-attribute
+
+
+¶study_name: str | None = None
+
OptimizeStudyConfig
+
+
+¶
+ Bases: BaseModel
model_config
+
+
+
+ class-attribute
+ instance-attribute
+
+
+¶model_config = ConfigDict(arbitrary_types_allowed=True)
+
n_trials
+
+
+
+ class-attribute
+ instance-attribute
+
+
+¶n_trials: int | None = None
+
timeout
+
+
+
+ class-attribute
+ instance-attribute
+
+
+¶timeout: float | None = None
+
catch
+
+
+
+ class-attribute
+ instance-attribute
+
+
+¶
callbacks
+
+
+
+ class-attribute
+ instance-attribute
+
+
+¶
TabularOptimizerConfig
+
+
+¶
+ Bases: BaseModel
model_config
+
+
+
+ class-attribute
+ instance-attribute
+
+
+¶model_config = ConfigDict(arbitrary_types_allowed=True)
+
create_study
+
+
+
+ class-attribute
+ instance-attribute
+
+
+¶create_study: CreateStudyConfig = CreateStudyConfig()
+
optimize_study
+
+
+
+ class-attribute
+ instance-attribute
+
+
+¶optimize_study: OptimizeStudyConfig = OptimizeStudyConfig()
+
scorer
+
+
+
+ class-attribute
+ instance-attribute
+
+
+¶scorer: Scorer | None = None
+
trial_parameters
+
+
+
+ class-attribute
+ instance-attribute
+
+
+¶trial_parameters: TrialParameters | None = None
+
siapy.optimizers.optimizers
+
+
+¶
TabularOptimizer
+
+
+¶TabularOptimizer(model: BaseEstimator, configs: TabularOptimizerConfig, X: ArrayLike2dType, y: ArrayLike1dType, X_val: ArrayLike2dType | None = None, y_val: ArrayLike1dType | None = None)
+
PARAMETER | +DESCRIPTION | +
---|---|
model |
+
+
+
+
+
+
+ TYPE:
+ |
+
configs |
+
+
+
+
+
+
+ TYPE:
+ |
+
X |
+
+
+
+
+
+
+ TYPE:
+ |
+
y |
+
+
+
+
+
+
+ TYPE:
+ |
+
X_val |
+
+
+
+
+
+
+ TYPE:
+ |
+
y_val |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/optimizers/optimizers.py
23 +24 +25 +26 +27 +28 +29 +30 +31 +32 +33 +34 +35 +36 +37 +38 +39 |
|
from_tabular_dataset_data
+
+
+
+ classmethod
+
+
+¶from_tabular_dataset_data(model: BaseEstimator, configs: TabularOptimizerConfig, data: TabularDatasetData, data_val: TabularDatasetData | None = None) -> TabularOptimizer
+
PARAMETER | +DESCRIPTION | +
---|---|
model |
+
+
+
+
+
+
+ TYPE:
+ |
+
configs |
+
+
+
+
+
+
+ TYPE:
+ |
+
data |
+
+
+
+
+
+
+ TYPE:
+ |
+
data_val |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/optimizers/optimizers.py
41 +42 +43 +44 +45 +46 +47 +48 +49 +50 +51 +52 +53 +54 +55 +56 +57 +58 +59 +60 +61 +62 +63 +64 +65 +66 +67 +68 +69 +70 +71 +72 +73 |
|
run
+
+
+¶run() -> Study
+
siapy/optimizers/optimizers.py
83 +84 +85 +86 +87 +88 +89 +90 +91 +92 +93 |
|
get_best_model
+
+
+¶get_best_model() -> BaseEstimator
+
siapy/optimizers/optimizers.py
95 + 96 + 97 + 98 + 99 +100 +101 +102 +103 +104 +105 |
|
objective
+
+
+¶objective(trial: Trial) -> float
+
PARAMETER | +DESCRIPTION | +
---|---|
trial |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/optimizers/optimizers.py
107 +108 +109 +110 +111 +112 |
|
scorer
+
+
+¶scorer() -> float
+
siapy/optimizers/optimizers.py
147 +148 +149 +150 +151 +152 +153 +154 +155 +156 +157 +158 +159 |
|
siapy.optimizers.parameters
+
+
+¶
ParametersDictType
+
+
+
+ module-attribute
+
+
+¶
FloatParameter
+
+
+¶
IntParameter
+
+
+¶
+ Bases: BaseModel
CategoricalParameter
+
+
+¶
TrialParameters
+
+
+
+ dataclass
+
+
+¶TrialParameters(float_parameters: list[FloatParameter] | None = None, int_parameters: list[IntParameter] | None = None, categorical_parameters: list[CategoricalParameter] | None = None)
+
PARAMETER | +DESCRIPTION | +
---|---|
float_parameters |
+
+
+
+
+
+
+ TYPE:
+ |
+
int_parameters |
+
+
+
+
+
+
+ TYPE:
+ |
+
categorical_parameters |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/optimizers/parameters.py
51 +52 +53 +54 +55 +56 +57 +58 +59 |
|
float_parameters
+
+
+
+ property
+
+
+¶float_parameters: list[FloatParameter]
+
categorical_parameters
+
+
+
+ property
+
+
+¶categorical_parameters: list[CategoricalParameter]
+
from_dict
+
+
+
+ classmethod
+
+
+¶from_dict(parameters: ParametersDictType) -> TrialParameters
+
PARAMETER | +DESCRIPTION | +
---|---|
parameters |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/optimizers/parameters.py
61 +62 +63 +64 +65 +66 +67 +68 +69 +70 +71 +72 +73 +74 +75 |
|
siapy.optimizers.scorers
+
+
+¶
Scorer
+
+
+¶Scorer(scorer)
+
PARAMETER | +DESCRIPTION | +
---|---|
scorer |
+
+
+
+
+ + + |
+
siapy/optimizers/scorers.py
18 +19 |
|
init_cross_validator_scorer
+
+
+
+ classmethod
+
+
+¶init_cross_validator_scorer(scoring: str | ScorerFuncType | None = None, cv: int | BaseCrossValidator | _RepeatedSplits | Iterable | Literal['RepeatedKFold', 'RepeatedStratifiedKFold'] | None = None) -> Scorer
+
PARAMETER | +DESCRIPTION | +
---|---|
scoring |
+
+
+
+
+
+
+ TYPE:
+ |
+
cv |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/optimizers/scorers.py
31 +32 +33 +34 +35 +36 +37 +38 +39 +40 +41 +42 +43 +44 +45 +46 +47 +48 +49 +50 +51 +52 +53 +54 +55 +56 +57 +58 +59 +60 +61 |
|
init_hold_out_scorer
+
+
+
+ classmethod
+
+
+¶init_hold_out_scorer(scoring: str | ScorerFuncType | None = None, test_size: float | None = 0.2, stratify: ndarray | None = None) -> Scorer
+
PARAMETER | +DESCRIPTION | +
---|---|
scoring |
+
+
+
+
+
+
+ TYPE:
+ |
+
test_size |
+
+
+
+
+
+
+ TYPE:
+ |
+
stratify |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/optimizers/scorers.py
63 +64 +65 +66 +67 +68 +69 +70 +71 +72 +73 +74 +75 +76 +77 +78 |
|
siapy.transformations.corregistrator
+
+
+¶
map_affine_approx_2d
+
+
+¶map_affine_approx_2d(points_ref: ndarray, points_mov: ndarray) -> ndarray
+
Affine transformation
+ + +PARAMETER | +DESCRIPTION | +
---|---|
points_ref |
+
+
+
+
+
+
+ TYPE:
+ |
+
points_mov |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/transformations/corregistrator.py
16 +17 +18 +19 +20 +21 +22 +23 +24 |
|
affine_matx_2d
+
+
+¶affine_matx_2d(scale: tuple[float, float] | Sequence[float] = (1, 1), trans: tuple[float, float] | Sequence[float] = (0, 0), rot: float = 0, shear: tuple[float, float] | Sequence[float] = (0, 0)) -> ndarray
+
Create arbitrary affine transformation matrix
+ + +PARAMETER | +DESCRIPTION | +
---|---|
scale |
+
+
+
+
+
+
+ TYPE:
+ |
+
trans |
+
+
+
+
+
+
+ TYPE:
+ |
+
rot |
+
+
+
+
+
+
+ TYPE:
+ |
+
shear |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/transformations/corregistrator.py
27 +28 +29 +30 +31 +32 +33 +34 +35 +36 +37 +38 +39 +40 +41 +42 +43 +44 +45 +46 |
|
align
+
+
+¶align(pixels_ref: Pixels, pixels_mov: Pixels, *, eps: float = 1e-06, max_iter: int = 50, plot_progress: bool = False) -> tuple[ndarray, ndarray]
+
Align interactive corresponding points
+ + +PARAMETER | +DESCRIPTION | +
---|---|
pixels_ref |
+
+
+
+
+
+
+ TYPE:
+ |
+
pixels_mov |
+
+
+
+
+
+
+ TYPE:
+ |
+
eps |
+
+
+
+
+
+
+ TYPE:
+ |
+
max_iter |
+
+
+
+
+
+
+ TYPE:
+ |
+
plot_progress |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/transformations/corregistrator.py
49 + 50 + 51 + 52 + 53 + 54 + 55 + 56 + 57 + 58 + 59 + 60 + 61 + 62 + 63 + 64 + 65 + 66 + 67 + 68 + 69 + 70 + 71 + 72 + 73 + 74 + 75 + 76 + 77 + 78 + 79 + 80 + 81 + 82 + 83 + 84 + 85 + 86 + 87 + 88 + 89 + 90 + 91 + 92 + 93 + 94 + 95 + 96 + 97 + 98 + 99 +100 +101 +102 +103 |
|
transform
+
+
+¶transform(pixels: Pixels, transformation_matx: ndarray)
+
Transform pixels
+ + +PARAMETER | +DESCRIPTION | +
---|---|
pixels |
+
+
+
+
+
+
+ TYPE:
+ |
+
transformation_matx |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/transformations/corregistrator.py
106 +107 +108 +109 +110 +111 +112 |
|
siapy.transformations.image
+
+
+¶
add_gaussian_noise
+
+
+¶add_gaussian_noise(image: ImageType, mean: float = 0.0, std: float = 1.0, clip_to_max: bool = True) -> ndarray
+
PARAMETER | +DESCRIPTION | +
---|---|
image |
+
+
+
+
+
+
+ TYPE:
+ |
+
mean |
+
+
+
+
+
+
+ TYPE:
+ |
+
std |
+
+
+
+
+
+
+ TYPE:
+ |
+
clip_to_max |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/transformations/image.py
20 +21 +22 +23 +24 +25 +26 +27 +28 +29 +30 +31 +32 |
|
random_crop
+
+
+¶random_crop(image: ImageType, output_size: ImageSizeType) -> ndarray
+
PARAMETER | +DESCRIPTION | +
---|---|
image |
+
+
+
+
+
+
+ TYPE:
+ |
+
output_size |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/transformations/image.py
35 +36 +37 +38 +39 +40 +41 +42 |
|
random_mirror
+
+
+¶random_mirror(image: ImageType) -> ndarray
+
PARAMETER | +DESCRIPTION | +
---|---|
image |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/transformations/image.py
45 +46 +47 +48 +49 +50 |
|
random_rotation
+
+
+¶PARAMETER | +DESCRIPTION | +
---|---|
image |
+
+
+
+
+
+
+ TYPE:
+ |
+
angle |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/transformations/image.py
53 +54 +55 +56 |
|
rescale
+
+
+¶rescale(image: ImageType, output_size: ImageSizeType) -> ndarray
+
PARAMETER | +DESCRIPTION | +
---|---|
image |
+
+
+
+
+
+
+ TYPE:
+ |
+
output_size |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/transformations/image.py
59 +60 +61 +62 +63 |
|
area_normalization
+
+
+¶area_normalization(image: ImageType) -> ndarray
+
PARAMETER | +DESCRIPTION | +
---|---|
image |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/transformations/image.py
66 +67 +68 +69 +70 +71 +72 +73 +74 +75 +76 +77 +78 +79 +80 |
|
siapy.utils.evaluators
+
+
+¶
ScorerFuncType
+
+
+
+ module-attribute
+
+
+¶ScorerFuncType = Callable[[BaseEstimator, ArrayLike2dType, ArrayLike1dType], float]
+
cross_validation
+
+
+¶cross_validation(model: BaseEstimator, X: ArrayLike2dType, y: ArrayLike1dType, X_val: ArrayLike2dType | None = None, y_val: ArrayLike1dType | None = None, *, groups: ArrayLike1dType | None = None, scoring: str | ScorerFuncType | None = None, cv: int | BaseCrossValidator | Iterable | None = None, n_jobs: int | None = 1, verbose: int = 0, fit_params: dict[str, Any] | None = None, pre_dispatch: int | str = 1, error_score: Literal['raise'] | int = 0) -> float
+
PARAMETER | +DESCRIPTION | +
---|---|
model |
+
+
+
+
+
+
+ TYPE:
+ |
+
X |
+
+
+
+
+
+
+ TYPE:
+ |
+
y |
+
+
+
+
+
+
+ TYPE:
+ |
+
X_val |
+
+
+
+
+
+
+ TYPE:
+ |
+
y_val |
+
+
+
+
+
+
+ TYPE:
+ |
+
groups |
+
+
+
+
+
+
+ TYPE:
+ |
+
scoring |
+
+
+
+
+
+
+ TYPE:
+ |
+
cv |
+
+
+
+
+
+
+ TYPE:
+ |
+
n_jobs |
+
+
+
+
+
+
+ TYPE:
+ |
+
verbose |
+
+
+
+
+
+
+ TYPE:
+ |
+
fit_params |
+
+
+
+
+
+ |
+
pre_dispatch |
+
+
+
+
+
+ |
+
error_score |
+
+
+
+
+
+ |
+
siapy/utils/evaluators.py
26 +27 +28 +29 +30 +31 +32 +33 +34 +35 +36 +37 +38 +39 +40 +41 +42 +43 +44 +45 +46 +47 +48 +49 +50 +51 +52 +53 +54 +55 +56 +57 +58 +59 +60 +61 |
|
hold_out_validation
+
+
+¶hold_out_validation(model: BaseEstimator, X: ArrayLike2dType, y: ArrayLike1dType, X_val: ArrayLike2dType | None = None, y_val: ArrayLike1dType | None = None, *, scoring: str | ScorerFuncType | None = None, test_size: float | None = 0.2, random_state: int | None = None, shuffle: bool = True, stratify: ndarray | None = None) -> float
+
PARAMETER | +DESCRIPTION | +
---|---|
model |
+
+
+
+
+
+
+ TYPE:
+ |
+
X |
+
+
+
+
+
+
+ TYPE:
+ |
+
y |
+
+
+
+
+
+
+ TYPE:
+ |
+
X_val |
+
+
+
+
+
+
+ TYPE:
+ |
+
y_val |
+
+
+
+
+
+
+ TYPE:
+ |
+
scoring |
+
+
+
+
+
+
+ TYPE:
+ |
+
test_size |
+
+
+
+
+
+
+ TYPE:
+ |
+
random_state |
+
+
+
+
+
+
+ TYPE:
+ |
+
shuffle |
+
+
+
+
+
+
+ TYPE:
+ |
+
stratify |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/utils/evaluators.py
64 + 65 + 66 + 67 + 68 + 69 + 70 + 71 + 72 + 73 + 74 + 75 + 76 + 77 + 78 + 79 + 80 + 81 + 82 + 83 + 84 + 85 + 86 + 87 + 88 + 89 + 90 + 91 + 92 + 93 + 94 + 95 + 96 + 97 + 98 + 99 +100 +101 +102 +103 +104 |
|
siapy.utils.images
+
+
+¶
save_image
+
+
+¶save_image(image: ndarray, save_path: str | Path, *, metadata: dict[str, Any] | None = None, overwrite: bool = True, dtype: type[ImageDataType] = np.float32)
+
PARAMETER | +DESCRIPTION | +
---|---|
image |
+
+
+
+
+
+
+ TYPE:
+ |
+
save_path |
+
+
+
+
+
+ |
+
metadata |
+
+
+
+
+
+ |
+
overwrite |
+
+
+
+
+
+
+ TYPE:
+ |
+
dtype |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/utils/images.py
26 +27 +28 +29 +30 +31 +32 +33 +34 +35 +36 +37 +38 +39 +40 +41 +42 +43 +44 +45 +46 +47 +48 +49 +50 +51 +52 +53 +54 +55 +56 +57 +58 |
|
create_image
+
+
+¶create_image(image: ndarray, save_path: str | Path, *, metadata: dict[str, Any] | None = None, overwrite: bool = True, dtype: type[ImageDataType] = np.float32) -> SpectralImage
+
PARAMETER | +DESCRIPTION | +
---|---|
image |
+
+
+
+
+
+
+ TYPE:
+ |
+
save_path |
+
+
+
+
+
+ |
+
metadata |
+
+
+
+
+
+ |
+
overwrite |
+
+
+
+
+
+
+ TYPE:
+ |
+
dtype |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/utils/images.py
61 +62 +63 +64 +65 +66 +67 +68 +69 +70 +71 +72 +73 +74 +75 +76 +77 +78 +79 +80 +81 +82 +83 +84 +85 +86 +87 +88 +89 +90 +91 +92 +93 +94 +95 +96 +97 +98 +99 |
|
merge_images_by_specter
+
+
+¶merge_images_by_specter(*, image_original: SpectralImage, image_to_merge: SpectralImage, save_path: str | Path, overwrite: bool = True, dtype: type[ImageDataType] = np.float32, auto_metadata_extraction: bool = True)
+
PARAMETER | +DESCRIPTION | +
---|---|
image_original |
+
+
+
+
+
+
+ TYPE:
+ |
+
image_to_merge |
+
+
+
+
+
+
+ TYPE:
+ |
+
save_path |
+
+
+
+
+
+ |
+
overwrite |
+
+
+
+
+
+
+ TYPE:
+ |
+
dtype |
+
+
+
+
+
+
+ TYPE:
+ |
+
auto_metadata_extraction |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/utils/images.py
102 +103 +104 +105 +106 +107 +108 +109 +110 +111 +112 +113 +114 +115 +116 +117 +118 +119 +120 +121 +122 +123 +124 +125 +126 +127 +128 +129 +130 +131 +132 +133 +134 +135 +136 +137 +138 +139 +140 +141 +142 +143 +144 +145 +146 +147 +148 +149 +150 +151 +152 +153 +154 +155 +156 +157 +158 +159 +160 +161 +162 +163 +164 +165 +166 +167 +168 |
|
convert_radiance_image_to_reflectance
+
+
+¶convert_radiance_image_to_reflectance(image: SpectralImage, panel_correction: ndarray, save_path: str | Path | None = None, **kwargs: Any) -> ndarray | SpectralImage
+
PARAMETER | +DESCRIPTION | +
---|---|
image |
+
+
+
+
+
+
+ TYPE:
+ |
+
panel_correction |
+
+
+
+
+
+
+ TYPE:
+ |
+
save_path |
+
+
+
+
+
+ |
+
**kwargs |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/utils/images.py
171 +172 +173 +174 +175 +176 +177 +178 +179 +180 +181 +182 +183 +184 +185 |
|
calculate_correction_factor_from_panel
+
+
+¶calculate_correction_factor_from_panel(image: SpectralImage, panel_reference_reflectance: float, panel_shape_label: str | None = None) -> ndarray
+
PARAMETER | +DESCRIPTION | +
---|---|
image |
+
+
+
+
+
+
+ TYPE:
+ |
+
panel_reference_reflectance |
+
+
+
+
+
+
+ TYPE:
+ |
+
panel_shape_label |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/utils/images.py
188 +189 +190 +191 +192 +193 +194 +195 +196 +197 +198 +199 +200 +201 +202 +203 +204 +205 +206 +207 +208 +209 +210 +211 +212 +213 +214 |
|
blockfy_image
+
+
+¶PARAMETER | +DESCRIPTION | +
---|---|
image |
+
+
+
+
+
+
+ TYPE:
+ |
+
p |
+
+
+
+
+
+
+ TYPE:
+ |
+
q |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/utils/images.py
217 +218 +219 +220 +221 +222 +223 +224 +225 +226 +227 +228 +229 +230 +231 +232 +233 +234 +235 +236 +237 +238 +239 +240 +241 +242 +243 +244 +245 +246 +247 +248 |
|
calculate_image_background_percentage
+
+
+¶calculate_image_background_percentage(image: ImageType)
+
PARAMETER | +DESCRIPTION | +
---|---|
image |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/utils/images.py
251 +252 +253 +254 +255 +256 +257 |
|
siapy.utils.plots
+
+
+¶
pixels_select_click
+
+
+¶PARAMETER | +DESCRIPTION | +
---|---|
image |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/utils/plots.py
28 +29 +30 +31 +32 +33 +34 +35 +36 +37 +38 +39 +40 +41 +42 +43 +44 +45 +46 +47 +48 +49 +50 +51 +52 +53 +54 +55 +56 +57 +58 +59 +60 +61 +62 +63 +64 +65 +66 +67 +68 +69 +70 |
|
pixels_select_lasso
+
+
+¶pixels_select_lasso(image: ImageType, selector_props: dict[str, Any] | None = None) -> list[Pixels]
+
PARAMETER | +DESCRIPTION | +
---|---|
image |
+
+
+
+
+
+
+ TYPE:
+ |
+
selector_props |
+
+
+
+
+
+ |
+
siapy/utils/plots.py
73 + 74 + 75 + 76 + 77 + 78 + 79 + 80 + 81 + 82 + 83 + 84 + 85 + 86 + 87 + 88 + 89 + 90 + 91 + 92 + 93 + 94 + 95 + 96 + 97 + 98 + 99 +100 +101 +102 +103 +104 +105 +106 +107 +108 +109 +110 +111 +112 +113 +114 +115 +116 +117 +118 +119 +120 +121 +122 +123 +124 +125 +126 +127 +128 +129 +130 +131 +132 +133 |
|
display_image_with_areas
+
+
+¶PARAMETER | +DESCRIPTION | +
---|---|
image |
+
+
+
+
+
+
+ TYPE:
+ |
+
areas |
+
+
+
+
+
+ |
+
color |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/utils/plots.py
136 +137 +138 +139 +140 +141 +142 +143 +144 +145 +146 +147 +148 +149 +150 +151 +152 +153 +154 +155 +156 +157 +158 +159 |
|
display_multiple_images_with_areas
+
+
+¶display_multiple_images_with_areas(images_with_areas: list[tuple[ImageType, Pixels | list[Pixels]]], *, color: str = 'red', plot_interactive_buttons: bool = True) -> InteractiveButtonsEnum | None
+
PARAMETER | +DESCRIPTION | +
---|---|
images_with_areas |
+
+
+
+
+
+
+ TYPE:
+ |
+
color |
+
+
+
+
+
+
+ TYPE:
+ |
+
plot_interactive_buttons |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/utils/plots.py
162 +163 +164 +165 +166 +167 +168 +169 +170 +171 +172 +173 +174 +175 +176 +177 +178 +179 +180 +181 +182 +183 +184 +185 +186 +187 +188 +189 +190 +191 +192 +193 +194 |
|
interactive_buttons
+
+
+¶interactive_buttons()
+
siapy/utils/plots.py
197 +198 +199 +200 +201 +202 +203 +204 +205 +206 +207 +208 +209 +210 +211 +212 +213 +214 +215 +216 +217 +218 +219 +220 +221 +222 +223 +224 +225 +226 +227 +228 +229 |
|
display_signals
+
+
+¶display_signals(data: TabularDatasetData, *, figsize: tuple[int, int] = (6, 4), dpi: int = 150, colormap: str = 'viridis', x_label: str = 'Spectral bands', y_label: str = '', label_fontsize: int = 14, tick_params_label_size: int = 12, legend_fontsize: int = 10, legend_frameon: bool = True)
+
PARAMETER | +DESCRIPTION | +
---|---|
data |
+
+
+
+
+
+
+ TYPE:
+ |
+
figsize |
+
+
+
+
+
+ |
+
dpi |
+
+
+
+
+
+
+ TYPE:
+ |
+
colormap |
+
+
+
+
+
+
+ TYPE:
+ |
+
x_label |
+
+
+
+
+
+
+ TYPE:
+ |
+
y_label |
+
+
+
+
+
+
+ TYPE:
+ |
+
label_fontsize |
+
+
+
+
+
+
+ TYPE:
+ |
+
tick_params_label_size |
+
+
+
+
+
+
+ TYPE:
+ |
+
legend_fontsize |
+
+
+
+
+
+
+ TYPE:
+ |
+
legend_frameon |
+
+
+
+
+
+
+ TYPE:
+ |
+
siapy/utils/plots.py
232 +233 +234 +235 +236 +237 +238 +239 +240 +241 +242 +243 +244 +245 +246 +247 +248 +249 +250 +251 +252 +253 +254 +255 +256 +257 +258 +259 +260 +261 +262 +263 +264 +265 +266 +267 +268 +269 +270 +271 +272 +273 +274 +275 +276 +277 +278 +279 +280 +281 +282 +283 +284 +285 +286 +287 +288 +289 +290 +291 +292 +293 +294 +295 +296 +297 +298 +299 +300 +301 +302 +303 +304 +305 |
|