Skip to main content
. 2023 Oct 12;9:e1626. doi: 10.7717/peerj-cs.1626

Algorithm 6. Calculating disease severity score.

Input: patientID
Output: score
asyncweightComputation(patientID){
    heart_points=0;
    selcted_features[]=age,cp,fbs,exang,oldpeak,slope,ca,thal;
    selected_features_weight=AssociatedWeights;
   foreach target in input
       calculateindividual_feature_weights;
       calculatetotal_weight_of_features;
       heart_points=total_weight_of_features;
       list.append(heart_points);
   end foreach;
   return list;
}