Message Boards Message Boards

0
|
5010 Views
|
3 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Import data with column items given as Quantity units and use Predict?

Posted 4 years ago
Attachments:
POSTED BY: Declan Flynn
3 Replies
Posted 4 years ago

Sorry, here is the Data file that I am using.

POSTED BY: Declan Flynn
Posted 4 years ago

Hi Declan,

The problem is that the quantities are imported as strings, see InputForm @ info. To extract the quantity magnitudes and generate the rules

data2 = Thread[Rule[QuantityMagnitude@*ToExpression /@ info, animal]]

I don't think Predict can deal with numeric -> nominal data. You will have to encode the animal names to integers.

POSTED BY: Rohit Namjoshi
Posted 4 years ago

Thank you so much for this help, also you are correct "I don't think Predict can deal with numeric -> nominal data. You will have to encode the animal names to integers.", I have it running now.

POSTED BY: Declan Flynn
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract