pkfsann(1)
π NAME π
pkfsann β feature selection for an nn classifier π§ β¨ (yes that's the whole name, it's giving "short and iconic")
πΈ SYNOPSIS πΈ
pkfsann -t training -n number [options] [advanced options]
β¨ DESCRIPTION β¨
okay so real talk bestie π«Ά β classification problems with high dimensional input data can be challenging because of the Hughes phenomenon. hyperspectral data, for instance, can have hundreds of spectral bands and needs special attention when it's being classified. and like, especially when you only have limited training data available, classifying that kind of data can be problematic unless you reduce the dimension first. it's giving "too much of a good thing" π
pkfsann implements a number of feature selection techniques, and among them is a sequential floating forward search (SFFS) π
also go look at the SVM classifier implemented in pksvm(1) β it has been shown to be more robust to this type of problem than others π
π OPTIONS π
-t filename,--training filenameβ the training vector file π. a single vector file contains all training features (must be set as:B0,B1,B2,...) for all classes (class numbers get identified by thelabeloption). use multiple training files if you're doing bootstrap aggregation β that's the alternative to thebagandbsizeoptions, where a random subset is taken from a single training file π²-n number,--nf numberβ number of features to select. set it to0to 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 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 the class label in the training vector file. (default:label) π--balance sizeβ balance the input data to this number of samples for each class (default:0) βοΈ-random,--randomβ in case ofbalance, randomize the input data π°-min number,--min numberβ if the number of training pixels is less thenmin, do not take this class into account π-b band,--band bandβ band index (starting from0, either use thebandoption or usestarttoend) ποΈ-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 you want scale min and max in each band to-1.0and1.0) π-a 0|1|2,--aggreg 0|1|2β how to combine aggregated classifiers, see also the--rcoption (0: no aggregation,1: sum rule,2: max rule). π€-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 the stopping criterion in the cost function, used 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). π-n number,--nneuron numberβ number of neurons in the hidden layers in the neural network (multiple hidden layers are set by defining multiple number of neurons:-nn 15 -nn 1, default is one hidden layer with5neurons). π§--connection 0|1β connection rate (default:1.0for a fully connected network) πΈοΈ-w weights,--weights weightsβ weights for the neural network. applies to a fully connected network only, starting from the first input neuron to the last output neuron, including the bias neurons (the last neuron in each but the last layer) ποΈ-l rate,--learning rateβ learning rate (default:0.7) π--maxit numberβ number of maximum iterations (epoch) (default:500) β³
ngl bestie,-nreally does show up twice in this list β once for--nfand once for--nneuron. that's literally what the page says, so I'm not touching it π
π SEE ALSO π
pksvm(1) β go read it, it's the moment π«Ά
and that's the whole page, you ate it π β¨ this was pkfsann(1) from 01 January 2025 β mwah, go select some features bestie, ily, bye ππ¦π
π¦ 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