// Path: src/com/learningmodule/association/conceptdrug/model/EncounterIdConceptDrug.java
// public class EncounterIdConceptDrug {
// 	private int id;
// 	private String drug, conceptId;
// 	
// 	public EncounterIdConceptDrug(int id, String drug, String conceptId) {
// 		super();
// 		this.id = id;
// 		this.drug = drug;
// 		this.conceptId = conceptId;
// 	}
// 	
// 	public int getEncounterId() {
// 		return id;
// 	}
// 	public void setEncounterId(int id) {
// 		this.id = id;
// 	}
// 	
// 	public String getDrug() {
// 		return drug;
// 	}
// 	public void setDrug(String drug) {
// 		this.drug = drug;
// 	}
// 	public String getConceptId() {
// 		return conceptId;
// 	}
// 	public void setConceptId(String conceptId) {
// 		this.conceptId = conceptId;
// 	}
// }


import java.util.Hashtable;
import java.util.Iterator;
import java.util.LinkedList;
import org.apache.log4j.Logger;
import weka.core.Attribute;
import weka.core.FastVector;
import weka.core.Instances;
import weka.core.SparseInstance;
import com.learningmodule.association.conceptdrug.model.EncounterIdConceptDrug;
package com.learningmodule.association.conceptdrug.learning;





/*
 * class for preprocessing the data and converting it into form of Instances for Weka.
 */
public class PreProcessing {
	private static Logger log = Logger.getLogger(PreProcessing.class);

// Path: src/com/learningmodule/association/conceptdrug/model/EncounterIdConceptDrug.java
// public class EncounterIdConceptDrug {
// 	private int id;
// 	private String drug, conceptId;
// 	
// 	public EncounterIdConceptDrug(int id, String drug, String conceptId) {
// 		super();
// 		this.id = id;
// 		this.drug = drug;
// 		this.conceptId = conceptId;
// 	}
// 	
// 	public int getEncounterId() {
// 		return id;
// 	}
// 	public void setEncounterId(int id) {
// 		this.id = id;
// 	}
// 	
// 	public String getDrug() {
// 		return drug;
// 	}
// 	public void setDrug(String drug) {
// 		this.drug = drug;
// 	}
// 	public String getConceptId() {
// 		return conceptId;
// 	}
// 	public void setConceptId(String conceptId) {
// 		this.conceptId = conceptId;
// 	}
// }


// Path: src/com/learningmodule/association/conceptdrug/learning/PreProcessing.java
import java.util.Hashtable;
import java.util.Iterator;
import java.util.LinkedList;
import org.apache.log4j.Logger;
import weka.core.Attribute;
import weka.core.FastVector;
import weka.core.Instances;
import weka.core.SparseInstance;
import com.learningmodule.association.conceptdrug.model.EncounterIdConceptDrug;

package com.learningmodule.association.conceptdrug.learning;





/*
 * class for preprocessing the data and converting it into form of Instances for Weka.
 */
public class PreProcessing {
	private static Logger log = Logger.getLogger(PreProcessing.class);

	public static Instances process(LinkedList<EncounterIdConceptDrug> data) {