# GNU radio, gr\_modtool

**URL:** <https://www.ruby-forum.com/t/gnu-radio-gr-modtool/251946>\
**Category:** GNU Radio\
**Created:** [February 21, 2019, 11:14pm UTC](https://www.ruby-forum.com/t/gnu-radio-gr-modtool/251946 "2019-02-21T23:14:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![aravinddeshikh](https://www.ruby-forum.com/user_avatar/www.ruby-forum.com/aravinddeshikh/32/447_2.png) [@aravinddeshikh](https://www.ruby-forum.com/u/aravinddeshikh)\
**Post date:** [February 21, 2019, 11:14pm UTC](https://www.ruby-forum.com/t/gnu-radio-gr-modtool/251946/1 "2019-02-21T23:14:05Z")

</div>

Hi,  
I’m trying to write a block for spectrum sensing in Gnu Radio using gr\_modtool. I have a python code using LSTM (machine learning) model of about 10-15 classes to convert the data into binary, reshape, sort, train and validate and again sort in order to choose a particular frequency out of the available 4 frequency channels that I’m using to demonstrate the cognitive radio scenario. I would like to know if it is possible that i make one block out of all this code I have. I’m posting the code link below from which I would use only the “cognitieradiov2” class for this application.

> <https://github.com/JHerna17/CognitiveRadioProject/blob/master/FrameworkDesign.ipynb>

Kindly, help me out here  
It is my thesis. Thanks in advance.
