0d2248d0ad58a53b148b9070f5a7deeead1d4b8e,Python/phate/plot.py,,_auto_params,#,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: 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:
Project Name: librosa/librosa
Commit Name: 2bae518e899657e536572fa59df6e1587795e397
Time: 2014-12-30
Author: brian.mcfee@nyu.edu
File Name: librosa/feature.py
Class Name:
Method Name: line_features