Im planning to make a stock market prediction game. In this I have already made an Artificial Intelligence model ( RNN-LSTM ) to predict the further stocks for the company. And now want to create an 2D UI for it.
So is it possible to integrate a pre-trained Artificial Intelligence model in unity and create a game around it?
If yes could you’ll elaborate the steps to proceed with it.
The Model that I have made in python.
Is there any particular package or method to integrate keras or tensor flow models in unity
And also how to approach Artificial Intelligence in unity.
Hey thanks for the reply
I’m a beginner in game development especially integrating an Artificial Intelligence model into it.
Can you tell me what were the problems you faced while doing your stock market predictions project cause it would really help.
As I said before, you don’t need to worry about importing things into Unity, but into C#. And that’s not really the topic of this forum (and there’s plenty about it online).
Does it have to be AI?
What you could do, is work other way round (smoke and mirrors).
Make a prediction into future, then generate stock change, along prediction over the time, with fluctuation and relevant errors.
So your prediction is a pilot, to generate actual stock changes.
Otherwise, you may want to look something like MPC (Model predictive controller), Unity ML, using python (but not real time training, as far I am aware), Or even Neural Networks, of which multiple C# codes you have available on github.
You certainly could do so by creating some bindings to run the model from C#, or compile it to C and call it from C#, but why do so? Lot of great GUI libraries for Python (Atlas, Pyjamas, etc.). Unity would be a heavy solution to that problem.
And if you are asking because you are thinking about using Unity for cross platform mobile development, there are lots of discussions on this here already. The long and the short of it is: Yes, you can. But it would not give the best experience on mobile due to download size, application start up time, and the battery consumption a game engine is going to incur versus just using something like React Native, Xamarin etc. React Native can execute C and Python can be trivially compiled to C.