示例#1
0
        public double CalcFinalWeight(TFType tfType, IDFType idfType)
        {
            double tf  = TermFrequencies.Where(Onetf => Onetf.TFType == tfType).FirstOrDefault().Value;
            double idf = IDFs.Where(OneIDF => OneIDF.IDFType == idfType).FirstOrDefault().Value;

            return(tf * idf);
        }
 public BestThreshold(DateTime TimeStampP,
                      int NumberOfDiseasesWithKnownPhenotypesP,
                      int NumberOfDiseasesWithPublicationsInPredictionDataP,
                      int NumberOfDiseasesEvaluatedForRealP,
                      type TypeP, double MeanNumberOfRelatedEntitiesFoundP, double StandardDeviationNumberOfRelatedEntitiesFoundP, TFType TFTypeP, IDFType IDFTypeP, double ThresholdP, int RealPositivesP, int FalsePositivesP, int FalseNegativesP,
                      double PrecisionP, double RecallP, double F_ScoreP, double MeanRankRealPositivesP, double StandardDeviationRankRealPositivesGeneralP, Criterion CriterionP)
 {
     TimeStamp = TimeStampP;
     NumberOfDiseasesWithKnownPhenotypes = NumberOfDiseasesWithKnownPhenotypesP;
     NumberOfDiseasesWithPublicationsInPredictionData = NumberOfDiseasesWithPublicationsInPredictionDataP;
     NumberOfDiseasesEvaluatedForReal = NumberOfDiseasesEvaluatedForRealP;
     Type = TypeP;
     MeanNumberOfRelatedEntitiesFound = MeanNumberOfRelatedEntitiesFoundP;
     StandardDeviationNumberOfRelatedEntitiesFound = StandardDeviationNumberOfRelatedEntitiesFoundP;
     TFType                = TFTypeP;
     IDFType               = IDFTypeP;
     Threshold             = ThresholdP;
     RealPositives         = RealPositivesP;
     FalsePositives        = FalsePositivesP;
     FalseNegatives        = FalseNegativesP;
     Precision             = PrecisionP;
     Recall                = RecallP;
     F_Score               = F_ScoreP;
     MeanRankRealPositives = MeanRankRealPositivesP;
     StandardDeviationRankRealPositivesGeneral = StandardDeviationRankRealPositivesGeneralP;
     Criterion = CriterionP;
 }
示例#3
0
 public IDF(IDFType IDFTypeP, double ValueP)
 {
     IDFType = IDFTypeP;
     Value   = ValueP;
 }