معرفی شرکت ها


c-sghmc-0.0.1


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

A C++ extension for SGHMC
ویژگی مقدار
سیستم عامل -
نام فایل c-sghmc-0.0.1
نام c-sghmc
نسخه کتابخانه 0.0.1
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Artem Streltsov
ایمیل نویسنده artem.streltsov@duke.edu
آدرس صفحه اصلی https://github.com/astr93/c_sghmc
آدرس اینترنتی https://pypi.org/project/c-sghmc/
مجوز -
C-SGHMC ======================= This is a repository created as part of a statistical computation project at Duke University. The code to be found here is a C++ implementation of SGHMC algorithm wrapped for Python using pybind11. It is further used to verify the results in the original paper on SGHMC: "Stochastic Gradient Hamiltonian Monte Carlo" by Tianqi Chen, Emily B. Fox and Carlos Guestrin. As seen from our project this is a **15-time-efficiency-improvement** in terms of runtime over the pure python version. Main files ======================= - **sghmcwrap.cpp** is the original sghmc algo in C++ wrapped for Python - **c_sghmc.py** calls and decorates the above extension and tests on an example from the original paper Packages required to run the code ======================= - The implementation makes use of **Eigen** library for C++ and hence run the following line: ! git clone https://github.com/RLovelett/eigen.git Make sure you have it cloned in the same directory as your code. - **pybind11** and **cppimport** are the two standard packages required for wrapping C++ codes for Python and importing them: ! pip3 install pybind11 ! pip3 install cppimport The example makes use of **sympy** to specify functions (such as potential and kinetic energies as well as the gradient of the former), **numpy** and **numpy.random**.


نحوه نصب


نصب پکیج whl c-sghmc-0.0.1:

    pip install c-sghmc-0.0.1.whl


نصب پکیج tar.gz c-sghmc-0.0.1:

    pip install c-sghmc-0.0.1.tar.gz