GithubHelp home page GithubHelp logo

krzjoa / bace Goto Github PK

View Code? Open in Web Editor NEW
8.0 2.0 5.0 2.33 MB

A deck of Naive Bayes algorithms with sklearn-like API ๐Ÿƒ

Home Page: https://bace.readthedocs.io

License: MIT License

Python 100.00%
machine-learning-algorithms bayes-classifier naive-bayes naive-bayes-algorithm naive-bayes-classifier

bace's People

Contributors

krzjoa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

bace's Issues

Pip install gives error: No such file or directory: 'requirements.txt'

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\

When built from pip/github I cant import ComplementNB

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 LocallyWeightedNB

ModuleNotFoundError: No module named 'cnb'

Not sure why, the files are in the same folder as the init.py...

Missing files in sdist

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.

Transform in line 96 (cnb.py)

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.

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.