new public static ModelEvaluatorGaussian GetInstance(string nameAndParameters, ModelScorer scorer) { IDistributionSingleVariable nullDistn = DistributionGaussianConditional.GetSingleVariableInstance(nameAndParameters); DistributionGaussianConditional altDistn = DistributionGaussianConditional.GetInstance(nameAndParameters); return(new ModelEvaluatorGaussian(SpecialFunctions.CreateSingletonList(nullDistn), altDistn, scorer)); }
public static EvaluationResultsGaussian GetInstance(ModelEvaluator modelEval, Score nullScore, Score altScore, int predNonMissing, int targNonMissing, int globalNonMissing, int chiSquareDegreesOfFreedom) { List <Score> singletonList = SpecialFunctions.CreateSingletonList(nullScore); return(new EvaluationResultsGaussian(modelEval, singletonList, altScore, predNonMissing, targNonMissing, globalNonMissing, chiSquareDegreesOfFreedom)); }
protected ModelEvaluatorDiscreteConditional( DistributionDiscreteSingleVariable nullDistn, DistributionDiscreteConditional conditionalDistn, ModelScorer scorer, bool includePredictorInScore) : base(SpecialFunctions.CreateSingletonList <IDistributionSingleVariable>(nullDistn), conditionalDistn, scorer) { _includePredictorInScore = includePredictorInScore; }
public static MessageInitializerDiscrete GetInstance( Converter <Leaf, SufficientStatistics> predictorClassFunction, Converter <Leaf, SufficientStatistics> targetClassFunction, DistributionDiscrete discreteDistribution, OptimizationParameterList initParams, IEnumerable <Leaf> fullLeafCollection) { return(new MessageInitializerDiscrete(SpecialFunctions.CreateSingletonList(predictorClassFunction), targetClassFunction, discreteDistribution, null, initParams, fullLeafCollection)); }
protected MessageInitializerGaussian( Converter <Leaf, SufficientStatistics> predictorClassFunction, Converter <Leaf, SufficientStatistics> targetClassFunction, DistributionGaussianConditional gaussianDistribution, IEnumerable <Leaf> fullLeafList) : base(SpecialFunctions.CreateSingletonList(predictorClassFunction), targetClassFunction, gaussianDistribution, fullLeafList) { _allVarianceZero = AllVarianceZero(fullLeafList, targetClassFunction); }
///// <summary> ///// ///// </summary> ///// <returns>bool indicating successful tabulate. False indicates the audit failed, in which case the outputFileName will be used ///// to create a skip file.</returns> //public static bool CreateTabulateReport(DirectoryInfo dirinfo, ICollection<string> inputFilePatternCollection, string outputFileName, // KeepTest<Dictionary<string, string>> globalKeepTest, double maxPValue, bool auditRowIndexValues, bool useStoreyTibsharaniMethod) //{ // return CreateTabulateReport(dirinfo, inputFilePatternCollection, outputFileName, globalKeepTest, new List<KeepTest<Dictionary<string,string>>>(), // maxPValue, auditRowIndexValues, useStoreyTibsharaniMethod); //} public static bool CreateTabulateReport(DirectoryInfo dirinfo, string inputFilePattern, string outputFileName, KeepTest <Dictionary <string, string> > globalKeepTest, List <KeepTest <Dictionary <string, string> > > splitKeepTestList, double maxPValue, bool auditRowIndexValues, bool useStoreyTibsharaniMethod) { return(CreateTabulateReport(dirinfo, SpecialFunctions.CreateSingletonList(inputFilePattern), outputFileName, globalKeepTest, splitKeepTestList, maxPValue, auditRowIndexValues, useStoreyTibsharaniMethod)); }
public static void MergeFilesUsedToTabulate(DirectoryInfo dirinfo, string inputFilePattern, string outputFileName, bool printProgress) { MergeFilesUsedToTabulate(dirinfo, SpecialFunctions.CreateSingletonList(inputFilePattern), outputFileName, printProgress); }
public static EvaluationResultsDiscrete GetInstance(ModelEvaluator modelEval, Score nullScore, Score altScore, int[] fisherCounts, int chiSquareDegreesOfFreedom) { List <Score> singletonList = SpecialFunctions.CreateSingletonList(nullScore); return(new EvaluationResultsDiscrete(modelEval, singletonList, altScore, fisherCounts, chiSquareDegreesOfFreedom)); }
protected ModelEvaluatorDiscreteFisher(IEnumerable <Leaf> fullLeafCollection) : base(SpecialFunctions.CreateSingletonList <IDistributionSingleVariable>(DistributionDiscreteSingleVariable.GetInstance()), null, null) // null model is a hack to avoid null exceptions at load time. { _fullLeafCollection = fullLeafCollection; }