MCPcopy Create free account
hub / github.com/VivekPa/AIAlpha / predict_ret

Method predict_ret

models/nnmodel.py:47–53  ·  view source on GitHub ↗
(self, x, y)

Source from the content-addressed store, hash-verified

45 print(self.model.evaluate(test_x, test_y))
46
47 def predict_ret(self, x, y):
48 test_x = x
49 predicted_data = []
50 for i in test_x:
51 prediction = (self.model.predict(np.reshape(i, (1, 1, self.input_shape))))
52 predicted_data.append(np.reshape(prediction, (1,)))
53 return pd.DataFrame(predicted_data)
54
55 def predict_prices(self, x, y, prices):
56 test_x = x

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected