MLP
Multilayer perceptron: a feed-forward neural network with one or two hidden layers for a categorical (classification) or scale (prediction) dependent.
Syntax
Section titled “Syntax”MLP dep [(MLEVEL=N|O|S)] [BY factors] [WITH covariates] [/EXCEPT VARIABLES=list] [/RESCALE …] [/PARTITION TRAINING=7 TESTING=3 HOLDOUT=0 | VARIABLE=var] [/ARCHITECTURE AUTOMATIC=YES (MINUNITS=1 MAXUNITS=50) | NO HIDDENLAYERS=1|2 (NUMUNITS=AUTO|n [m]) HIDDENFUNCTION=TANH|SIGMOID|RELU OUTPUTFUNCTION=IDENTITY|SOFTMAX|SIGMOID|TANH] [/CRITERIA TRAINING=BATCH|MINIBATCH|ONLINE OPTIMIZATION=SCALEDCONJUGATE|GRADIENTDESCENT MINIBATCHSIZE=n LEARNINGINITIAL=0.4 LEARNINGLOWER=0.001 MOMENTUM=0.9] [/STOPPINGRULES ERRORSTEPS=n TRAININGTIMER=ON (MAXTIME=15) | OFF MAXEPOCHS=AUTO|n RELATIVECHANGE=0.0001 ERRORRATIO=0.001] [/MISSING …] [/PRINT …] [/PLOT …] [/SAVE …].Synopsis
Section titled “Synopsis”| Kind | Procedure (reads data, produces output) |
| Body | main /SUBCOMMAND[=] … |
| Changes data | yes, undoable |
| Subcommands | /ARCHITECTURE, /CRITERIA, /EXCEPT, /MISSING, /OUTFILE, /PARTITION, /PLOT, /PRINT, /RESCALE, /SAVE, /STOPPINGRULES |
| Menu | Analyze ▸ Neural Networks |
| Slot: Dependent variables | 1+ variable(s); levels: nominal, ordinal, scale; types: numeric, string |
| Slot: Factors | 0+ variable(s); levels: nominal, ordinal, scale; types: numeric, string |
| Slot: Covariates | 0+ variable(s); levels: scale, ordinal; types: numeric |
Specifications
Section titled “Specifications”- RESCALE: COVARIATE= and DEPENDENT= STANDARDIZED (default), NORMALIZED, ADJNORMALIZED or NONE; statistics come from the training sample
- PARTITION: TRAINING=, TESTING=, HOLDOUT= relative numbers (default 7 and 3) for a random split with the session seed, or VARIABLE=var (> 0 training, 0 testing, < 0 holdout)
- PRINT: CPS NETWORKINFO SUMMARY CLASSIFICATION (default), SOLUTION (weights), IMPORTANCE, NONE
- PLOT: NETWORK (default), PREDICTED RESIDUAL (scale dependent), ROC GAIN LIFT (categorical), NONE
- SAVE: PREDVAL (predicted value or category), PSEUDOPROB (one variable per category)
- MISSING: USERMISSING=EXCLUDE (default) or INCLUDE for factors and covariates
- EXCEPT: VARIABLES=list removes predictors named in the main specification
- ARCHITECTURE: AUTOMATIC=YES tries up to six one-layer networks between MINUNITS and MAXUNITS and keeps the one with the lowest testing error (training BIC without a testing sample)
- CRITERIA: BATCH training uses scaled conjugate gradient; MINIBATCH and ONLINE use gradient descent with momentum and a learning rate falling from LEARNINGINITIAL to LEARNINGLOWER
- STOPPINGRULES: training stops after ERRORSTEPS epochs without a lower error (testing sample when there is one; default 1 for batch, 5 otherwise), or on the other criteria
Examples
Section titled “Examples”MLP churn BY plan WITH age income /PARTITION TRAINING=6 TESTING=2 HOLDOUT=2 /PRINT CPS NETWORKINFO SUMMARY CLASSIFICATION IMPORTANCE /PLOT NETWORK ROC GAIN /SAVE PSEUDOPROB.MLP price (MLEVEL=S) WITH size age rooms /ARCHITECTURE AUTOMATIC=NO HIDDENLAYERS=2 (NUMUNITS=6 3) /PLOT PREDICTED RESIDUAL.- One dependent per command. With a testing sample, the weights with the lowest testing error are kept.
- Importance is a sensitivity measure: the increase in error when a predictor is held at its training mean, scaled to sum to 1.
- Frequency weights multiply each case’s contribution to the error.
- Several dependents train one joint network with an output block per dependent (as SPSS does).
- /OUTFILE MODEL=‘file.xml’ writes PMML (a NeuralNetwork; with several dependents a MiningModel with one NeuralNetwork segment per dependent); ‘file.json’ writes JSON.
Related
Section titled “Related”RBF, LOGISTIC REGRESSION, TREE, KNN
Generated from OrcStat’s command registry and reference. To suggest a change, open an issue.