Skip to content
This repository has been archived by the owner on May 11, 2023. It is now read-only.

Commit

Permalink
Paths handling correction after porting to .NET Core 3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
okozelsk committed Sep 19, 2020
1 parent 5b1b2ba commit 3db6361
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Demo/DemoConsoleApp/Examples/ExampleBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ protected void VerifyStateMachine(StateMachine stateMachine, string verification
//Check NeuralPreprocessor is configured
if (stateMachine.Config.NeuralPreprocessorCfg == null)
{
throw new InvalidOperationException($"Can't train StateMachine. Neural preprocessor has to be configured.");
throw new InvalidOperationException($"Can't verify StateMachine. Neural preprocessor has to be configured.");
}
//Load csv data
CsvDataHolder verificationCsvData = new CsvDataHolder(verificationDataFileName);
Expand Down
6 changes: 3 additions & 3 deletions Demo/DemoConsoleApp/Examples/TTOOForecastFromScratch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ public void Run()
{
//Create Examples directory
var binDir = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location);
var examplesDir = Path.Combine(binDir, "./Examples");
var examplesDir = Path.Combine(binDir, "Examples");
Directory.CreateDirectory(examplesDir);

//Create StateMachine configuration
Expand Down Expand Up @@ -327,11 +327,11 @@ public void Run()
//StateMachine instance
StateMachine stateMachine = new StateMachine(stateMachineCfg);
//StateMachine training
TrainStateMachine(stateMachine, "./Data/TTOO.csv", out double[] predictionInputVector);
TrainStateMachine(stateMachine, Path.Combine(binDir, "Data", "TTOO.csv"), out double[] predictionInputVector);


//Serialize StateMachine
string serializationFileName = Path.Combine(examplesDir, "/TTOOForecastFromScratchSM.dat");
string serializationFileName = Path.Combine(examplesDir, "TTOOForecastFromScratchSM.dat");
stateMachine.SaveToFile(serializationFileName);

//Forecast
Expand Down
8 changes: 4 additions & 4 deletions NET.sln
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,16 @@ Global
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{D18DB05D-F4C4-4388-846A-52BA4B3722D1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D18DB05D-F4C4-4388-846A-52BA4B3722D1}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D18DB05D-F4C4-4388-846A-52BA4B3722D1}.Debug|x64.ActiveCfg = Debug|x64
{D18DB05D-F4C4-4388-846A-52BA4B3722D1}.Debug|x64.Build.0 = Debug|x64
{D18DB05D-F4C4-4388-846A-52BA4B3722D1}.Debug|x64.ActiveCfg = Debug|Any CPU
{D18DB05D-F4C4-4388-846A-52BA4B3722D1}.Debug|x64.Build.0 = Debug|Any CPU
{D18DB05D-F4C4-4388-846A-52BA4B3722D1}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D18DB05D-F4C4-4388-846A-52BA4B3722D1}.Release|Any CPU.Build.0 = Release|Any CPU
{D18DB05D-F4C4-4388-846A-52BA4B3722D1}.Release|x64.ActiveCfg = Release|Any CPU
{D18DB05D-F4C4-4388-846A-52BA4B3722D1}.Release|x64.Build.0 = Release|Any CPU
{7F44508E-0B06-4652-9631-4740EA97EFE1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{7F44508E-0B06-4652-9631-4740EA97EFE1}.Debug|Any CPU.Build.0 = Debug|Any CPU
{7F44508E-0B06-4652-9631-4740EA97EFE1}.Debug|x64.ActiveCfg = Debug|x64
{7F44508E-0B06-4652-9631-4740EA97EFE1}.Debug|x64.Build.0 = Debug|x64
{7F44508E-0B06-4652-9631-4740EA97EFE1}.Debug|x64.ActiveCfg = Debug|Any CPU
{7F44508E-0B06-4652-9631-4740EA97EFE1}.Debug|x64.Build.0 = Debug|Any CPU
{7F44508E-0B06-4652-9631-4740EA97EFE1}.Release|Any CPU.ActiveCfg = Release|Any CPU
{7F44508E-0B06-4652-9631-4740EA97EFE1}.Release|Any CPU.Build.0 = Release|Any CPU
{7F44508E-0B06-4652-9631-4740EA97EFE1}.Release|x64.ActiveCfg = Release|Any CPU
Expand Down

0 comments on commit 3db6361

Please sign in to comment.