dfm / carma Goto Github PK
View Code? Open in Web Editor NEWPlaying around with CARMA models
License: MIT License
Playing around with CARMA models
License: MIT License
I was trying to install carma on Ubuntu 14.04. Running the 'setup.py' file gives me gcc errors in carma.cpp file. It's seems to be some namespace error. This is the error on terminal:-
"running build
running build_py
running egg_info
writing carma.egg-info/PKG-INFO
writing top-level names to carma.egg-info/top_level.txt
writing dependency_links to carma.egg-info/dependency_links.txt
reading manifest file 'carma.egg-info/SOURCES.txt'
writing manifest file 'carma.egg-info/SOURCES.txt'
copying carma/_carma.cpp -> build/lib.linux-x86_64-2.7/carma
running build_ext
Found Eigen version 3.3.4 in: /usr/local/include/eigen3
building 'carma._carma' extension
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Icarma -I/home/sip/anaconda2/lib/python2.7/site-packages/numpy/core/include -I/usr/local/include/eigen3 -I/home/sip/anaconda2/include/python2.7 -c carma/_carma.cpp -o build/temp.linux-x86_64-2.7/carma/_carma.o -Wno-unused-function -Wno-uninitialized
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
In file included from /home/sip/anaconda2/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1777:0,
from /home/sip/anaconda2/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:18,
from /home/sip/anaconda2/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,
from carma/_carma.cpp:271:
/home/sip/anaconda2/lib/python2.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
#warning "Using deprecated NumPy API, disable it by "
^
carma/_carma.cpp: In function ‘PyObject* __pyx_pf_5carma_6_carma_2carma_log_likelihood(PyObject*, double, PyArrayObject*, PyArrayObject*, PyArrayObject*, PyArrayObject*, PyArrayObject*)’:
carma/_carma.cpp:1837:18: error: ‘log_likelihood’ is not a member of ‘carma’
__pyx_t_10 = carma::log_likelihood(__pyx_v_log_sigma, __pyx_t_4, ((double )__pyx_v_arpars->data), __pyx_t_7, ((double )__pyx_v_mapars->data), __pyx_t_9, ((double )__pyx_v_x->data), ((double )__pyx_v_y->data), ((double )__pyx_v_yerr->data));
^
carma/_carma.cpp: In function ‘PyObject __pyx_pf_5carma_6_carma_4carma_psd(PyObject, double, PyArrayObject, PyArrayObject, PyObject)’:
carma/_carma.cpp:2237:5: error: ‘psd’ is not a member of ‘carma’
carma::psd(__pyx_v_log_sigma, __pyx_t_4, ((double )__pyx_v_arpars->data), __pyx_t_9, ((double )__pyx_v_mapars->data), __pyx_t_10, ((double )__pyx_v_f_array->data), ((double )__pyx_v_values->data));
^
carma/_carma.cpp: In function ‘PyObject __pyx_pf_5carma_6_carma_6carma_covariance(PyObject, double, PyArrayObject, PyArrayObject, PyObject*)’:
carma/_carma.cpp:2799:5: error: ‘covariance’ is not a member of ‘carma’
carma::covariance(__pyx_v_log_sigma, __pyx_t_4, ((double *)__pyx_v_arpars->data), __pyx_t_11, ((double *)__pyx_v_mapars->data), __pyx_t_12, ((double *)__pyx_v_tau_array->data), ((double *)__pyx_v_values->data));
^
error: command 'gcc' failed with exit status 1"
Any help with this error is much appreciated.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.