-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is this plugin up to date? #20
Comments
Hi @chorusg, yes it is. Unless there was some bug you were seeing to prevent you from using it? |
Do you have any simple code example to use this plugin?
…On Mon, Apr 15, 2024, 21:24 Alexander Condello ***@***.***> wrote:
Hi @chorusg <https://github.com/chorusg>, yes it is. Unless there was
some bug you were seeing to prevent you from using it?
—
Reply to this email directly, view it on GitHub
<#20 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AS2T3K243JWIPPFK754DYIDY5PPIRAVCNFSM6AAAAABGHAIV2WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANJWHE4DOOBRHE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
There are a few examples in the README. If you would like additional help, I would recommend creating a post in our community. |
It didnt work when I copied the source code in Readme and run in cloud codespace. Any change needs to be made? |
Can you be more specific? Specifically can you provide a minimal, reproducible example , as well as the full traceback that your are seeing? |
Usage: dwave [OPTIONS] COMMAND [ARGS]... Error: No such command 'auth'.What is wrong with the process? |
I see, in this case you are installing the package twice. The first with Try running just pip install dwave-scikit-learn-plugin --upgrade
dwave auth login --oob |
After running 2 of them, this issue appears: |
It looks like somehow
which will install everything from scratch. Also, if there is an error can you please post the entire install output as well as the entire error traceback? |
Created a file name: rtest.py with content:from sklearn.datasets import load_breast_cancer X, y = load_breast_cancer(return_X_y=True) X_new = SelectFromQuadraticModel(num_features=20).fit_transform(X, y) Then run: python rtest.py The terminal showed this result:Traceback (most recent call last): |
You need access to the D-Wave quantum computers and hybrid solvers. You can get access by running
I believe with the fresh install that should work now. |
It was authorised but still show the above error. |
What is the output of |
We had got : Authorization completed successfully. You can now use "dwave auth get" to fetch your token. then "dwave ping" returned: Error: Invalid configuration: API token not defined (code: 1) |
As the message states you need to run Or you can do this in one step with |
"dwave ping" works now. We have tried: python rtest.py
|
|
@chorusg, this seems to be a bug in the default image used by Codespaces. On codespace creation, they will pip install If you uninstall it, and install again, from the initialized codespace, So, to fix this, run:
Please note that this issue is not specific to this repo, or Ocean SDK. Any python package installed from the |
It works for us with this code:import numpy as np from sklearn.datasets import load_breast_cancer X, y = load_breast_cancer(return_X_y=True) num_features = X.shape[1] pipe = Pipeline([ clf = GridSearchCV(pipe, param_grid=dict(feature_selection__num_features=searchspace)) Questions:
|
Hi @chorusg, For your remaining questions, I'll direct you to our Ocean docs, our system docs, and our community. GitHub issues are used for feature requests and bug reports. For more general questions about how to use our packages as well as our hybrid solvers and quantum computers, our community is a far better place. |
Is this plugin up to date? Can we use it?
The text was updated successfully, but these errors were encountered: