public static Dictionary <String, Boolean> assessProteinIdentificationConfidence(List <Protein> proteins, SupportVectorMachine <Gaussian> svmModel) { //transform basic features to crossed features IDataView transformedData = ProteinListToTransformedData(proteins); //pass features into the classifier bool[] identificationPredictions = IdentificationLogisticRegressionTrainer.SVMDecide(svmModel, transformedData); // Collect the protein accession and the identification prediction Dictionary <String, Boolean> predictions = JoinAccessionWithPrediction(proteins, identificationPredictions); return(predictions); }
public static Dictionary <String, Boolean> assessProteinIdentificationConfidence(List <Protein> proteins, LogisticRegression lrModel) { //transform basic features to crossed features IDataView transformedData = ProteinListToTransformedData(proteins); //pass features into the classifier bool[] identificationPredictions = IdentificationLogisticRegressionTrainer.AccordDecide(lrModel, transformedData, GlobalVar.AccordThreshold); // Collect the protein accession and the identification prediction Dictionary <String, Boolean> predictions = JoinAccessionWithPrediction(proteins, identificationPredictions); return(predictions); }