What has to be done to text input for ANN?

Technical Source
1 min readMay 12, 2021

--

I have 5 inputs and 1 output for my ANN problem. Among the 5 inputs are 2 “text”. One is name of manufacturer (3 unique) and the other is specimen exposure type (acid, alkaline, alkaline+salt, water). How should these text type input be modified to train the model?

ANSWER

Matlabsolutions.com provide latest MatLab Homework Help,MatLab Assignment Help for students, engineers and researchers in Multiple Branches like ECE, EEE, CSE, Mechanical, Civil with 100% output.Matlab Code for B.E, B.Tech,M.E,M.Tech, Ph.D. Scholars with 100% privacy guaranteed. Get MATLAB projects with source code for your learning and research.

The easiest approach would be to convert the text values to numeric values before feeding to the ANN. For example,

exposure_types = {'acid', 'alkaline', 'alkaline+salt', 'water'};

and input data is something like this

inputs = {'acid', 'acid', 'acid', 'water', 'alkaline', 'acid', 'alkaline+salt'}

you can get an equivalent numeric form using ismember()

SEE COMPLETE ANSWER CLICK THE LINK

--

--

Technical Source
Technical Source

Written by Technical Source

Simple! That is me, a simple person. I am passionate about knowledge and reading. That’s why I have decided to write and share a bit of my life and thoughts to.

No responses yet