Giter VIP home page Giter VIP logo

pso-hyperparameter-selection's Introduction

Particle Swarm Optimization (PSO) Hyperparameter Optimization

This Python module implements hyperparameter optimization using Particle Swarm Optimization (PSO) for various machine learning algorithms in classification task. PSO is a population-based optimization technique inspired by the social behavior of birds flocking or fish schooling.

Overview

The PSOOptimizer class provided in this module allows users to optimize hyperparameters for four different types of machine learning algorithms:

  • K-Nearest Neighbors (KNN)
  • Random Forest (RF)
  • Decision Tree (DT)
  • Support Vector Classifier (SVC)

The optimization process aims to find the best set of hyperparameters that maximize the accuracy of the respective classifier on a given dataset.

Requirements

  • Python 3.x
  • Required Python packages: numpy, joblib, scikit-learn, tqdm

Make sure to install these dependencies using pip before using the module.

Usage

  1. Install the pso-optimizer library:
pip install pso-optimizer
  1. Example usage is in main.py file.

Files

  • main.py: The main script to run PSO hyperparameter optimization.
  • pso_optimizer.py: Contains the PSOOptimizer class for PSO optimization.
  • hyperparameter_mappings.py: Contains mappings for hyperparameters used in different machine learning models.
  • README.md: This file.

Acknowledgments

The implementation of PSO hyperparameter optimization is inspired by the paper "The Particle Swarm โ€” Explosion, Stability, and Convergence in a Multidimensional Complex Space" by Clerc and Kennedy.

Citation

If you use this package in your work, please cite it using the following information: @software{pso_optimizer, author = {Mert Bayraktar}, year = {2024}, publisher = {GitHub}, journal = {GitHub repository}, howpublished = {\url{https://github.com/mBayraktar12/PSO-Hyperparameter-Selection/tree/main}}, version = {1.0.0} }

pso-hyperparameter-selection's People

Contributors

mbayraktar12 avatar

Watchers

 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.