Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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);
        }