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

MFreidank / pysgmcmc / 284
85%
master: 90%

Build:
Build:
LAST BUILD BRANCH: pytorch-sghmchd
DEFAULT BRANCH: master
Ran 15 Nov 2017 06:49PM UTC
Jobs 1
Files 21
Run time 1s
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

pending completion
284

push

travis-ci

Moritz Freidank
add equivalent of random.choice() and indicator

This commit extends our helper functions with two new functions:
- choice(tensor) is equivalent to random.choice(list) but for tensors.
  It simply returns a randomly picked element across the first dimension.
- indicator(predicate) returns `1` iff `predicate` is `True` and `0` otherwise

724 of 825 relevant lines covered (87.76%)

0.88 hits per line

Jobs
ID Job ID Ran Files Coverage
1 284.1 15 Nov 2017 06:49PM UTC 0
87.76
Travis Job 284.1
Source Files on build 284
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #284
  • 46a5f7aa on github
  • Prev Build on nuts_sampler (#283)
  • Next Build on nuts_sampler (#285)
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

© 2026 Coveralls, Inc