Giter Club home page Giter Club logo

Comments (6)

Mamba413 avatar Mamba413 commented on July 20, 2024

Can you give me more details about your system info?

You can get them by running:

import platform
print("Platform Version: {0}, {1}".format(platform.platform(), platform.architecture()[0]))
print("Python Version:", platform.python_version())
import abess
print("Package Version:", abess.__version__)

from abess.

JiaqiHu2021 avatar JiaqiHu2021 commented on July 20, 2024

Platform Version: macOS-10.16-x86_64-i386-64bit, 64bit
Python Version: 3.9.7
Package Version: 0.3.6

from abess.

Mamba413 avatar Mamba413 commented on July 20, 2024

Thanks.

It is a tough issue. We have to pay some time to fix it. If you are urgent to use abess on Mac with M1 chip, you can refer to: tensorflow/tensorflow#45404, tensorflow/tensorflow#46044, or https://www.tensorflow.org/install/source#bazel_build_options, https://stackoverflow.com/questions/65770132/python3-install-of-tensorflow-on-apple-silicon-m1. Another option is using it in Windows or Linux.

from abess.

Mamba413 avatar Mamba413 commented on July 20, 2024

The following is a step-by-step procedure for solving this issue.

  1. Download miniforge from github: https://github.com/conda-forge/miniforge
    image

  2. Install it in terminal by commands:

mv Miniforge3-MacOSX-arm64.sh ~/
Chmod +x Miniforge3-MacOSX-arm64.sh
./Miniforge3-MacOSX-arm64.sh
  1. Activate and start a new environment named abess in terminal via:
conda create --name abess python=3.8
conda activate abess
  1. Follow the instruction to install the latest version of abess Python package.

After executing these steps, I believe the illegal hardware instruction python would be resolved.

If you meet any questions, feel free to contact us.

from abess.

Mamba413 avatar Mamba413 commented on July 20, 2024

Hi @JiaqiHu2021 ,we have updated a new version in Pypi. We believe the newest version can successfully executed the following code:

>>> from abess.linear import abessLogistic
>>> from sklearn.datasets import load_breast_cancer
>>> from sklearn.pipeline import Pipeline
>>> from sklearn.metrics import make_scorer, roc_auc_score
>>> from sklearn.preprocessing import PolynomialFeatures
>>> from sklearn.model_selection import GridSearchCV
>>> pipe = Pipeline([('poly', PolynomialFeatures(include_bias=False)), ('alogistic', abessLogistic())])
>>> param_grid = {'poly__interaction_only': [True, False],'poly__degree': [1, 2, 3]}
>>> scorer = make_scorer(roc_auc_score, greater_is_better=True)
>>> grid_search = GridSearchCV(pipe, param_grid, scoring=scorer, cv=5)
>>> X, y = load_breast_cancer(return_X_y=True)
>>> grid_search.fit(X, y)

You can run

pip uninstall abess
pip install --no-cache-dir abess==0.4.2

to reinstall the latest abess library.

If you still meet any problem, feel free to contact us.

from abess.

JiaqiHu2021 avatar JiaqiHu2021 commented on July 20, 2024

After upgrading to the latest version, I successfully ran the above code.
Thank you very much for your help!

from abess.

Related Issues (20)

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.