Fix ImageHelper not rendering images due to issue in PointMapping.
Some checks failed
Build .NET Project / build (push) Has been cancelled
Some checks failed
Build .NET Project / build (push) Has been cancelled
This commit is contained in:
@@ -8,6 +8,7 @@ using MarketData;
|
||||
using MarketData.Configuration;
|
||||
using System.Diagnostics;
|
||||
using System.Net.Http.Headers;
|
||||
using MarketData.CNNProcessing;
|
||||
|
||||
|
||||
namespace MarketDataUnitTests;
|
||||
@@ -145,6 +146,26 @@ public class MarketDataUnitTestClass
|
||||
Assert.IsTrue(null != prices, "No Price from DailyPricesYahoo");
|
||||
}
|
||||
|
||||
// [TestMethod]
|
||||
// public void CNNPredictionTest()
|
||||
// {
|
||||
// String cnnHostName = "10.0.0.240";
|
||||
// CMCandidate cmCandidate = new CMCandidate();
|
||||
// CMParams cmParams = new CMParams();
|
||||
|
||||
// cmParams.UseCNN = true;
|
||||
// cmParams.UseCNNHost = "http://" + cnnHostName + ":5000";
|
||||
// cmParams.UseCNNDayCount = 270;
|
||||
// cmParams.UseCNNRewardPercentDecimal = 0.25;
|
||||
|
||||
// cmCandidate.Symbol = "MIDD";
|
||||
// cmCandidate.TradeDate = DateTime.Parse("07-01-2024");
|
||||
|
||||
// bool result = CMMomentumGenerator.PredictCandidate(cmCandidate, cmParams);
|
||||
|
||||
// Assert.IsTrue(result);
|
||||
// }
|
||||
|
||||
[TestMethod]
|
||||
public void CNNPredictionTest()
|
||||
{
|
||||
@@ -154,7 +175,7 @@ public class MarketDataUnitTestClass
|
||||
|
||||
cmParams.UseCNN = true;
|
||||
cmParams.UseCNNHost = "http://" + cnnHostName + ":5000";
|
||||
cmParams.UseCNNDayCount = 270;
|
||||
cmParams.UseCNNDayCount = 90;
|
||||
cmParams.UseCNNRewardPercentDecimal = 0.25;
|
||||
|
||||
cmCandidate.Symbol = "MIDD";
|
||||
@@ -163,7 +184,59 @@ public class MarketDataUnitTestClass
|
||||
bool result = CMMomentumGenerator.PredictCandidate(cmCandidate, cmParams);
|
||||
|
||||
Assert.IsTrue(result);
|
||||
}
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void CNNGenerateOutputFileVIX()
|
||||
{
|
||||
DataProcessor dataProcessor=new DataProcessor();
|
||||
int imageDimensions=224;
|
||||
dataProcessor.Width=imageDimensions;
|
||||
dataProcessor.Height=imageDimensions;
|
||||
dataProcessor.PenWidth=1;
|
||||
|
||||
String cnnHostName = "10.0.0.240";
|
||||
CMCandidate cmCandidate = new CMCandidate();
|
||||
CMParams cmParams = new CMParams();
|
||||
|
||||
cmParams.UseCNN = true;
|
||||
cmParams.UseCNNHost = "http://" + cnnHostName + ":5000";
|
||||
cmParams.UseCNNDayCount = 90;
|
||||
cmParams.UseCNNRewardPercentDecimal = 0.25;
|
||||
|
||||
cmCandidate.Symbol = "MIDD";
|
||||
cmCandidate.TradeDate = DateTime.Parse("07-01-2024");
|
||||
|
||||
TestCase testCase=new TestCase(cmCandidate.Symbol,cmCandidate.TradeDate,cmParams.UseCNNDayCount,TestCase.CaseType.Test,TestCase.GenerateType.BollingerBandWithVIX,TestCase.OutputType.OutputFile);
|
||||
dataProcessor.ProcessData(testCase);
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void CNNGenerateOutputFileBand()
|
||||
{
|
||||
DataProcessor dataProcessor=new DataProcessor();
|
||||
int imageDimensions=224;
|
||||
dataProcessor.Width=imageDimensions;
|
||||
dataProcessor.Height=imageDimensions;
|
||||
dataProcessor.PenWidth=1;
|
||||
|
||||
String cnnHostName = "10.0.0.240";
|
||||
CMCandidate cmCandidate = new CMCandidate();
|
||||
CMParams cmParams = new CMParams();
|
||||
|
||||
cmParams.UseCNN = true;
|
||||
cmParams.UseCNNHost = "http://" + cnnHostName + ":5000";
|
||||
cmParams.UseCNNDayCount = 90;
|
||||
cmParams.UseCNNRewardPercentDecimal = 0.25;
|
||||
|
||||
cmCandidate.Symbol = "MIDD";
|
||||
cmCandidate.TradeDate = DateTime.Parse("07-01-2024");
|
||||
|
||||
TestCase testCase=new TestCase(cmCandidate.Symbol,cmCandidate.TradeDate,cmParams.UseCNNDayCount,TestCase.CaseType.Test,TestCase.GenerateType.BollingerBand,TestCase.OutputType.OutputFile);
|
||||
dataProcessor.ProcessData(testCase);
|
||||
}
|
||||
|
||||
|
||||
|
||||
[TestMethod]
|
||||
public void PremarketRetrieval()
|
||||
|
||||
Reference in New Issue
Block a user