def test_fast__visualizations(): def get_X(): return np.random.rand(1, 28, 28, 3) ivis.project(get_X()) ivis.heatmap(get_X()) ivis.graymap(get_X()) ivis.gamma(get_X()) ivis.clip_quantile(get_X(), 0.95)
def bk_proj(X): X = ivis.clip_quantile(X, 1) return ivis.project(X)
def to_heatmap(saliency): return ivis.heatmap(np.abs(ivis.clip_quantile(saliency.copy(), 0.5)))