def batch_lws(self, S, iterations=None, thresholds=None):
     if iterations is None:
         iterations = self.batch_iterations
     if thresholds is None:
         thresholds = lws.get_thresholds(iterations, self.batch_alpha,
                                         self.batch_beta, self.batch_gamma)
     return lws.batch_lws(S, self.W, thresholds)
 def nofuture_lws(self, S, iterations=None, thresholds=None):
     if iterations is None:
         iterations = self.nofuture_iterations
     if thresholds is None:
         thresholds = lws.get_thresholds(iterations, self.nofuture_alpha,
                                         self.nofuture_beta,
                                         self.nofuture_gamma)
     return lws.nofuture_lws(S, self.W_ai, thresholds)
 def online_lws(self, S, iterations=None, thresholds=None):
     if iterations is None:
         iterations = self.online_iterations
     if thresholds is None:
         thresholds = lws.get_thresholds(iterations, self.online_alpha,
                                         self.online_beta,
                                         self.online_gamma)
     return lws.online_lws(S, self.W, self.W_ai, self.W_af, thresholds,
                           self.look_ahead)