Exemple #1
0
        private static PurposePrediction GetLocalModelPrediction(string purposeOfIntervention)
        {
            Supervised purpose = new Supervised()
            {
                PurposeOfTransaction = purposeOfIntervention
            };

            var prediction = predictionEngine.Predict(purpose);

            return(prediction);
        }
Exemple #2
0
        private static FileAnalysisResult AnalyzeFile(string file, IReadOnlyDictionary <string, InvestmentActivity> alteryxInvestmentSet,
                                                      IReadOnlyDictionary <string, int> supervised, InvestorHashTableSet investors)
        {
            InvestmentActivity investmentActivity = EdgarAnalyzer.Analyze(file);
            Supervised         trainingDatum      = null;

            Helper.MergeAccession(investmentActivity, alteryxInvestmentSet);

            AddFundAndFirmType(investmentActivity, investors);

            if (supervised.TryGetValue(investmentActivity.AccessionNumber, out var typeId))
            {
                trainingDatum = new Supervised(investmentActivity.AccessionNumber, investmentActivity.PurposeOfTransaction, typeId, investmentActivity.TypeOfReportingPerson);
                investmentActivity.PurposeAnalyzedByML        = false;
                investmentActivity.PurposeOfTransactionTypeId = typeId;
            }

            return(new FileAnalysisResult()
            {
                Investment = investmentActivity, Supervised = trainingDatum
            });
        }