pkregann(1)
π pkregann β bestie edition π
okay so real talk, pkregann is a whole regression tool built on an artificial neural network (specifically a multi-layer perceptron), and it lives in section 1 of the manual. that's the name, that's the vibe. periodt.
β¨ SYNOPSIS β¨
pkregann -i input -t training [-ic col] [-oc col] -o output [options]
[advanced options]
that's the shape of it, bestie. the required stuff first, the little extras in brackets, then a whole second layer of advanced options at the end. iykyk. π¦
πΈ DESCRIPTION πΈ
so pkregann performs a regression based on an artificial neural network. the regression gets trained from the input columns (that's your -ic) and the output columns (that's your -oc) sitting inside a training text file.
every single row in that training file = one sampling unit. that's the rule. one row, one unit.
and here's the iconic part β you can define multi-dimensional input features just by stacking multiple input options on top of each other. like, if you want three-dimensional features? you go:
-ic 0 -ic 1 -ic 2
and boom, three dimensions. no cap. π
π OPTIONS π
-i filename,--input filenameβ the input ASCII file. your data goes in here.-t filename,--training filenameβ the training ASCII file. each row is one sampling unit, fr fr. the input features should be handed over as columns, and then the output follows after them.-o filename,--output filenameβ the output ASCII file where the result lands. your lil souvenir. π«Ά-ic col,--inputCols colβ the input columns. like, say your three-dimensional input data is chillin' in the first three columns β you'd write:-ic 0 -ic 1 -ic 2-oc col,--outputCols colβ the output columns. for example, for a two-dimensional output living in columns 3 and 4 (counting from 0, bestie, always from 0) you'd write:-oc 3 -oc 4-from row,--from rowβ start from this row in the training file. and yes, it starts from 0. β¨-to row,--to rowβ read until this row in the training file. starts from 0 too, or you can just leave it at 0 as the default to read all the way until the end of the file. π-cv size,--cv sizeβ n-fold cross validation mode. we love a good validation moment.-nn number,--nneuron numberβ number of neurons in the hidden layers of the neural network. and ooo, you can stack multiple hidden layers by defining multiple neuron counts:-n 15 -n 1. the default is one hidden layer with 5 neurons. she's simple, she works. π-v level,--verbose levelβ set it to:0(results only),1(confusion matrix),2(debug). pick your level of nosiness.
π Advanced options π
--offset valueβ offset value for each spectral band input features:refl[band]=(DN[band]-offset[band])/scale[band]--scale valueβ scale value for each spectral band input features:refl=(DN[band]-offset[band])/scale[band]β and heads up, use0if you want to scale min and max in each band to-1.0and1.0. π--connection rateβ the connection rate. default is1.0, which gives you a fully connected network. she's connected to EVERYONE. π-l rate,--learning rateβ the learning rate. default:0.7. π--maxit numberβ number of maximum iterations (epoch). default:500. go off, epochs. π₯
lowkey reminder bestie: keep those column indexes starting from0, keep the-nnneuron counts in the order you want the layers, and don't forget-i,-tand-oare the non-negotiables. everything else is garnish. π
and that's the whole page, gorgeous. this was written up as pkregann(1) in the manual, dated 01 January 2025 β so if you're reading this version, that's the era you're in. mwah, go train something iconic. π§πβ¨
π¦ 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