SeriesPipes pipe = new SeriesPipes(new Pipe[]{lpipe,fpipe});
InstanceSet instset = new InstanceSet(pipe,factory);
instset.loadThruStagePipes(new SimpleFileReader(trainFile," ",true,Type.LabelData));
Generator gen = new SFGenerator();
ZeroOneLoss l = new ZeroOneLoss();
Inferencer ms = new LinearMax(gen, factory.getLabelSize());
Update update = new LinearMaxPAUpdate(l);
OnlineTrainer trainer = new OnlineTrainer(ms, update,l, factory.getFeatureSize(), 50,0.005f);