Comments (2)
fixed https://github.com/alphatwirl/alphatwirl/commits/8bfcf73ea5e1bdaf72058c2c1ec50d55380a7432
In [1]: from alphatwirl.binning import RoundLog
In [2]: b = RoundLog(0.2, 100, min=10, underflow_bin=0)
In [3]: b(10)
Out[3]: 6.309573444801936
In [4]: b(8)
Out[4]: 6.309573444801936
In [5]: b(6.2)
Out[5]: 0
In [6]:
- The
min
is now not the minimum value itself. Themin
makes the bin that themin
belongs the minimum bin. - In the above example,
8
is less than10
but belongs to the bin that10
belongs.
from alphatwirl.
look better now
results = qtwirl(
file=filepath, tree_name='tree',
reader_cfg=dict(keyAttrNames='met', binnings=RoundLog(0.2, 100, min=10, underflow_bin=0)))
print results
met | n | nvar |
---|---|---|
0.000000 | 72 | 72 |
6.309573 | 30 | 30 |
10.000000 | 53 | 53 |
15.848932 | 77 | 77 |
25.118864 | 100 | 100 |
39.810717 | 141 | 141 |
63.095734 | 153 | 153 |
100.000000 | 166 | 166 |
158.489319 | 114 | 114 |
251.188643 | 78 | 78 |
398.107171 | 14 | 14 |
630.957344 | 2 | 2 |
1000.000000 | 0 | 0 |
from alphatwirl.
Related Issues (20)
- handle TChain with no files HOT 1
- fix Read the Docs HOT 1
- RuntimeWarning in travis
- rename valOutColumnNames HOT 2
- develop progress presentation for jupyter notebook HOT 5
- fix travis for python 2.7 with ROOT HOT 11
- avoid mutable default HOT 1
- support the "with" statement for using "concurrently"
- support decorator for using "concurrently"
- allow elements of the option binnings of KeyValueComposer to be None
- ValueError with duplicate datasets HOT 4
- add unit tests to test if receive_one() in TaskPackageDropbox unpickles one result
- HTCondorJobSubmitter crashes if problem submitting HOT 1
- correct module names for multiple _deprecated_class_method_option
- "can't pickle _thread.lock" in ResumableDatasetLoop with SubprocessRunner in Python 3 HOT 1
- update tests for TaskPackageDropbox
- make simple_repr work HOT 1
- enable coverage in Travis-CI HOT 1
- ROOT is not imported in Travis HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from alphatwirl.