ad5cab5a112c1f0cc25827f902ab26ad2b25f238,bayes_opt/bayesian_optimization.py,BayesianOptimization,initialize,#BayesianOptimization#Any#,149
Before Change
:param points_dict:
for points in zip(*(points_dict[k] for k in sorted(points_dict))):
self.y_init.append(points[0])
self.x_init.append(list(points[1:]))
def initialize_df(self, points_df):
Method to introduce point for which the target function
value is known from pandas dataframe file
After Change
self.y_init.extend(points_dict["target"])
for i in range(len(points_dict["target"])):
all_points = []
for key in self.keys:
all_points.append(points_dict[key][i])
self.x_init.append(all_points)
def initialize_df(self, points_df):
Method to introduce point for which the target function
value is known from pandas dataframe file
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: fmfn/BayesianOptimization
Commit Name: ad5cab5a112c1f0cc25827f902ab26ad2b25f238
Time: 2017-03-12
Author: aman.bhatia@outlook.com
File Name: bayes_opt/bayesian_optimization.py
Class Name: BayesianOptimization
Method Name: initialize
Project Name: scikit-learn-contrib/categorical-encoding
Commit Name: 352b7c7667f5416570a9623416ef6751ea11ab52
Time: 2019-06-13
Author: slliu96@163.com
File Name: category_encoders/hashing.py
Class Name: HashingEncoder
Method Name: transform
Project Name: kymatio/kymatio
Commit Name: 83cd239880d245c6e4eb4178839cb93385a97014
Time: 2018-11-21
Author: janden@flatironinstitute.org
File Name: scattering/scattering1d/scattering1d.py
Class Name: Scattering1D
Method Name: precompute_size_scattering