Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

noncontiguous splits samples generator #271

Open
wants to merge 18 commits into
base: master
Choose a base branch
from

Conversation

bpinsard
Copy link

see the doc for further description
do not know if this is the optimal or recommended coding, waiting for ideas/comments.

NonContiguous(attr='time',
dist=60,
partition_keep=2,
partition_trim=1)])
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please reformat using ReST formatting, otherwise would not look good on the web. Checkout other docstrings for examples

@yarikoptic
Copy link
Member

code without unittests is broken code ;)

@coveralls
Copy link

Coverage Status

Coverage increased (+0.02%) to 78.47% when pulling d3d8076 on bpinsard:noncontiguous into 3c8d300 on PyMVPA:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.01%) to 78.47% when pulling 4c83b47 on bpinsard:noncontiguous into 3d2943d on PyMVPA:master.


class NonContiguous(Node):
"""Generator to remove samples too close as measured with a sample attribute
``` partitioner = ChainNode([NFoldPartitioner(),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We use numpy style docstrings, and run doctests which allows to assure that code we inject is correct. Ideally such a snippet should be entered in the same fashion, see various places around the code (where there is Examples in docstrings) .e.g within mvpa2/base/dataset.py

@mih mih added this to the Release 2.4 milestone May 3, 2015
@mih mih modified the milestones: Release 2.5, Release 2.4 May 20, 2015
@coveralls
Copy link

Coverage Status

Coverage increased (+0.03%) to 78.81% when pulling 9bd1ab3 on bpinsard:noncontiguous into 103ea8c on PyMVPA:master.

@yarikoptic
Copy link
Member

@bpinsard interested to work on this one a bit further? (comments were posted a bit ago)

@mih
Copy link
Member

mih commented Jan 11, 2016

So what is the state of things? Having the doc snippet as a test would be nice, but OTOH it doesn't do something real anyway. Can we merge this before the 12 months mark? ;-)

@coveralls
Copy link

coveralls commented Jul 13, 2016

Coverage Status

Coverage increased (+0.02%) to 80.028% when pulling 86268a0 on bpinsard:noncontiguous into b036f96 on PyMVPA:master.

@codecov-io
Copy link

codecov-io commented Jul 13, 2016

Current coverage is 76.41% (diff: 89.18%)

Merging #271 into master will increase coverage by <.01%

@@             master       #271   diff @@
==========================================
  Files           364        364          
  Lines         41179      41215    +36   
  Methods           0          0          
  Messages          0          0          
  Branches       6599       6592     -7   
==========================================
+ Hits          31465      31493    +28   
- Misses         7785       7792     +7   
- Partials       1929       1930     +1   

Powered by Codecov. Last update 7e9020b...49071ec

@yarikoptic yarikoptic modified the milestones: Release 2.5, Release 2.6, Release 2.6.1 Aug 23, 2016
@coveralls
Copy link

coveralls commented Jan 4, 2017

Coverage Status

Coverage increased (+0.002%) to 81.202% when pulling 49071ec on bpinsard:noncontiguous into 7e9020b on PyMVPA:master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants