• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

[Help]Decision Making Algorithm

QT is better than VS
Joined
Jul 29, 2009
Messages
908
Reaction score
389
data models
id, ref_range, value , finding , code
1 , 2 - 5 , 3 , normal , HB
2 , 2 - 5 , 7 , high , HB
3 , 2 - 5 , 1 , low, HB
4 , <4 , 2 , normal , HL
5, <4 , 5 , high , HL

inputs
ref_range, value , code
< 4 , 1 , HL prediction = normal , truth = normal
< 4 , 4.5 , HL prediction = high, truth = normal
2 - 5 , 2.3 , HB prediction = normal , truth = normal

any reference to achieve this prediction in python?
thanks guys

anyone can suggest how to achieve this in python any reference document?
thanks for your help
 
Joined
May 23, 2008
Messages
1,071
Reaction score
574
Can you explain more about what you're trying to predict exactly?
Additionally, make sure to tell us:
- What do HL/HB stand for?
- What do the columns in both data sets mean exactly?

Even if we had all the information necessary here, you shouldn't be looking for someone to hand you the entire answer on a silver platter - that's not how programming should work, and that's definitely not how you learn.

What have you tried so far?
Maybe you've thought of something that doesn't quite work?
Is there anything you're aware of or that any of your colleagues/classmates have learned that may be applicable here? Even listing out some potential ideas would be helpful.
 
QT is better than VS
Joined
Jul 29, 2009
Messages
908
Reaction score
389
Can you explain more about what you're trying to predict exactly?
Additionally, make sure to tell us:
- What do HL/HB stand for? ans: sample clinical code
- What do the columns in both data sets mean exactly? reference range, values, and findings it is pretty straight forward in header name

Even if we had all the information necessary here, you shouldn't be looking for someone to hand you the entire answer on a silver platter - that's not how programming should work, and that's definitely not how you learn.

I am not expecting someone will hand me the entire solution, I am just actually trying to get any additional information that might help me to do this kind of prediction, and I didn't even ask CODE, instead ask reference.

What have you tried so far? i have already python decision tree, I am just roaming for other alternatives or efficient algorithm.

the rest of your question is irrelevant.
 
Junior Spellweaver
Joined
Feb 25, 2014
Messages
163
Reaction score
40
I am not sure what are you trying to achieve here. What I am thinking is that you want to output something depending on the data, so maybe some "if" conditions. Depending on which value the user inputs you will output some other value.

You should provide more detailed information so we can look into it.
 
QT is better than VS
Joined
Jul 29, 2009
Messages
908
Reaction score
389
I have this sample models....

ref_range, value , finding , code
2 - 5 , 3 , normal , HB
2 - 5 , 7 , high , HB
2 - 5 , 1 , low, HB
<4 , 2 , normal , HL
<4 , 5 , high , HL

now base on these sample models
the system can predict the findings base on sample models

sample input
value: 1
code: HL
finding: ?
finding prediction should be normal base on sample model since value 1 is less than 4 base on ref_range


if sample input
value: 10
code: HL
finding: ?
finding prediction is high since base on sample model the normal ref_range is < 4
 
Back
Top