# EmbedPy examples - ML and AI code.

**URL:** <https://forum.kx.com/t/embedpy-examples-ml-and-ai-code/11667>\
**Category:** Community Support\
**Tags:** kdb-and-q\
**Created:** [December 24, 2017, 7:19am UTC](https://forum.kx.com/t/embedpy-examples-ml-and-ai-code/11667 "2017-12-24T07:19:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Krishna1](https://avatars.discourse-cdn.com/v4/letter/k/71e660/32.png) [@Krishna1](https://forum.kx.com/u/Krishna1)\
**Post date:** [December 24, 2017, 7:19am UTC](https://forum.kx.com/t/embedpy-examples-ml-and-ai-code/11667/1 "2017-12-24T07:19:00Z")

</div>

Hi q folks,&nbsp;  
Happy Holidays to you ! I’ve written some embedPy examples, using real-world Kaggle data, at&nbsp;https://github.com/krish240574/embedPyMLAI - do take a look.&nbsp;

The relevant examples are :

[2sigma\_regression.q](“[https://github.com/krish240574/embedPyMLAI/blob/master/2sigma\_regression.q](https://github.com/krish240574/embedPyMLAI/blob/master/2sigma_regression.q)” ““2sigma\_regression.q””)&nbsp;- running linear regression(using sklearn) on 2Sigma data, from the 2Sigma Financial challenge on Kaggle (https://www.kaggle.com/c/two-sigma-financial-modeling) and&nbsp;

[datasciencebowl2017.q](“[https://github.com/krish240574/embedPyMLAI/blob/master/datasciencebowl2017.q](https://github.com/krish240574/embedPyMLAI/blob/master/datasciencebowl2017.q)” ““datasciencebowl2017.q””)&nbsp;- running a 3-D convolutional neural net(in Tensorflow) on 3-D chest scan data, for the Data Science bowl, 2017 - (https://www.kaggle.com/c/data-science-bowl-2017). - This one has the training part complete, has yet to run on test data, I’ll add code for the same soon.&nbsp;

All data needs to be downloaded from the relevant competition links, they’re too big to put on Github.&nbsp;

Many more examples to come!&nbsp;

Cheers,&nbsp;

Kumar

P.S - Take a look at EmbedPy at -&nbsp;https://github.com/KxSystems/embedPy

| ![""]() | Virus-free. www.avast.com |

---

<div class="post-metadata">

**Author:** ![robsmith11](https://avatars.discourse-cdn.com/v4/letter/r/90db22/32.png) [@robsmith11](https://forum.kx.com/u/robsmith11)\
**Post date:** [December 30, 2017, 10:30am UTC](https://forum.kx.com/t/embedpy-examples-ml-and-ai-code/11667/2 "2017-12-30T10:30:00Z")

</div>

Nice.. calling Tensorflow directly from kdb is very useful. Thanks for sharing!

24.12.2017, 07:19, “Krishna Kumar” \<kumar.ramanathan@gmail.com\>:

> Hi q folks,&nbsp;  
> Happy Holidays to you ! I’ve written some embedPy examples, using real-world Kaggle data, at&nbsp;https://github.com/krish240574/embedPyMLAI - do take a look.&nbsp;
> 
> The relevant examples are :
> 
> [2sigma\_regression.q](“[https://github.com/krish240574/embedPyMLAI/blob/master/2sigma\_regression.q](https://github.com/krish240574/embedPyMLAI/blob/master/2sigma_regression.q)” ““2sigma\_regression.q””)&nbsp;- running linear regression(using sklearn) on 2Sigma data, from the 2Sigma Financial challenge on Kaggle (https://www.kaggle.com/c/two-sigma-financial-modeling) and&nbsp;
> 
> [datasciencebowl2017.q](“[https://github.com/krish240574/embedPyMLAI/blob/master/datasciencebowl2017.q](https://github.com/krish240574/embedPyMLAI/blob/master/datasciencebowl2017.q)” ““datasciencebowl2017.q””)&nbsp;- running a 3-D convolutional neural net(in Tensorflow) on 3-D chest scan data, for the Data Science bowl, 2017 - (https://www.kaggle.com/c/data-science-bowl-2017). - This one has the training part complete, has yet to run on test data, I’ll add code for the same soon.&nbsp;
> 
> All data needs to be downloaded from the relevant competition links, they’re too big to put on Github.&nbsp;
> 
> Many more examples to come!&nbsp;
> 
> Cheers,&nbsp;
> 
> Kumar
> 
> P.S - Take a look at EmbedPy at -&nbsp;https://github.com/KxSystems/embedPy
> 
> | ![""]() | Virus-free. www.avast.com |
> 
> –  
> Submitted via Google Groups
