public void Describe(ILogBuilder logger)
        {
            if (logger != null)
            {
                logger.AppendPair("Stemmer", stemmer.GetType().Name, true, "\t\t\t");

                logger.AppendPair("Tokenizer", tokenizer.GetType().Name, true, "\t\t\t");

                if (transliteration != null)
                {
                    logger.AppendPair("Transliteration", transliteration.lang_A_id + "-" + transliteration.lang_B_id, true, "\t\t\t");
                }
                else
                {
                    logger.AppendPair("Transliteration", "Disabled", true, "\t\t\t");
                }

                filter.Describe(logger);

                weightModel.Describe(logger);

                if (constructorSettings != null)
                {
                    constructorSettings.Describe(logger);
                }
                else
                {
                    logger.AppendLine("Vector model constructor - not set");
                }
            }
        }
        /// <summary>
        /// Dopunjava izvestaj sa podacima o sebi
        /// </summary>
        /// <param name="output"></param>
        public void reportCollection(ILogBuilder output)
        {
            //output.AppendPairs(this, "Link collection data", "paramTopScored");
            output.AppendPair("Links: ", Count.ToString());

            output.AppendPair("Scope: ", linkScope.inner.ToString() + " (" + byScope[linkScope.inner].Count + ") ");
            foreach (link l in byScope[linkScope.inner])
            {
                l.reportLink(output);
            }

            output.AppendPair("Scope: ", linkScope.outer.ToString() + " (" + byScope[linkScope.outer].Count + ") ");
            foreach (link l in byScope[linkScope.outer])
            {
                l.reportLink(output);
            }

            output.AppendPair("Scope: ", linkScope.onPage.ToString() + " (" + byScope[linkScope.onPage].Count + ") ");
            foreach (link l in byScope[linkScope.onPage])
            {
                l.reportLink(output);
            }

            output.AppendPair("Scope: ", linkScope.special.ToString() + " (" + byScope[linkScope.special].Count + ") ");
            foreach (link l in byScope[linkScope.special])
            {
                l.reportLink(output);
            }
        }
        /// <summary>
        /// Describes the cross validation settings
        /// </summary>
        /// <param name="logger">The logger.</param>
        public void Describe(ILogBuilder logger)
        {
            logger.AppendLine("--- k-fold crossvalidation settings---");

            logger.AppendPair("Number of folds [k]", K, true, "\t\t\t");
            logger.AppendPair("Training folds [t]", TrainingFolds, true, "\t\t\t");
            logger.AppendPair("Fold randomization", randomFolds.ToString(), true, "\t\t\t");
        }
 public override void Describe(ILogBuilder logger)
 {
     if (IsEnabled)
     {
         logger.AppendLine("Document filter enabled");
         logger.AppendPair("Ranking function", function.GetType().Name, true, "\t\t\t");
         logger.AppendPair("Select top", limit, true, "\t\t\t");
     }
     else
     {
         logger.AppendLine("Document filter disabled");
     }
 }
Example #5
0
        public override void Describe(ILogBuilder logger)
        {
            if (logger != null)
            {
                logger.AppendPair("Stemmer", stemmer, true, "\t\t\t");

                logger.AppendPair("Tokenizer", tokenizer, true, "\t\t\t");

                logger.AppendPair("Transliteration", !transliterationRuleSetId.isNullOrEmpty(), true, "\t\t\t");

                filter.Describe(logger);

                WeightModel.Describe(logger);
            }
        }
Example #6
0
 public void reportLinkInline(ILogBuilder output)
 {
     output.AppendPair(tag.ToString(),
                       attribute.ToString() + "=" + url + " [" + nature.ToString() + "] [" + scope.ToString() +
                       "]");
     // output.AppendPair(tag.ToString(), attribute.ToString() + "=" + url + " [" + nature.ToString() + "] [" + scope.ToString() + "]");
 }
        public void Describe(ILogBuilder logger)
        {
            if (IsEnabled)
            {
                logger.AppendLine("Feature Selection");
                logger.AppendPair("Limit", limit, true, "\t\t\t");

                logger.AppendLine("Ranking method for n-dimensional Feature Weights: " + nVectorValueSelectionOperation.ToString());


                logger.AppendPair("Function", WeightModel.GetSignature(), true, "\t\t\t");

                WeightModel.Describe(logger);
            }
            else
            {
                logger.AppendLine("Feature Selection method is disabled");
            }
        }
Example #8
0
        public virtual void Describe(ILogBuilder logger)
        {
            logger.AppendPair("Schema", shortName, true, "\t\t\t");
            if (!description.isNullOrEmpty())
            {
                logger.AppendComment(description);
            }
            String str_dataType = "Data type";

            switch (resultType)
            {
            case FunctionResultTypeEnum.numeric:
                logger.AppendPair(str_dataType, "Rational number", true, "\t\t\t");
                break;

            case FunctionResultTypeEnum.numericVectorForMultiClass:
                logger.AppendPair(str_dataType, "n-dimensional vector", true, "\t\t\t");
                logger.AppendComment("where n=|C|, C are classes");
                break;
            }
        }
        public override void Describe(ILogBuilder logger)
        {
            logger.AppendPair("Schema", GetFunctionName(computation), true, "\t\t\t");
            if (!description.isNullOrEmpty())
            {
                logger.AppendComment(description);
            }
            String norm_ln = "";

            switch (normalization)
            {
            case TFNormalization.divisionByMaxTF:
                norm_ln = "Division by max(TF) in the document";
                break;

            case TFNormalization.squareRootOfSquareSum:
                norm_ln = "Square root of square sums of TFs in the document";
                break;
            }
            logger.AppendPair("Normalizaton", norm_ln);
        }
Example #10
0
 public void reportLink(ILogBuilder output)
 {
     output.open(nameof(htmlTagName.div));
     output.AppendPair(tag.ToString(), "[" + nature.ToString() + "] [" + scope.ToString() + "]");
     output.AppendPair("Url:", url + " [original: " + originalUrl + "]");
     output.AppendPair("Shema:", shema.ToString());
     output.AppendPair("Domain:", domain);
     output.AppendPair("Path:", path);
     output.AppendPair("Query:", query);
     output.AppendPair("Query pairs:", queryPairs.Count.ToString());
     output.close();
 }
        protected void DescribeDimensions(ILogBuilder logger, List <dimensionSpecification> dimensions, string heading)
        {
            if (dimensions.Any())
            {
                logger.AppendLine(heading);
                logger.nextTabLevel();

                for (int i = 0; i < labelDimensions.Count; i++)
                {
                    dimensionSpecification ds = labelDimensions[i];
                    logger.AppendPair("[" + i.ToString("D2") + "]", ds.functionName, true, "\t\t\t");
                }

                logger.prevTabLevel();
            }
        }
Example #12
0
        /// <summary>
        /// Reports to log.
        /// </summary>
        /// <param name="report">The report.</param>
        /// <param name="logger">The logger.</param>
        public static void ReportToLog(this IClassificationReport report, ILogBuilder logger)
        {
            logger.AppendHeading(report.Name);
            logger.AppendPair("Classifier", report.Classifier);
            logger.AppendPair("F1-Measure", report.F1measure.ToString("F5"), true, "\t\t");

            logger.AppendPair("Precission", report.Precision.ToString("F5"), true, "\t\t");
            logger.AppendPair("Recall", report.Recall.ToString("F5"), true, "\t\t");

            logger.AppendPair("Total tests", report.Targets, true, "\t\t");
            logger.AppendPair("Correct", report.Correct, true, "\t\t");
        }
Example #13
0
        /// <summary>
        /// Describes the sample group to <c>output</c>
        /// </summary>
        /// <param name="output">The output object</param>
        public void describe(ILogBuilder output = null)
        {
            if (output == null)
            {
                return;
            }
            //output.log();
            int tl = output.tabLevel;

            output.rootTabLevel();

            //  output.AppendHeading("SampleGroup description", 1);

            output.open("desc", name, "");

            //  output.AppendHeading(name, 2);
            // output.AppendHorizontalLine();

            int ci = 1;

            foreach (sampleGroupItem item in this)
            {
                item.parent = this;
                output.open("group", item.groupTitle, item.groupDescription);
                //output.AppendHeading(, 3);


//                output.AppendPair("Description", );

                output.AppendPair("ID", ci);
                output.AppendPair("Tag", item.groupTag);
                if (item.groupSizeLimit == -1)
                {
                    output.AppendPair("Size (ratio)", item.weight + " / " + totalWeight.ToString());
                }
                else
                {
                    output.AppendPair("Size (limit)", item.groupSizeLimit);
                }

                output.AppendPair("Count", item.count);
                output.AppendPair("Border", item.groupBorder);
                if (item.isClosed)
                {
                    output.AppendLine("The group is closed for new members");
                }
                else
                {
                    output.AppendLine("The group may receive new members");
                }
                ci++;

                output.close();
            }

            output.AppendHorizontalLine();

            output.open("info", "Info", "");
            output.AppendPair("Counted collection", countedCollectionName);
            output.AppendPair("Items with group tag/s", countHasGroup);
            output.AppendPair("Items without group tag", countNoGroup);
            output.close();

            output.log("-- end");

            output.close();

            output.tabLevel = tl;
        }
 /// <summary>
 /// Describes the specified logger.
 /// </summary>
 /// <param name="logger">The logger.</param>
 public override void Describe(ILogBuilder logger)
 {
     logger.AppendPair("Blending options", options.ToString(), true, "\t\t\t");
 }
Example #15
0
 /// <summary>
 /// Describes the specified logger.
 /// </summary>
 /// <param name="logger">The logger.</param>
 public override void Describe(ILogBuilder logger)
 {
     base.Describe(logger);
     logger.AppendPair("TDP function", factor.ToString(), true, "\t\t\t");
 }
Example #16
0
 public override void Describe(ILogBuilder logger)
 {
     base.Describe(logger);
     logger.AppendPair("Landa (λ)", l.ToString("F3"), true, "\t\t\t");
 }