Skip to content

Commit

Permalink
Update multi_objective_example.ipynb
Browse files Browse the repository at this point in the history
  • Loading branch information
pjuangph committed Oct 19, 2023
1 parent 3c3c998 commit 31cc56b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/kur/multi_objective_example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@
"\n",
"best_individuals, best_fronts = get_pop_best(individuals)\n",
"# pop size is the size of population to keep track of when applying non-dimensional sorting. Larger the size = greater the slow down\n",
"objectives, pop, best_fronts = get_best(individuals,pop_size=30) \n",
"objectives, populations, best_fronts = get_best(individuals,pop_size=30) \n",
"print(objectives.shape)"
]
},
Expand Down Expand Up @@ -718,7 +718,7 @@
},
"outputs": [],
"source": [
"best_fronts = [front for _,front in sorted(zip(pop,best_fronts))] # dictionary keys aren't sorted. this cleans up some stuff. \n",
"best_fronts = [front for _,front in sorted(zip(populations,best_fronts))] # dictionary keys aren't sorted. this cleans up some stuff. \n",
"pop = sorted(pop)\n",
"\n",
"fig,ax = plt.subplots(figsize=(10,8))\n",
Expand Down

0 comments on commit 31cc56b

Please sign in to comment.