- ago
If I use the finatic.Optimizers SMAC optimization method then an exception is showing up in the Log Viewer. The source of the exception is showing as nothing, but it seems it is the SMAC optimizer that is causing the exception. I did several SMAC optimization runs (and not do anything else while they were running) and got the following exception to occur each time:

12/11/2022 16:54:00:008
SMAC
Requested 500 iterations, executed 501 backtests in 00:01:20.1574133 on 32 processors
min.duration: 00:00:00.4533007, avg.duration: 00:00:01.9230000, max.duration: 00:00:03.2999741

--------
12/11/2022 16:54:00:394

Error populating Optimization Visualizer: Could not find a part of the path 'C:\temp\ParameterImportance.csv'.
DirectoryNotFoundException
Could not find a part of the path 'C:\temp\ParameterImportance.csv'.
at Microsoft.Win32.SafeHandles.SafeFileHandle.CreateFile(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options)
at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
at System.IO.StreamWriter.ValidateArgsAndOpenPath(String path, Boolean append, Encoding encoding, Int32 bufferSize)
at System.IO.StreamWriter..ctor(String path)
at Optimizer.ParameterImportance.RedrawChart()
at Optimizer.ParameterImportance.Populate(StrategyOptimizer stratOpt)
at TestsTest.PatchSpecification(Object , StrategyOptimizer , TestsTest )
at WealthLab8.ucOptimization.CountInterpreter()
--------

I'm guessing C:\Temp is hardcoded somewhere. My TEMP environment variable is not set to C:\Temp.

The WL8 built-in Exhausitive optimization method, on the same strategy, does not cause an exception.

Wealth Lab build is 24.
finatics.Optimizers build is 2 (for WL8)
0
353
Solved
3 Replies

Reply

Bookmark

Sort
- ago
#1
QUOTE:
I'm guessing C:\Temp is hardcoded somewhere. My TEMP environment variable is not set to C:\Temp.

I agree, the WL code should be using the TEMP environmental variable by default.

Interesting. My TEMP and TMP environmental variables aren't set that way either. (I didn't know that.)
CODE:
SystemDrive=C: SystemRoot=C:\Windows TEMP=C:\Users\mehl\AppData\Local\Temp TMP=C:\Users\mehl\AppData\Local\Temp
0
Glitch8
 ( 8.38% )
- ago
#2
This is not the WL code, it’s something that the optimizer code is doing.
0
- ago
#3
Yes. This build of finantic.Optimizers has a hardcoded path C:\temp used for some temporary files.
Please create this folder as a temporary worksround and the exception will go away. We'll rectify things in a future build.
2
Best Answer

Reply

Bookmark

Sort