3df28dc6f0bb0704febd6bd1467bb728f4fbe771,cellprofiler/modules/measuretexture.py,MeasureTexture,run_one,#MeasureTexture#Any#Any#Any#Any#,490
Before Change
label_data[labels == label] = pixel_data[labels == label]
try:
features[:, :, index ] = mahotas.features.haralick(
label_data, distance=scale, ignore_zeros=True
)
except ValueError:
After Change
pixel_data = skimage.exposure.rescale_intensity(pixel_data,out_range=(0,gray_levels-1)).astype(numpy.uint8)
props = skimage.measure.regionprops(labels, pixel_data)
per_label = [self.run_mahotas(prop, scale, n_directions) for prop in props]
features = dask.compute(per_label, scheduler="threads")
features = numpy.array(features)[0].transpose(1,2,0)
for direction, direction_features in enumerate(features):
for feature_name, feature in zip(F_HARALICK, direction_features):
In pattern: SUPERPATTERN
Frequency: 6
Non-data size: 3
Instances Project Name: CellProfiler/CellProfiler
Commit Name: 3df28dc6f0bb0704febd6bd1467bb728f4fbe771
Time: 2020-08-13
Author: beth.cimini@gmail.com
File Name: cellprofiler/modules/measuretexture.py
Class Name: MeasureTexture
Method Name: run_one
Project Name: apache/incubator-tvm
Commit Name: f0979e4207d8e61c470f86f7ee0137402330b650
Time: 2020-11-06
Author: gladkova@lab126.com
File Name: python/tvm/topi/cuda/conv1d_transpose_ncw.py
Class Name:
Method Name: conv1d_transpose_ncw
Project Name: dask/dask-ml
Commit Name: a770dbd27f41d90205bf69d2cd86991d6f887e90
Time: 2020-05-28
Author: stsievert@users.noreply.github.com
File Name: tests/model_selection/test_incremental.py
Class Name:
Method Name: _test_search_basic
Project Name: dask/dask-ml
Commit Name: a770dbd27f41d90205bf69d2cd86991d6f887e90
Time: 2020-05-28
Author: stsievert@users.noreply.github.com
File Name: tests/model_selection/test_incremental.py
Class Name:
Method Name: test_basic
Project Name: dask/dask-ml
Commit Name: 003513537c43297079897a3c03d73530a4a962fc
Time: 2018-03-26
Author: tom.w.augspurger@gmail.com
File Name: dask_ml/cluster/spectral.py
Class Name: SpectralClustering
Method Name: fit
Project Name: dask/dask-ml
Commit Name: bfe232473eba21df382264c70681d24b49528775
Time: 2019-03-01
Author: dev@stsievert.com
File Name: tests/test_incremental.py
Class Name:
Method Name: test_incremental_basic