Giter Site home page Giter Site logo

neonnnnn / pyrfm Goto Github PK

View Code? Open in Web Editor NEW
15.0 1.0 4.0 23.34 MB

A library for random feature maps in Python.

License: BSD 2-Clause "Simplified" License

Python 21.75% Jupyter Notebook 2.93% C 74.49% Makefile 0.42% Shell 0.03% Awk 0.11% Batchfile 0.03% TeX 0.24%
machine-learning kernel-methods random-features linear-models

pyrfm's People

Contributors

neonnnnn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

pyrfm's Issues

ImportError: cannot import name 'maybe_cythonize_extensions'

python setup.py install fails with ImportError: cannot import name 'maybe_cythonize_extensions'

+ pip install -r requirements.txt
Requirement already satisfied: numpy in /usr/local/lib/python3.6/dist-packages (from -r requirements.txt (line 1)) (1.18.5)
Requirement already satisfied: scipy in /usr/local/lib/python3.6/dist-packages (from -r requirements.txt (line 2)) (1.4.1)
Requirement already satisfied: cython in /usr/local/lib/python3.6/dist-packages (from -r requirements.txt (line 3)) (0.29.19)
Requirement already satisfied: scikit-learn in /usr/local/lib/python3.6/dist-packages (from -r requirements.txt (line 4)) (0.22.2.post1)
Requirement already satisfied: pytest in /usr/local/lib/python3.6/dist-packages (from -r requirements.txt (line 5)) (3.6.4)
Requirement already satisfied: joblib>=0.11 in /usr/local/lib/python3.6/dist-packages (from scikit-learn->-r requirements.txt (line 4)) (0.15.1)
Requirement already satisfied: py>=1.5.0 in /usr/local/lib/python3.6/dist-packages (from pytest->-r requirements.txt (line 5)) (1.8.1)
Requirement already satisfied: atomicwrites>=1.0 in /usr/local/lib/python3.6/dist-packages (from pytest->-r requirements.txt (line 5)) (1.4.0)
Requirement already satisfied: pluggy<0.8,>=0.5 in /usr/local/lib/python3.6/dist-packages (from pytest->-r requirements.txt (line 5)) (0.7.1)
Requirement already satisfied: attrs>=17.4.0 in /usr/local/lib/python3.6/dist-packages (from pytest->-r requirements.txt (line 5)) (19.3.0)
Requirement already satisfied: setuptools in /usr/local/lib/python3.6/dist-packages (from pytest->-r requirements.txt (line 5)) (47.1.1)
Requirement already satisfied: six>=1.10.0 in /usr/local/lib/python3.6/dist-packages (from pytest->-r requirements.txt (line 5)) (1.12.0)
Requirement already satisfied: more-itertools>=4.0.0 in /usr/local/lib/python3.6/dist-packages (from pytest->-r requirements.txt (line 5)) (8.3.0)
+ python setup.py install
Traceback (most recent call last):
  File "setup.py", line 33, in <module>
    zip_safe=False
  File "/usr/local/lib/python3.6/dist-packages/numpy/distutils/core.py", line 137, in setup
    config = configuration()
  File "setup.py", line 16, in configuration
    config.add_subpackage('pyrfm')
  File "/usr/local/lib/python3.6/dist-packages/numpy/distutils/misc_util.py", line 1035, in add_subpackage
    caller_level = 2)
  File "/usr/local/lib/python3.6/dist-packages/numpy/distutils/misc_util.py", line 1004, in get_subpackage
    caller_level = caller_level + 1)
  File "/usr/local/lib/python3.6/dist-packages/numpy/distutils/misc_util.py", line 917, in _get_configuration_from_setup_py
    ('.py', 'U', 1))
  File "/usr/local/lib/python3.6/dist-packages/numpy/compat/py3k.py", line 159, in npy_load_module
    return importlib.machinery.SourceFileLoader(name, fn).load_module()
  File "<frozen importlib._bootstrap_external>", line 399, in _check_name_wrapper
  File "<frozen importlib._bootstrap_external>", line 823, in load_module
  File "<frozen importlib._bootstrap_external>", line 682, in load_module
  File "<frozen importlib._bootstrap>", line 265, in _load_module_shim
  File "<frozen importlib._bootstrap>", line 684, in _load
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "pyrfm/setup.py", line 1, in <module>
    from sklearn._build_utils import maybe_cythonize_extensions
ImportError: cannot import name 'maybe_cythonize_extensions'

pyfrom import error

I tried your installation method of pyrfm and successfully installed pyrfm, but the following exception was thrown when I used it. Could you please provide me with help? Thank you

root@Ieb7bd1b1801501882:/pyrfm# python
Python 3.8.10 (default, Mar 15 2022, 12:22:08) 
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
from pyrfm import MB, SparseMBClassifier, SparseMB
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/pyrfm/pyrfm/__init__.py", line 1, in <module>
    from .random_feature import (RandomFourier, RandomMaclaurin,
  File "/pyrfm/pyrfm/random_feature/__init__.py", line 2, in <module>
    from .random_kernel import RandomKernel, SubfeatureRandomKernel
  File "/pyrfm/pyrfm/random_feature/random_kernel.py", line 11, in <module>
    from ..kernels import anova, all_subsets, anova_fast, pairwise
  File "/pyrfm/pyrfm/kernels.py", line 4, in <module>
    from .kernels_fast import _anova, _all_subsets, _intersection, _chi_square
ModuleNotFoundError: No module named 'pyrfm.kernels_fast'

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.