<div dir="ltr"><br><br><div class="gmail_quote">On Mon, Jun 13, 2011 at 5:22 PM, Fred G <span dir="ltr">&lt;<a href="mailto:bayespokerguy@gmail.com">bayespokerguy@gmail.com</a>&gt;</span> wrote:<br><blockquote style="margin: 0px 0px 0px 0.8ex; padding-left: 1ex; border-left-color: rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid;" class="gmail_quote">
Hello--<div><br></div><div>I&#39;m a pre-med student interested in decision-making as applied to medical decisions.  I am trying to build a medical decision-making algorithm and am pretty stuck on a few things.  </div><div>

<br></div><div>I&#39;ve built a file that contains a list of many diseases and their associated symptoms.  For example, here are the column headers and two sample rows (the &quot;|&quot; = &quot;or&quot;):</div><div>Disease                Symptoms</div>

<div>Cold                     sore_throat|runny_nose|congestion|cough|aches|slight_fever</div><div>Flu                       sore_throat|fever|headache|muscle_aches|soreness|congestion|cough|returning_fever</div><div><br>

</div><div>My questions are the following:</div><div>a)  How&#39;s the best way to make it so I can have a user type in a list of symptoms and then have the computer tell the user the possible diseases that share those symptoms? In other words, on a high-level I have a pretty good idea of what I want my algorithm to do-- but I need help implementing the basic version first.  I&#39;d like to do the following:</div>

<div>&gt;&gt;&gt;Please enter a list of symptoms</div><div>&gt;&gt;&gt;[user_input]</div><div>&gt;&gt;&gt;Possible diseases include: x, y, z</div><div><br></div><div>b)Once I get that working, could anyone point me to good code already written in Python such that I could have a model (for syntax and overall structure) for figuring out how to make the computer evaluate more factors such as: patient age, patient history, and even downloading archival data for patients in the same demographic group?</div>

<div><br></div><div>Thanks!</div><div><br>There are lots of machine learning algorithms that do exactly what you want. Take a look at memory-based learning, one of the easiest to understand ML algorithms, and its TiMBL implementation here:</div>
<div><a href="http://ilk.uvt.nl/timbl/">http://ilk.uvt.nl/timbl/</a></div><div> </div></blockquote><div>and the Python binding here:</div><div> </div><div><a href="http://ilk.uvt.nl/~sander/software/python-timbl.html">http://ilk.uvt.nl/~sander/software/python-timbl.html</a> </div>
<blockquote style="margin: 0px 0px 0px 0.8ex; padding-left: 1ex; border-left-color: rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid;" class="gmail_quote"><div> </div><div><br></div>
<br>_______________________________________________<br>
Tutor maillist  -  <a href="mailto:Tutor@python.org">Tutor@python.org</a><br>
To unsubscribe or change subscription options:<br>
<a href="http://mail.python.org/mailman/listinfo/tutor" target="_blank">http://mail.python.org/mailman/listinfo/tutor</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>áÇ ÃÚÑÝ ãÙáæãÇ ÊæÇØàÇáäÇÓ Úáí åÖãå æáÇ ÒåÏæÇ Ýí ÅäÕÇÝå ßÇáÍÞíÞÉ.....ãÍãÏ ÇáÛÒÇáí<br>&quot;No victim has ever been more repressed and alienated than the truth&quot;<br>
<br>Emad Soliman Nawfal<br>Indiana University, Bloomington<br>--------------------------------------------------------<br>
</div>