# Extensions or functions for genetic programing

**URL:** <https://forum.netlogo.org/t/extensions-or-functions-for-genetic-programing/262>\
**Category:** Q&A\
**Tags:** en\
**Created:** [July 17, 2024, 11:17pm UTC](https://forum.netlogo.org/t/extensions-or-functions-for-genetic-programing/262 "2024-07-17T23:17:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![drasifjaffer](https://forum.netlogo.org/letter_avatar_proxy/v4/letter/d/96bed5/32.png) [@drasifjaffer](https://forum.netlogo.org/u/drasifjaffer)\
**Post date:** [July 17, 2024, 11:17pm UTC](https://forum.netlogo.org/t/extensions-or-functions-for-genetic-programing/262/1 "2024-07-17T23:17:43Z")

</div>

Hi Dears  
I am doing genetic programing in Netlogo whereby behavior rules are evolved based on reference data.

Right now, I have just one problem, that is, is there any function or premitive to calculate precision or some other measure for a multi label class problem.

Also, if there is some extension that may help, please advise

I am already using the String extension

Thanks

---

<div class="post-metadata">

**Author:** ![john-chen](https://forum.netlogo.org/user_avatar/forum.netlogo.org/john-chen/32/131_2.png) [@john-chen](https://forum.netlogo.org/u/john-chen)\
**Post date:** [July 18, 2024, 3:31am UTC](https://forum.netlogo.org/t/extensions-or-functions-for-genetic-programing/262/2 "2024-07-18T03:31:20Z")

</div>

I don’t think there is one built into NetLogo, but there probably are extensions. Alternatively, if you can find an algorithm for another language, we may be able to translate it into NetLogo.

---

<div class="post-metadata">

**Author:** ![jzkelter](https://forum.netlogo.org/letter_avatar_proxy/v4/letter/j/a5b964/32.png) [@jzkelter](https://forum.netlogo.org/u/jzkelter)\
**Post date:** [July 19, 2024, 8:39pm UTC](https://forum.netlogo.org/t/extensions-or-functions-for-genetic-programing/262/3 "2024-07-19T20:39:50Z")

</div>

I agree with John. If you don’t want to implement a precision calculation in NetLogo then I would recommend finding an implementation in python and then using the python extension: [NetLogo 6.4.0 User Manual: Py Extension](https://ccl.northwestern.edu/netlogo/docs/py.html)
