i.svm.predict(1)
π NAME π
okay bestie, welcome to i.svm.predict(1) from the GRASS User's Manual β yes, the manual name is right there, no cap. This module is literally Predict with a SVM and also Predict with a Support Vector Machine (same icon energy, longer name π
).
β¨ KEYWORDS β¨
imagery, svm, classification, prediction, regression
π¦ SYNOPSIS π¦
i.svm.predict
i.svm.predict --help
i.svm.predict group=name [subgroup=name] signaturefile=name
output=name [cache=cache size] [--overwrite] [--help] [--verbose]
[--quiet] [--ui]
π© Flags
--overwriteβ Allow output files to overwrite existing files. (Use with intention, bestie π)--helpβ Print usage summary.--verboseβ Verbose module output. Give me all the details, periodt.--quietβ Quiet module output. Shhh era.--uiβ Force launching GUI dialog.
π Parameters
group=name[required] β Maps with feature values (attributes). This is the feature-value situation.subgroup=nameβ Name of input imagery subgroup.signaturefile=name[required] β Name of input file containing signatures.output=name[required] β Output map with predicted class or calculated value.cache=cache sizeβ LIBSVM kernel cache size in MB. Options:1-; Default:512.
πΈ DESCRIPTION πΈ
i.svm.predict is the prediction girlie: it predicts values with a Support Vector Machine (SVM) and stores them in a raster file. Predictions are based on a signature file generated with i.svm.train.
Internally the module performs input value rescaling of each of imagery group rasters by minimum and maximum range determined during training. That's the internal glow-up β¨.
π₯ NOTES π₯
i.svm.train internally is using the LIBSVM. For introduction into value prediction or estimation with LIBSVM, see a Practical Guide to Support Vector Classification by Chih-Wei Hsu, Chih-Chung Chang, and Chih-Jen Lin.
It is strongly suggested to have semantic labels set for each raster map in the training data (feature value) and in value prediction imagery groups. Use r.support to set semantic labels. (Semantic labels are the vibe check here, bestie.)
π PERFORMANCE π
Value prediction is done cell by cell and thus memory consumption should be constant. Lowkey efficient.
The cache parameter determines the maximum memory allocated for kernel caching to enhance computational speed. Itβs important to note that the actual moduleβs memory consumption may vary from this setting, as it solely impacts LIBSVMβs internal caching. The cache is utilized on an as-needed basis, so itβs unlikely to reach the specified value. (So it's giving βIβll help if you need me,β not βIβm eating all the RAMβ π)
π EXAMPLE π
This is the second part of classification process. See i.svm.train for the first part.
Predict land use classes form a LANDSAT scene from October of 2002 with a SVM trained on a 1996 land use map landuse96_28m.
i.svm.predict group=lsat7_2002 subgroup=res_30m \
signaturefile=landuse96_rnd_points output=pred_landuse_2002
π SEE ALSO π
- Train SVM:
i.svm.train - Set semantic labels:
r.support - Other classification modules:
i.maxlik,i.smap - LIBSVM home page: LIBSVM - A Library for Support Vector Machines
π§ REFERENCES π§
Please cite both - LIBSVM and i.svm.
- For
i.svm.*modules: Nartiss, M., & Melniks, R. (2023). Improving pixel-based classification of GRASS GIS with support vector machine. Transactions in GIS, 00, 1β16.https://doi.org/10.1111/tgis.13102 - For LIBSVM: Chang, C.-C., & Lin, C.-J. (2011). LIBSVM : a library for support vector machines. ACM Transactions on Intelligent Systems and Technology,
2:27:1--27:27.
π AUTHOR π
Maris Nartiss, University of Latvia.
π«Ά SOURCE CODE π«Ά
Available at: i.svm.predict source code (history)
Accessed: Saturday Oct 31 11:14:19 2026
Main index | Imagery index | Topics index | Keywords index | Graphical index | Full index
Β© 2003-2026 GRASS Development Team, GRASS 8.5.0 Reference Manual
okay bestie, that's the whole page. Signing off from GRASS 8.5.0, accessed Saturday Oct 31 11:14:19 2026 π β¨
π¦ where this page comes from
- nixos 26.05: grass 8.5.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms