def predict_action_probabilities(self, tracker, domain):
    x = self.featurize(tracker, domain)
    x = x.reshape((1, self.max_len, x.shape[1]))
    if (KerasPolicy.is_using_tensorflow() and (self.graph is not None)):
        with self.graph.as_default():
            y_pred = self.model.predict(x, batch_size=1)
    else:
        y_pred = self.model.predict(x, batch_size=1)
    return y_pred[(- 1)].tolist()
def predict_action_probabilities(self, tracker, domain):
    x = self.featurize(tracker, domain)
    x = x.reshape((1, self.max_len, x.shape[1]))
    if (KerasPolicy.is_using_tensorflow() and (self.graph is not None)):
        with self.graph.as_default():
            y_pred = self.model.predict(x, batch_size=1)
    else:
        y_pred = self.model.predict(x, batch_size=1)
    return y_pred[(- 1)].tolist()