this post was submitted on 26 Nov 2023
1 points (100.0% liked)

Machine Learning

1 readers
1 users here now

Community Rules:

founded 11 months ago
MODERATORS
 

Hey guys, begginers doubt:

I am preparing a dataframe for a machine learning model. The purpose of the model is to predict whether people infected with COVID will die or not.

To do this, I am looking for some conditions and symptoms, such as sore throat, cough, comorbidities, gender, and others, and binarizing them into "yes" or "no" or "male" and "female".

I have a problem. One of the variables is "pregnant", but only individuals of the female sex can be pregnant. How can I deal with this variable?

Can I keep it in the dataframe and assign the value "not pregnant" to all male individuals? Or could this harm the model?

you are viewing a single comment's thread
view the rest of the comments
[–] 314per@alien.top 1 points 10 months ago (4 children)

Keep in mind that it is possible but rare for men to be pregnant (eg trans men, some kind of intersex people).

https://www.healthline.com/health/transgender/can-men-get-pregnant#if-you-have-a-uterus-and-ovaries

[–] Pyrite_Pro@alien.top 1 points 10 months ago (3 children)

Trans men, you mean… women?

[–] pan_berbelek@alien.top 1 points 9 months ago (1 children)

And of course you get downvoted.. the virus devours peoples minds.

[–] Pyrite_Pro@alien.top 1 points 9 months ago

Didn’t expect anything else…

load more comments (1 replies)
load more comments (1 replies)