pkfssvm(1)
π NAME π
okay so bestie, meet pkfssvm β it's literally feature selection for nn classifier. that's the whole vibe, no notes. π
β¨ SYNOPSIS β¨
pkfssvm -t training -n number [options] [advanced options]
π¦ DESCRIPTION π¦
so here's the tea, bestie. classification problems that deal with high dimensional input data can be genuinely challenging, and it's all because of the Hughes phenomenon. like, hyperspectral data can have hundreds of spectral bands and needs special attention when you're classifying it. and when you only have limited training data available? classifying that data can be problematic unless you reduce the dimension. it's giving overwhelmed fr. π
now, the SVM classifier has been shown to be more robust to this type of problem than others β ate that. but ngl, classification accuracy can often still be improved with feature selection methods. and that's where our girl comes in: the utility pkfssvm implements a number of feature selection techniques, and among them is a sequential floating forward search (SFFS). iconic behavior honestly. π
π OPTIONS π
-t filename,--training filenameβ training vector file. a single vector file contains all training features (must be set as:B0,B1,B2,...) for all classes (class numbers identified by the label option). use multiple training files for bootstrap aggregation (alternative to thebagandbsizeoptions, where a random subset is taken from a single training file). π«Ά-n number,--nf numberβ number of features to select (0to select the optimal number, see also the--ecostoption).-i filename,--input filenameβ input test set (leave it empty to perform a cross validation based on training only).-v level,--verbose levelβ set it to:0(results only),1(confusion matrix),2(debug).
π Advanced options π
-tln layer,--tln layerβ training layer name(s).-label attribute,--label attributeβ identifier for class label in the training vector file. (default:label)-bal size,--balance sizeβ balance the input data to this number of samples for each class. (default:0)-random,--randomβ in case of balance, randomize the input data.-min number,--min numberβ if the number of training pixels is less then min, do not take this class into account.-b band,--band bandβ band index (starting from0, either use the band option or use start to end).-sband band,--startband bandβ start band sequence number.-eband band,--endband bandβ end band sequence number.-offset value,--offset valueβ offset value for each spectral band input features:refl[band]=(DN[band]-offset[band])/scale[band]-scale value,--scale valueβ scale value for each spectral band input features:refl=(DN[band]-offset[band])/scale[band](use0if scale min and max in each band to-1.0and1.0).-svmt type,--svmtype typeβ type of SVM (C_SVC,nu_SVC,one_class,epsilon_SVR,nu_SVR).-kt type,--kerneltype typeβ type of kernel function (linear,polynomial,radial,sigmoid).-kd value,--kd valueβ degree in kernel function.-g value,--gamma valueβ gamma in kernel function.-c0 value,--coef0 valueβ coef0 in kernel function.-cc value,--ccost valueβ the parameterCof C-SVC, epsilon-SVR, and nu-SVR.-nu value,--nu valueβ the parameter nu of nu-SVC, one-class SVM, and nu-SVR.-eloss value,--eloss valueβ the epsilon in the loss function of epsilon-SVR.-cache number,--cache numberβ cache memory size in MB. (default:100)-etol value,--etol valueβ the tolerance of the termination criterion. (default:0.001)-shrink,--shrinkβ whether to use the shrinking heuristics.-sm method,--sm methodβ feature selection method (sffs=sequential floating forward search,sfs=sequential forward search,sbs, sequential backward search,bfs=brute force search).-ecost value,--ecost valueβ epsilon for stopping criterion in the cost function to determine the optimal number of features.-cv value,--cv valueβ n-fold cross validation mode. (default:0)-c name,--class nameβ list of class names.-r value,--reclass valueβ list of class values (use the same order as in the--classoption).
π SEE ALSO π
and that's the whole page, bestie!! this one's from pkfssvm(1) and it's dated 01 January 2025 β slay, go select some features, you got this. πβ¨π¦π
π¦ where this page comes from
- ubuntu questing: pktools 2.6.7.6+ds-6build4
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms