# NOT RUN {
## Suppose you have divided your training data into two chunks,
## DATA1 and DATA2. Let the number of input dimensions be N. To apply
## SFA on them write:
# }
# NOT RUN {
sfaList = sfa2Create(N,xpDim(N))
sfaList = sfaStep(sfaList, DATA1, "preprocessing")
sfaList = sfaStep(sfaList, DATA2)
sfaList = sfaStep(sfaList, DATA1, "expansion")
sfaList = sfaStep(sfaList, DATA2)
sfaList = sfaStep(sfaList, NULL, "sfa")
output1 = sfaExecute(sfaList, DATA1)
output2 = sfaExecute(sfaList, DATA2)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab