0d2248d0ad58a53b148b9070f5a7deeead1d4b8e,Python/phate/plot.py,,_auto_params,#Any#Any#Any#Any#Any#,38
Before Change
if discrete:
c, labels = pd.factorize(c)
if cmap is None and len(np.unique(c)) <= 10:
c = mpl.cm.tab10(np.linspace(0, 1, 10))[c]
cmap = None
else:
cmap = "tab20"
After Change
if c is not None:
if discrete is None:
// guess
if not np.all([isinstance(x, numbers.Number) for x in c]):
discrete = True
else:
discrete = len(np.unique(c)) <= 20
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: KrishnaswamyLab/PHATE
Commit Name: 0d2248d0ad58a53b148b9070f5a7deeead1d4b8e
Time: 2018-06-25
Author: scottgigante@gmail.com
File Name: Python/phate/plot.py
Class Name:
Method Name: _auto_params
Project Name: SheffieldML/GPy
Commit Name: 1a135ca9f7d98f63a3183895f27021308da4d9be
Time: 2013-01-11
Author: james.hensman@gmail.com
File Name: grid_parameters.py
Class Name:
Method Name:
Project Name: scikit-optimize/scikit-optimize
Commit Name: b8f10b387de929bcb250e4750064355e50b44317
Time: 2016-04-18
Author: manojkumarsivaraj334@gmail.com
File Name: examples/plot_gp_minimize_1d.py
Class Name:
Method Name: