/// <summary>
        /// Loads the simple report and builds the expanded version
        /// </summary>
        /// <param name="reportFile">The report file.</param>
        /// <param name="logger">The logger.</param>
        /// <returns></returns>
        public static classificationReportExpanded LoadSimpleReport(String reportFile, ILogBuilder logger)
        {
            FileInfo fi = new FileInfo(reportFile);

            classificationReport         rep    = classificationReport.Load(reportFile, logger);
            classificationReportExpanded output = new classificationReportExpanded(rep);

            output.filecreation = fi.CreationTime;
            output.filepath     = fi.FullName;
            return(output);
        }
示例#2
0
        public static Double GetReportValue(this classificationReport report, String valueToUseKey)
        {
            Double val = 0;


            switch (valueToUseKey)
            {
            case classificationReportStyleDefinition.VALUE_F1:
                val = report.F1measure;
                break;

            case classificationReportStyleDefinition.VALUE_FS:
                val = report.GetSelectedFeatureAverage();
                break;
            }

            return(val);
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="classificationReportExpanded"/> class.
 /// </summary>
 /// <param name="report">The report.</param>
 public classificationReportExpanded(classificationReport report)
 {
     imbTypeObjectOperations.setObjectBySource(this, report);
 }
示例#4
0
 public static Double GetSelectedFeatureAverage(this classificationReport report)
 {
     return(report.data.GetMeanValue("SelectedFeatures"));
 }