Loading Bayes Object Can't Find Objective Function
2 views (last 30 days)
Show older comments
Hello!
When I save my results of my bayesian optimization workspace, it saves the Bayes Object as a 1x1 BayesianOptimization. However, when I load that object again and attempt to resume it for more training, I get an error. When I look inside of my Bayes Object, I find it lists the ObjectiveFcn as @UNKNOWN Function.
I re-created the objective function in the code, and then tried to feed it in again as shown below, only to get the error message on the bottom line.
>> ObjFcn = bayesNetmakeObjFcn(Training_Data,test,test_truth_cat);
>> BayesObject.ObjectiveFcn = ObjFcn;
You cannot set the read-only property 'ObjectiveFcn' of BayesianOptimization.
Is there a way I can get my BayesObject to pick the objective function back up again so I can resume?
0 Comments
Answers (0)
See Also
Categories
Find more on Naive Bayes in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!