# Integrate a machine learning model into Dynamo to be used for Generative Design purposes

**URL:** <https://forum.dynamobim.com/t/integrate-a-machine-learning-model-into-dynamo-to-be-used-for-generative-design-purposes/68519>\
**Category:** Uncategorized\
**Created:** [September 23, 2021, 9:10pm UTC](https://forum.dynamobim.com/t/integrate-a-machine-learning-model-into-dynamo-to-be-used-for-generative-design-purposes/68519 "2021-09-23T21:10:19Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![c.poupin](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/c.poupin/32/89152_2.png) [@c.poupin](https://forum.dynamobim.com/u/c.poupin)\
**Post date:** [September 25, 2021, 2:24pm UTC](https://forum.dynamobim.com/t/integrate-a-machine-learning-model-into-dynamo-to-be-used-for-generative-design-purposes/68519/5 "2021-09-25T14:24:11Z")

</div>

Hello @ritaselias  
I wrote an article recently, it might be able to help you (use Translate button)

> **[\[Dynamo+=Python\] Deep Learning avec TensorFlow](https://voltadynabim.blogspot.com/2021/07/dynamopython-deep-learning-avec.html)**
>
> Blog sur le BIM, du Python et d'la Dynamo appliqués aux électrons

> [@solamour](#):
>
> We have plans to include some of the most common and popular Python 3 packages out-of-the-box, but haven’t had scope to do so yet.

it’s a good new ❤  
in addition to the most well-known packages, the implementation of some packages could be very useful  
This would fill some feature gaps in PythonNet, although I am waiting for to test PythonNet 3 which brings new features and fixes.

> [@\[New Feature Preview\] Python 3 Support Issue Thread](https://forum.dynamobim.com/t/new-feature-preview-python-3-support-issue-thread/51649/63):
>
> You are welcome @c.poupin slight_smile Just wanted to add an alternative for COM interop. This can be achieved also using Python --\> COM integration, without going through .NET. There is a module called pywin32 that serves this purpose. Here is an example equivalent to the one I showed before but using this pywin32 instead of relying on a custom .NET library.

> [@\[New Feature Preview\] Python 3 Support Issue Thread](https://forum.dynamobim.com/t/new-feature-preview-python-3-support-issue-thread/51649/65):
>
> Hi @ustncz. I tried and got the same error you did. I think it’s because we are running Python from .NET, so the threading mode is already initialized. I was actually able to use the library if I commented out the offending line, where CoInitializeEx is called. Not sure if that causes other issues down the road, so please beware.

---

_[View the full topic](https://forum.dynamobim.com/t/integrate-a-machine-learning-model-into-dynamo-to-be-used-for-generative-design-purposes/68519)._
