Xerus icon indicating copy to clipboard operation
Xerus copied to clipboard

Black box optimizer

Open dbrkz opened this issue 1 year ago • 0 comments

Hi when running Examples notebook, I encounter such issue when getting to optimization step (both on Windows and Mac):

mixture.run_optimizer(n_trials = 200, # How many runs to try

                  n_startup = 20, # How many trials to start the search with

                  allow_pref_orient = True, # To allow pref orietnation to be refined

                  allow_atomic_params = True, # Allows atomic paramaters (X, U) to be considered

                  allow_broad = True, # Allow broadenign terms (Check GSAS II doc.) (test)

                  allow_strain = True, # Allow strain terms (test)

                  allow_angle = True, # To allow acute angle refinement first.

                  force_ori = False, # To always consider pref. orientation

                  verbose = 'silent', # Verbose

                  param = 'rwp', # Objetive goal

                  n_jobs = -1, # Number of cores to use

                  plot_best = True, # plot best result after opt.

                  show_lattice = True, # Prints obtained lattice parameters

                  random_state = 71, # Random state

                 )

[W 2023-06-26 21:38:25,378] Trial 5 failed because of the following error: AttributeError("Can't pickle local object 'BlackboxOptimizer.objective_mp..evaluate'") Traceback (most recent call last):

dbrkz avatar Jun 26 '23 19:06 dbrkz