krzjoa / bace Goto Github PK
View Code? Open in Web Editor NEWA deck of Naive Bayes algorithms with sklearn-like API ๐
Home Page: https://bace.readthedocs.io
License: MIT License
A deck of Naive Bayes algorithms with sklearn-like API ๐
Home Page: https://bace.readthedocs.io
License: MIT License
Im using python 3.6:
C:\Users\DT-Laptop\projects\NapkinML>pip install bayes-variants
Collecting bayes-variants
Using cached bayes-variants-0.1.1.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\DT-LAP~1\AppData\Local\Temp\pip-build-zmwrsspi\bayes-variants\setup.py", line 22, in <module>
with open('requirements.txt') as fid:
FileNotFoundError: [Errno 2] No such file or directory: 'requirements.txt'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\DT-LAP~1\AppData\Local\Temp\pip-build-zmwrsspi\bayes-variants\
from bayes.classifiers import ComplementNB
ModuleNotFoundError Traceback (most recent call last)
in ()
----> 1 from bayes.classifiers import ComplementNB~\Anaconda3\envs\new_ds\lib\site-packages\bayes\classifiers_init_.py in ()
----> 1 from cnb import ComplementNB
2 from nnb import NegationNB
3 from unb import UniversalSetNB
4 from snb import SelectiveNB
5 #from lwnb import LocallyWeightedNBModuleNotFoundError: No module named 'cnb'
Not sure why, the files are in the same folder as the init.py...
It appears that the manifest is missing at least one file necessary to build
from the sdist for version 1.0.1. You're in good company, about 5% of other
projects updated in the last year are also missing files.
+ /tmp/venv/bin/pip3 wheel --no-binary bace -w /tmp/ext bace==1.0.1
Looking in indexes: http://10.10.0.139:9191/root/pypi/+simple/
Collecting bace==1.0.1
Downloading http://10.10.0.139:9191/root/pypi/%2Bf/fd4/d059af8a51bbc/bace-1.0.1.tar.gz (8.9 kB)
ERROR: Command errored out with exit status 1:
command: /tmp/venv/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-wheel-vsyo1qbp/bace/setup.py'"'"'; __file__='"'"'/tmp/pip-wheel-vsyo1qbp/bace/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-wheel-vsyo1qbp/bace/pip-egg-info
cwd: /tmp/pip-wheel-vsyo1qbp/bace/
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-wheel-vsyo1qbp/bace/setup.py", line 17, in <module>
with open('requirements.txt') as fid:
FileNotFoundError: [Errno 2] No such file or directory: 'requirements.txt'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Line with issue:
features_doc_logprob = safe_matmult(X, features_weights.T)
Issue:
The transpose is already handled by safe_matmult of math_utils.py.
Sending a transpose value will result in nothing more than the same matrix since it will take the transpose twice.
A[M x N] is used to take a dot with B[P x N] which will always result in an error.
Proposed Fix:
I think if we remove the transpose while calling the safe_matmult code should work fine.
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.