Exemple #1
0
            internal Result(IExceptionContext ectx, IRow overallResult)
            {
                double Fetch(string name) => RowCursorUtils.Fetch <double>(ectx, overallResult, name);

                L1       = Fetch(RegressionEvaluator.L1);
                L2       = Fetch(RegressionEvaluator.L2);
                Rms      = Fetch(RegressionEvaluator.Rms);
                LossFn   = Fetch(RegressionEvaluator.Loss);
                RSquared = Fetch(RegressionEvaluator.RSquared);
            }
            internal Result(IExceptionContext ectx, IRow overallResult, bool calculateDbi)
            {
                double Fetch(string name) => RowCursorUtils.Fetch <double>(ectx, overallResult, name);

                Nmi         = Fetch(ClusteringEvaluator.Nmi);
                AvgMinScore = Fetch(ClusteringEvaluator.AvgMinScore);

                if (calculateDbi)
                {
                    Dbi = Fetch(ClusteringEvaluator.Dbi);
                }
            }