Git Product home page Git Product logo

feature_selection-3's Introduction

Feature Selection

CS170 - Intro to Artificial Intelligence project.

Given a data set with two classes, the program will find the best features suited for classification. Classification will be done with the nearest neighbor algorithm and tested with one-out cross validation. It includes forward selection, backward elimination, and a custom search that should be more fast or optimal than the previous two.

Forward Selection

Start with 0 features, add one at a time with a greedy search for best accuracy.

Backward Elimination

Start with n features, remove one at a time with a greedy search for best accuracy.

Custom Search

We first begin populating our heap with features based on NN and then initialize the our set with the first feature in our heap. After this, we begin popping features from our heap and testing it. If it improves our accuracy then we add it to our set. The number of times we pop from our heap should be limited based on the number of features. If doing this does not improve our accuracy we reorder the heap based on our current set and if it does not show any signs of improvement we stop. This search is faster because it assumes that the next X best features are going to be added. By testing it right away we avoid extensively testing other features. However, if it does not improve our accuracy we would have to reorder the heap, in the worst case it would have the same runtime as FS. But by limiting the number of times we reorder our heap we can make it faster than both FS and BE. Despite checking less it will also perform just as good as FS.

feature_selection-3's People

Contributors

ktang012 avatar

Watchers

James Cloos avatar  avatar

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.