• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

jakirkham / dask-distance
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: fix_license_typo
DEFAULT BRANCH: master
Repo Added 24 Sep 2017 03:15AM UTC
Files 5
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH opt_pdist_diag
branch: opt_pdist_diag
CHANGE BRANCH
x
Reset
  • opt_pdist_diag
  • add__atleast_2d
  • add__bool_dist
  • add__concatenate
  • add__pycompat
  • add_accumulate
  • add_atop_ravel
  • add_bool_dist
  • add_bool_dist_title
  • add_braycurtis
  • add_canberra
  • add_cdist
  • add_chebyshev
  • add_cityblock
  • add_compat
  • add_correlation
  • add_cosine
  • add_dice
  • add_euclidean
  • add_hamming
  • add_izip
  • add_jaccard
  • add_kulsinski
  • add_mahalanobis
  • add_minkowski
  • add_pdist
  • add_rogerstanimoto
  • add_russellrao
  • add_seuclidean
  • add_sokalmichener
  • add_sokalsneath
  • add_sqeuclidean
  • add_squareform
  • add_wminkowski
  • add_yule
  • adj_cdist_asarray
  • adj_hamming
  • adj_hamming_sum
  • broadcast_uv_wrapper
  • ci_run_flake8
  • cmp_many_bool_arrays
  • comb_bool_cmp
  • cond_def_pdist_kwargs
  • d_zeros_array_squareform
  • dist_more_metrics
  • dist_use_kwargs
  • dists_doc_more_kwargs
  • drop_broadcast_repeat
  • drop_cdist_fin_rchk
  • drop_dask_ver_chck
  • drop_dice_docs_dot
  • enforce_1d_bool_arrs
  • fix_euclidean_doc
  • fix_license_typo
  • fix_mahalanobis_doc_typo
  • fix_pdist_bug
  • fix_pdist_metric_def
  • fix_ravel_chks
  • fix_seuclidean_equ
  • fix_utils_tst_name
  • flake8_fixes
  • master
  • opt_dist_ident
  • opt_gen_pdist_diag
  • opt_gen_pdist_diag_2
  • opt_gen_pdist_diag_recrsv
  • opt_squareform
  • pdist_doc_more_kwargs
  • pdist_grp_cdist_comps
  • pdist_knwn_shape
  • pdist_norm_arr
  • pdist_store_mask
  • pdist_use_pycompat_range
  • ravel_no_concat
  • rchk_lst_z_squareform
  • ref_broadcast_uv
  • ref_math_expr
  • rename_uv_mtx
  • req_numpy_dask
  • req_scipy_tsts
  • rfrsh_dim_check
  • simp_cdist_apply
  • sp_case_ravel
  • sty_fix__cdist_apply
  • support_1pt_pdist
  • temp
  • tidy_formulae
  • tst_2d_more_shapes
  • tst_cdist_shapes
  • tst_wrong_lengths
  • tsts_w_kw
  • tweak_cdist_conv
  • tweak_tst_comp
  • use_cookiecutter
  • use_mathjax_docs
  • use_minkowski_dist_mat
  • use_rel_imp
  • v0.1.0
  • v0.2.0
  • vendor_indices
  • wrap_braycurtis_doc

pending completion
540

push

travis-ci

jakirkham
Vectorize away if-statement in pdist internal

Eliminate the `if`-statement in the `for`-loop in `pdist`'s wrapper
function. Instead make use of boolean arrays and `nonzero` to extract
the relevant indices to compute over.  Speeds up computation a bit for
the diagonal blocks where many of pairs of coordinates do not need the
metric computed.

324 of 324 relevant lines covered (100.0%)

3.98 hits per line

Relevant lines Covered
Build:
Build:
324 RELEVANT LINES 324 COVERED LINES
3.98 HITS PER LINE
Source Files on opt_pdist_diag
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
540 opt_pdist_diag Vectorize away if-statement in pdist internal Eliminate the `if`-statement in the `for`-loop in `pdist`'s wrapper function. Instead make use of boolean arrays and `nonzero` to extract the relevant indices to compute over. Speeds up computation a... push 08 Oct 2017 08:13AM UTC jakirkham travis-ci pending completion  
536 opt_pdist_diag Vectorize away for-loop in pdist internal Eliminate the `for`-loop and condition checking with `pdist`'s wrapper function. Instead make use of boolean arrays and `nonzero` to extract the relevant indices to compute over. Also make use of NumPy's ... push 08 Oct 2017 05:03AM UTC jakirkham travis-ci pending completion  
534 opt_pdist_diag Replace cdist's diagonal chunks with pdist's Instead of trying to determine at computation time whether the diagonal optimization of `pdist` is useful or not, Simply construct graphs for `cdist`, `pdist` (with the diagonal optimization), and `emp... push 08 Oct 2017 01:37AM UTC jakirkham travis-ci pending completion  
532 opt_pdist_diag Check internally for diagonal blocks in pdist Instead of performing the element-wise check in the `pdist` internal function for every chunk, first check to see if the chunk lies completely within the diagonal. Perform this check by simply looking... push 08 Oct 2017 12:43AM UTC jakirkham travis-ci pending completion  
530 opt_pdist_diag Optimize pdist's custom metrics on diagonal chunks When handling a custom metric with `pdist`, we can optimize this case further to avoid unneeded computations in chunks along the diagonal. In particular, we can keep track of the global indices c... push 08 Oct 2017 12:35AM UTC jakirkham travis-ci pending completion  
525 opt_pdist_diag Check internally for diagonal blocks in pdist Instead of performing the element-wise check in the `pdist` internal function for every chunk, first check to see if the chunk lies completely within the diagonal. Perform this check by simply looking... push 08 Oct 2017 12:09AM UTC jakirkham travis-ci pending completion  
523 opt_pdist_diag Optimize pdist's custom metrics on diagonal chunks When handling a custom metric with `pdist`, we can optimize this case further to avoid unneeded computations in chunks along the diagonal. In particular, we can keep track of the global indices c... push 07 Oct 2017 11:57PM UTC jakirkham travis-ci pending completion  
521 opt_pdist_diag Avoid an internal extra range check in pdist Since all the blocks on the wrong side of the diagonal should be dropped anyways, there is no need to avoid the element-wise check for them. So simply check which blocks are completely on the right sid... push 07 Oct 2017 11:35PM UTC jakirkham travis-ci pending completion  
519 opt_pdist_diag Check internally for diagonal blocks in pdist Instead of performing the element-wise check in the `pdist` internal function for every chunk, first check to see if the chunk lies on the diagonal. Perform this check by simply looking at the extent ... push 07 Oct 2017 11:29PM UTC jakirkham travis-ci pending completion  
517 opt_pdist_diag Optimize pdist's custom metrics on diagonal chunks When handling a custom metric with `pdist`, we can optimize this case further to avoid unneeded computations in chunks along the diagonal. In particular, we can keep track of the global indices c... push 07 Oct 2017 10:14PM UTC jakirkham travis-ci pending completion  
See All Builds (544)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc