示例#1
0
        static void Main(string[] args)
        {
            RegisterServices();
            AzureWebServiceHelper aws = new AzureWebServiceHelper();
            //aws.StartVM();

            CoreFacade facade = new CoreFacade(_serviceProvider.GetService <IAlgorithmBuilder>());

            Stopwatch sw = new Stopwatch();

            sw.Start();

            //facade.CountSingleIndicatorForSingleCompanyQuotes(new TechnicalIndicatorEMA(), "zywiec");
            //facade.CountIndicatorsSetForSingleCompanyQuotes("zywiec");

            //facade.CountSingleIndicatorForAllCompaniesQuotes(new TechnicalIndicatorEMA());
            facade.CountIndicatorsSetForAllCompaniesQuotes();

            //facade.CountSingleIndicatorForAllCompaniesQuotesFullParallelVersion(new TechnicalIndicatorEMA());
            //facade.CountIndicatorsSetForAllCompaniesQuotesFullParallelVersion();

            facade.Dispose();
            sw.Stop();

            //aws.StopVM();
            DisposeServices();

            Console.WriteLine("Execution time: " + sw.Elapsed);
            Console.ReadLine();
        }
示例#2
0
        private static void MainTraitement(bool includeDay, bool includeWeek, bool includeMonth)
        {
            _includeDay   = includeDay;
            _includeMonth = includeMonth;
            _includeWeek  = includeWeek;
            var coreFacde = new CoreFacade(includeDay, includeMonth, includeWeek, _mlContext, _trainData, _testData, _datePrediction);

            _predictedCombinaison = coreFacde.PredictCombinaison();

            Console.WriteLine(
                $"Predicted combinaison is {_predictedCombinaison.Column1}, {_predictedCombinaison.Column2}, {_predictedCombinaison.Column3}, {_predictedCombinaison.Column4}, {_predictedCombinaison.Column5}, {_predictedCombinaison.Column6}, Bonus {_predictedCombinaison.Bonus}");
        }
示例#3
0
 protected CoreFacade getInstance()
 {
     return(CoreFacade.getInstance());
 }