public void initOptimizer() { if (Global.modelOptimizer.StartsWith("sapo")) { _optim = new optimSAPO(this); } else { _optim = new optimPercMIRA(this); } }
public void initOptimizer() { //_optimType = Global.optimizer; if (Global.modelOptimizer.StartsWith("crf")) { if (Global.modelOptimizer.EndsWith("sgd") || Global.modelOptimizer.EndsWith("sgder") || Global.modelOptimizer.EndsWith("adf")) { _optim = new optimStochastic(this); } else if (Global.modelOptimizer.EndsWith("bfgs")) { _optim = new optimLBFGS(this, _model.W, Global.mBFGS, 0, Global.ttlIter); } else { throw new Exception("error"); } } else { throw new Exception("error"); } }
public inference(toolbox tb) { _optim = tb.Optim; _fGene = tb.FGene; }
public gradient(toolbox tb) { _optim = tb.Optim; _inf = tb.Inf; _fGene = tb.FGene; }
public inference(toolbox tb) { _optim = tb.Optim; _fGene = tb.FGene; _grad = tb.Grad; }
public void initOptimizer() { _optim = new optimPerc(this); }