31bdaa5cd6cc2d42bc2fba71995c83d3e4cab8e5,mloop/visualizations.py,ControllerVisualizer,plot_parameters_vs_cost,#ControllerVisualizer#,225
Before Change
"""
Create a plot of the parameters versus run number.
"""
if self.num_in_costs != self.num_out_params:
self.log.warning("Unable to plot parameters vs costs, unequal number. in_costs:" + repr(self.num_in_costs) + " out_params:" + repr(self.num_out_params))
return
global figure_counter, run_label, run_label, scale_param_label, legend_loc
figure_counter += 1
plt.figure(figure_counter)
if self.finite_flag:
for ind in range(self.num_params):
plt.plot(self.scaled_params[:,ind ],self.in_costs + self.in_uncers,"_",color=self.param_colors[ind])
plt.plot(self.scaled_params[:,ind],self.in_costs - self.in_uncers,"_",color=self.param_colors[ind])
plt.plot(self.scaled_params[:,ind],self.in_costs,"o",color=self.param_colors[ind])
plt.xlabel(scale_param_label)
After Change
for ind in range(self.num_params):
plt.plot(out_params[:,ind], in_costs + in_uncers,"_",color=self.param_colors[ind])
plt.plot(out_params[:,ind], in_costs - in_uncers,"_",color=self.param_colors[ind])
plt.plot(out_params[:,ind ], in_costs,"o",color=self.param_colors[ind])
plt.xlabel(run_label)
plt.ylabel(cost_label)
plt.title("Controller: Cost vs parameters.")
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 5
Instances Project Name: michaelhush/M-LOOP
Commit Name: 31bdaa5cd6cc2d42bc2fba71995c83d3e4cab8e5
Time: 2020-06-11
Author: zakven@mit.edu
File Name: mloop/visualizations.py
Class Name: ControllerVisualizer
Method Name: plot_parameters_vs_cost
Project Name: pymc-devs/pymc3
Commit Name: 9805354d3351e29731f07cf0ce2389db063b3de7
Time: 2013-03-15
Author: jsalvatier@gmail.com
File Name: pymc/tuning/starting.py
Class Name:
Method Name: find_MAP
Project Name: probcomp/bayeslite
Commit Name: 80698d7d0b5950c5a69319134a7b94d2b58cd764
Time: 2016-06-27
Author: riastradh+probcomp@csail.mit.edu
File Name: src/bql.py
Class Name:
Method Name: execute_phrase
Project Name: brian-team/brian2
Commit Name: d7d7c84f7750b95fad039bd8dcd14c26b0a115e6
Time: 2013-08-30
Author: o9UaUryywz
File Name: dev/ideas/devices/cpp_standalone.py
Class Name:
Method Name: freeze