gostevehoward / confseq Goto Github PK
View Code? Open in Web Editor NEWConfidence sequences and uniform boundaries
License: MIT License
Confidence sequences and uniform boundaries
License: MIT License
When I run pip3 install confseq
, gcc complains it cannot find "uniform_boundaries.h" when building confseq.boundaries
extension.
building 'confseq.boundaries' extension
creating build/temp.linux-x86_64-3.9
creating build/temp.linux-x86_64-3.9/src
creating build/temp.linux-x86_64-3.9/src/confseq
gcc -pthread -B /private/home/xxx/.conda/envs/my_env/compiler_compat -Wl,--sysroot=/ -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /private/home/xxx/.conda/envs/my_env/include -fno-semantic-interposition -fPIC -O2 -isystem /private/home/xxx/.conda/envs/my_env/include -fno-semantic-interposition -fPIC -I/private/home/xxx/.conda/envs/my_env/lib/python3.9/site-packages/pybind11/include -I/private/home/xxx/.conda/envs/my_env/lib/python3.9/site-packages/pybind11/include -I/private/home/xxx/.conda/envs/my_env/include/python3.9 -c src/confseq/boundaries.cpp -o build/temp.linux-x86_64-3.9/src/confseq/boundaries.o -DVERSION_INFO="0.0.5" -std=c++14 -fvisibility=hidden
src/confseq/boundaries.cpp:4:10: fatal error: uniform_boundaries.h: No such file or directory
4 | #include "uniform_boundaries.h"
| ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
error: command '/usr/bin/gcc' failed with exit code 1
I installed your package successfully last year; the failure appears when installing it on my server and new laptop. I wonder if the recent change you made broke the installation.
Referenced in #6.
The documentation of function bernoulli_confidence_interval
implies that argument num_successes
could take real values:
* `num_successes`: number of "successful" Bernoulli trials seen so far,
or more generally, sum of observed outcomes.
However, the code seems to allow only integer-valued arguments. In python
y = np.random.uniform(size=100)
boundaries.bernoulli_confidence_interval(
num_successes=np.sum(y), # Argument is float
num_trials=100,
alpha=0.1,
t_opt=100,
alpha_opt=0.1)
leads to this error:
TypeError: bernoulli_confidence_interval(): incompatible function arguments. The following argument types are supported:
1. (num_successes: int, num_trials: int, alpha: float, t_opt: float, alpha_opt: float = 0.05) -> Tuple[float, float]
Invoked with: kwargs: num_successes=51.445863688932626, num_trials=100, alpha=0.1, t_opt=100, alpha_opt=0.1
The message disappears if we replace e.g., np.sum(y)
by int(np.sum(y))
.
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.