Skip to content
Snippets Groups Projects
Commit 25046e31 authored by Radek Puš's avatar Radek Puš
Browse files

fix: amount prediction - not-repetitive transaction has not been filtered out

parent a9c0b69a
No related branches found
No related tags found
No related merge requests found
......@@ -44,7 +44,7 @@ namespace Core.Controllers.containers
});
}
 
FillAmountPredictionLists(amountPrediction);
FillAmountPredictionLists(amountPrediction.Where(x => x.Item3).ToList());
 
this.neuralPrediction = neuralPrediction;
this.neuralPrediction.ForEach(c => c.sizeType = GetTransactionTypesName(Math.Abs(c.amount)));
......@@ -65,7 +65,6 @@ namespace Core.Controllers.containers
amountPredictionSizeTypes = MakeSizeTypesList(amountPrediction);
 
amountPredictionList = amountPrediction
.Where(x => x.Item3)
.Select(x => new TransactionContainer()
{
amount = x.Item1,
......@@ -73,7 +72,6 @@ namespace Core.Controllers.containers
}).ToList();
 
amountPredictionKinds = amountPrediction
.Where(t => t.Item3)
.GroupBy(t => t.Item2)
.Select(g => new TransactionContainer()
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment