GithubHelp home page GithubHelp logo

anthrax3 / histogrammar-python Goto Github PK

View Code? Open in Web Editor NEW

This project forked from histogrammar/histogrammar-python

0.0 0.0 0.0 39.09 MB

Python implementation of Histogrammar, with embedded front-ends and back-ends.

License: Apache License 2.0

Python 97.20% GAP 1.18% C++ 1.62%

histogrammar-python's Introduction

Python implementation of Histogrammar

DOI

See histogrammar.org for a complete introduction to Histogrammar.

This is a pure Python implementation for Python versions 2.6, 2.7, and 3.4.

Installation

Histogrammar has a standard Python install script. Run

python setup.py install

with sudo if superuser permissions are needed or --home=~ to install in a home directory. The latter option requires an appropriate PYTHONPATH.

This package has no explicit dependencies, though it can use back-ends like Numpy and front-ends like Matplotlib and Bokeh if they are on your system. If not, you'll get an ImportError at the time you try to call these methods.

Status

Build status

The tests are thorough.

  • basic.py were written during development to test all features as they were added.
  • testnumpy.py tests numerical agreement between the conventional implementation and the Numpy implementation, which are very different. Also tests much larger datasets and infinity/NaN handling.
    • contrary to its name, testnumpy.py also compares its implementation with the literal code given in the specification as well.
  • testrootcling.py applies all of the Numpy tests to the ROOT/Cling implementation.
  • testgpu.py applies all of the Numpy tests to the CUDA GPU implementation.

Primitive implementation is mature. CUDA implementation has begun.

Primitive Pure Python Numpy ROOT JIT CUDA GPU
Count done done done done
Sum done done done done
Average done done done done
Deviate done done done done
Minimize done done done done
Maximize done done done done
Bag done done done impossible
Bin done done done done
SparselyBin done done done impossible
CentrallyBin done done done done
IrregularlyBin done done done done
Categorize done done done impossible
Fraction done done done done
Stack done done done done
Select done done done done
Label done done done done
UntypedLabel done done done done
Index done done done done
Branch done done done done
  • "impossible" for CUDA GPU means that the primitive requires a non-constant memory allocation (hashmaps in all three cases). There must be ways of doing this by preallocating more space than is needed, but I'm not going to get into that for this round.

histogrammar-python's People

Contributors

asvyatkovskiy avatar bwengals avatar fnands avatar jpivarski avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.