Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
This repository was archived by the owner on Dec 4, 2024. It is now read-only.

Feature selection for machine learning using mutual information.

License

NotificationsYou must be signed in to change notification settings

dwave-examples/feature-selection-notebook

Repository files navigation


Open in GitHub CodespacesLinux/Mac/Windows build status

Feature Selection

This notebook develops a QPU programming model for an optimization problem thatselects a subset and demonstrates it using Ocean software'sdwave-hybridon an example of feature selection for machine learning.

The notebook has the following sections:

  1. What is Feature Selection? defines and explains the feature-selection problem.
  2. Feature Selection by Mutual Information describes a particular method offeature selection that is demonstrated in this notebook.
  3. Solving Feature Selection on a Quantum Computer shows how such optimizationproblems can be formulated for solution on a D-Wave quantum computer.
  4. Example Application: Predicting Survival of Titanic Passengers demonstratesthe use ofKerberos,an out-of-the-box classical-quantumhybridsampler, to select optimal features for a public-domain dataset.

What is Feature Selection?

Statistical and machine-learning models use sets of input variables ("features")to predict output variables of interest. Feature selection can be part of the modeldesign process: selecting from a large set of potential features a highly informativesubset simplifies the model and reduces dimensionality.

For systems with large numbers of potential input information—for example,weather forecasting or image recognition—model complexity and required computeresources can be daunting. Feature selection can help make such models tractable.

However, optimal feature selection can itself be a hard problem. This exampleintroduces a powerful method of optimizing feature selection based on a complexprobability calculation. This calculation is submitted for solution to a quantumcomputer.

Example Solution

Installation

You can run this example without installation in cloud-based IDEs that supporttheDevelopment Containers specification(aka "devcontainers").

For development environments that do not supportdevcontainers, installrequirements:

pip install -r requirements.txt

If you are cloning the repo to your local system, working in avirtual environment isrecommended.

Usage

Your development environment should be configured toaccess Leap’s Solvers.You can see information about supported IDEs and authorizing access to yourLeap accounthere.

The notebook can be opened by clicking on the01-feature-selection.ipynb file in VS Code-based IDEs.

To run a locally installed notebook:

jupyter notebook

License

SeeLICENSE file.

About

Feature selection for machine learning using mutual information.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp