# Ai like scikit-learn for Lua

**URL:** <https://forum.defold.com/t/ai-like-scikit-learn-for-lua/63859>\
**Category:** Questions\
**Created:** [November 8, 2019, 4:32pm UTC](https://forum.defold.com/t/ai-like-scikit-learn-for-lua/63859 "2019-11-08T16:32:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![imim](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/imim/32/18905_2.png) [@imim](https://forum.defold.com/u/imim)\
**Post date:** [November 8, 2019, 4:32pm UTC](https://forum.defold.com/t/ai-like-scikit-learn-for-lua/63859/1 "2019-11-08T16:32:04Z")

</div>

Hi!  
I’m thinking about making a simple Ai based game in Defold. But I’m not sure what Ai library I should use. I’m looking for something like the TreeClassifier in scikit-learn for Python. You give it a list of floats with features, and then a list with labels. Then to make a prediction you give it some features and it will predict the label. Is there anything like that for Lua that I can use in Defold?  
Thanks in forehand!  
Br Imim
