# Is implementing a classification algorithm possible w/ MyHDL?

**URL:** <https://discourse.myhdl.org/t/is-implementing-a-classification-algorithm-possible-w-myhdl/421>\
**Category:** Support\
**Created:** [March 19, 2020, 11:32pm UTC](https://discourse.myhdl.org/t/is-implementing-a-classification-algorithm-possible-w-myhdl/421 "2020-03-19T23:32:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![akwan](https://avatars.discourse-cdn.com/v4/letter/a/a87d85/32.png) [@akwan](https://discourse.myhdl.org/u/akwan)\
**Post date:** [March 19, 2020, 11:32pm UTC](https://discourse.myhdl.org/t/is-implementing-a-classification-algorithm-possible-w-myhdl/421/1 "2020-03-19T23:32:03Z")

</div>

Hello, I am trying to implement a OneR algorithm with MyHDL. Is it possible to model this with myhdl or would I have to make modifications/adjustments in order for it to convert successfully? An example of a OneR implementation in Python is [https://github.com/mfreyeso/oner-scratch](https://github.com/mfreyeso/oner-scratch) .

---

<div class="post-metadata">

**Author:** ![hgomersall](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.myhdl.org/hgomersall/32/10_2.png) [@hgomersall](https://discourse.myhdl.org/u/hgomersall)\
**Post date:** [March 25, 2020, 11:59am UTC](https://discourse.myhdl.org/t/is-implementing-a-classification-algorithm-possible-w-myhdl/421/2 "2020-03-25T11:59:44Z")

</div>

I suspect you’d need substantial changes - MyHDL does not convery arbitrary Python, but rather allows you to present your HDL in Python.

That said, it would be a good framework if you wanted to implement an HDL version of OneR…
