module calmla
¶
class calmla
¶
Calibrating supervised classification in Remote Sensing
This module allows to calibrate supervised classification in satellite images through various algorithms and using approaches such as Set-Approach, Leave-One-Out Cross-Validation (LOOCV), Cross-Validation (k-fold) and Monte Carlo Cross-Validation (MCCV)
method __init__
¶
1 |
|
Parameter:
endmembers: Endmembers must be a matrix (numpy.ndarray) and with more than one endmember. Rows represent the endmembers and columns represent the spectral bands. The number of bands must be equal to the number of endmembers. E.g. an image with 6 bands, endmembers dimension should be $n*6$, where $n$ is rows with the number of endmembers and 6 is the number of bands (should be equal). In addition, Endmembers must have a field (type int or float) with the names of classes to be predicted.
References:
Tarazona, Y., Zabala, A., Pons, X., Broquetas, A., Nowosad, J., and Zurqani, H.A. Fusing Landsat and SAR data for mapping tropical deforestation through machine learning classification and the PVts-β non-seasonal detection approach, Canadian Journal of Remote Sensing., vol. 47, no. 5, pp. 677–696, Sep. 2021.
method CV
¶
1 2 3 4 5 6 7 8 |
|
This module allows to calibrate supervised classification in satellite images through various algorithms and using Cross-Validation.
Parameters:
-
split_data
: A dictionary obtained from the splitData method of this package. -
models
: Models to be used such as Support Vector Machine ('svm'), Decision Tree ('dt'), Random Forest ('rf'), Naive Bayes ('nb') and Neural Networks ('nn'). This parameter can be passed like models = ('svm', 'dt', 'rf', 'nb', 'nn'). -
cv
: For splitting samples into two subsets, i.e. training data and for testing data. Following Leave One Out Cross-Validation. -
n_iter
: Number of iterations, i.e number of times the analysis is executed. -
**kwargs
: These will be passed to SVM, DT, RF, NB and NN, please see full lists at: https
: //scikit-learn.org/stable/supervised_learning.html#supervised-learning
Return: A graphic with errors for each machine learning algorithms.
method LOOCV
¶
1 |
|
This module allows to calibrate supervised classification in satellite images through various algorithms and using Leave One Out Cross-Validation.
Parameters:
-
split_data
: A dictionary obtained from the splitData method of this package. -
models
: Models to be used such as Support Vector Machine ('svm'), Decision Tree ('dt'), Random Forest ('rf'), Naive Bayes ('nb') and Neural Networks ('nn'). This parameter can be passed like models = ('svm', 'dt', 'rf', 'nb', 'nn'). -
cv
: For splitting samples into two subsets, i.e. training data and for testing data. Following Leave One Out Cross-Validation. -
n_iter
: Number of iterations, i.e number of times the analysis is executed. -
**kwargs
: These will be passed to SVM, DT, RF, NB and NN, please see full lists at: https
: //scikit-learn.org/stable/supervised_learning.html#supervised-learning
Return: A graphic with errors for each machine learning algorithms.
method MCCV
¶
1 2 3 4 5 6 7 8 9 |
|
This module allows to calibrate supervised classification in satellite images through various algorithms and using Cross-Validation.
Parameters:
-
split_data
: A dictionary obtained from the splitData method of this package. -
models
: Models to be used such as Support Vector Machine ('svm'), Decision Tree ('dt'), Random Forest ('rf'), Naive Bayes ('nb') and Neural Networks ('nn'). This parameter can be passed like models = ('svm', 'dt', 'rf', 'nb', 'nn'). -
cv
: For splitting samples into two subsets, i.e. training data and for testing data. Following Leave One Out Cross-Validation. -
n_iter
: Number of iterations, i.e number of times the analysis is executed. -
**kwargs
: These will be passed to SVM, DT, RF, NB and NN, please see full lists at: https
: //scikit-learn.org/stable/supervised_learning.html#supervised-learning
Return: A graphic with errors for each machine learning algorithms.
method SA
¶
1 |
|
This module allows to calibrate supervised classification in satellite images through various algorithms and using approaches such as Set-Approach.
Parameters:
-
split_data
: A dictionary obtained from the splitData method of this package. -
models
: Models to be used such as Support Vector Machine ('svm'), Decision Tree ('dt'), Random Forest ('rf'), Naive Bayes ('nb') and Neural Networks ('nn'). This parameter can be passed like models = ('svm', 'dt', 'rf', 'nb', 'nn'). -
train_size
: For splitting samples into two subsets, i.e. training data and for testing data. -
n_iter
: Number of iterations, i.e number of times the analysis is executed. -
**kwargs
: These will be passed to SVM, DT, RF, NB and NN, please see full lists at: https
: //scikit-learn.org/stable/supervised_learning.html#supervised-learning
Return: A graphic with errors for each machine learning algorithms.
method splitData
¶
1 |
|
This method is to separate the dataset in predictor variables and the variable to be predicted
Parameter:
self: Attributes of class calmla.
Return: A dictionary with X and y.
This file was automatically generated via lazydocs.