def predict(self, dataframe):
    if (self._graph is not None):
        with self._graph.as_default():
            with self._sess.as_default():
                predicted = pd.DataFrame(self.keras_model.predict(dataframe.values))
    else:
        predicted = pd.DataFrame(self.keras_model.predict(dataframe.values))
    predicted.index = dataframe.index
    return predicted
def predict(self, dataframe):
    if (self._graph is not None):
        with self._graph.as_default():
            with self._sess.as_default():
                predicted = pd.DataFrame(self.keras_model.predict(dataframe.values))
    else:
        predicted = pd.DataFrame(self.keras_model.predict(dataframe.values))
    predicted.index = dataframe.index
    return predicted