93663c2cc8c0c8bc3c6f28c27679707305948c80,tests/test_texture.py,,test_cooccurence,#,4
Before Change
res[:3,:3] = 0
assert not np.any(res)
res = np.zeros((5,5), np.long)
cooccurence(f, res, 1)
assert res[0,0] == 1
assert res[0,1] == 0
assert res[0,2] == 2
After Change
assert np.all(mahotas.texture.cooccurence(f, 0) == brute_force(f, 0, 1))
assert np.all(mahotas.texture.cooccurence(f, 1) == brute_force(f, 1, 1))
assert np.all(mahotas.texture.cooccurence(f, 2) == brute_force(f, 1, 0))
assert np.all(mahotas.texture.cooccurence(f, 3) == brute_force(f, 1, -1))
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: luispedro/mahotas
Commit Name: 93663c2cc8c0c8bc3c6f28c27679707305948c80
Time: 2010-05-11
Author: lpc@cmu.edu
File Name: tests/test_texture.py
Class Name:
Method Name: test_cooccurence
Project Name: ilastik/ilastik
Commit Name: c032ae3c65063b1abc9fe50dfa520c7bcfc2deb6
Time: 2016-01-13
Author: bergs@janelia.hhmi.org
File Name: tests/test_applets/featureSelection/testFeatureSelectionSerializer.py
Class Name: TestFeatureSelectionSerializer
Method Name: test
Project Name: reinforceio/tensorforce
Commit Name: 9e6b42b7f7bb5fe088637512a910e56fbf2f733b
Time: 2019-02-04
Author: alexkuhnle@t-online.de
File Name: tensorforce/contrib/game_2048.py
Class Name: Game2048
Method Name: __init__