Skip to main content

The Regression class simplifies regression analysis by providing a convenient and flexible approach for model training, evaluation, and hyperparameter tuning.

Project description

Project Title

Simplifying Regression and Classification Modeling

Guide

Installation setup

pip install AlgoMaster

Classfication model

  1. Initialize the model

    `Classifier=AlgoMaster.Classifier(X,Y,test_size=0.2,random_state=20)`
    
  2. Train the model and predict the results in table format

    `Classifier.model_training()`
    
  3. Ensemble technique

    `Classifier.ensemble_prediction()`
    
  4. Single Training

    To predict unseen data

    `data=[1,2,3,4,5,6,7,8,9]
    
    Classifier.logistic_test(data)
    
    Classifier.KNeighbors_test(data)
    
    Classifier.GaussianNB_test(data)
    
    Classifier.Bagging_test(data)
    
    Classifier.ExtraTrees_test(data)
    
    Classifier.RandomForest_test(data)
    
    Classifier.DecisionTree_test(data)
    
    Classifier.AdaBoost_test(data)
    
    Classifier.GradientBoosting_test(data)
    
    Classifier.XGBoost_test(data)
    
    Classifier.SGD_test(data)
    
    Classifier.SVC_test(data)
    
    Classifier.Ridge_test(data)
    
    Classifier.BernoulliNB_test(data)`
    
  5. Hyperparameter Turning

    To find the best parameters for the model

    `Classifier.hyperparameter_tuning()`
    
  6. Single Hyperparameter Turning

    To find the best parameters for the model

    `Classifier.logistic_hyperparameter()
    
    Classifier.KNeighbors_hyperparameter()
    
    Classifier.GaussianNB_hyperparameter()
    
    Classifier.Bagging_hyperparameter()
    
    Classifier.ExtraTrees_hyperparameter()
    
    Classifier.RandomForest_hyperparameter()
    
    Classifier.DecisionTree_hyperparameter()
    
    Classifier.AdaBoost_hyperparameter()
    
    Classifier.GradientBoosting_hyperparameter()
    
    Classifier.XGBoost_hyperparameter()
    
    Classifier.SGD_hyperparameter()
    
    Classifier.SVC_hyperparameter()
    
    Classifier.Ridge_hyperparameter()
    
    Classifier.BernoulliNB_hyperparameter()`
    

Regression model

  1. Initialize the model

    `Regressor=AlgoMaster.Regressor(X,Y,test_size=0.2,random_state=20)`
    
  2. Train the model and predict the results in table format

    `Regressor.model_training()`
    
  3. Ensemble technique

    `Regressor.ensemble_prediction()`
    
  4. Single Training

    `data=[1,2,3,4,5,6,7,8,9]
    
    Regressor.LinearRegression_test(data)
    
    Regressor.KNeighbors_test(data)
    
    Regressor.Bagging_test(data)
    
    Regressor.ExtraTrees_test(data)
    
    Regressor.RandomForest_test(data)
    
    Regressor.DecisionTree_test(data)
    
    Regressor.AdaBoost_test(data)
    
    Regressor.GradientBoosting_test(data)
    
    Regressor.XGBoost_test(data)
    
    Regressor.TheilSen_test(data)
    
    Regressor.SVR_test(data)
    
    Regressor.Ridge_test(data)
    
    Regressor.RANSAC_test(data)
    
    Regressor.ARD_test(data)
    
    Regressor.BayesianRidge_test(data)
    
    Regressor.HuberRegressor_test(data)
    
    Regressor.Lasso_test(data)
    
    Regressor.ElasticNet_test(data)`
    
  5. Hyperparameter Turning

    To find the best parameters for the model

    `Regressor.hyperparameter_tuning()`
    
  6. Single Hyperparameter Turning

    To find the best parameters for the model

    `Regressor.KNeighbors_hyperparameter()
    
    Regressor.Bagging_hyperparameter()
    
    Regressor.ExtraTrees_hyperparameter()
    
    Regressor.RandomForest_hyperparameter()
    
    Regressor.DecisionTree_hyperparameter()
    
    Regressor.AdaBoost_hyperparameter()
    
    Regressor.GradientBoosting_hyperparameter()
    
    Regressor.XGBoost_hyperparameter()
    
    Regressor.TheilSen_hyperparameter()
    
    <!-- Regressor.SVR_hyperparameter() -->
    
    Regressor.Ridge_hyperparameter()
    
    Regressor.RANSAC_hyperparameter()
    
    Regressor.ARD_hyperparameter()
    
    Regressor.BayesianRidge_hyperparameter()
    
    Regressor.Lasso_hyperparameter()
    
    Regressor.ElasticNet_hyperparameter()`
    

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

AlgoMaster-0.1.0.tar.gz (12.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

AlgoMaster-0.1.0-py3-none-any.whl (13.6 kB view details)

Uploaded Python 3

File details

Details for the file AlgoMaster-0.1.0.tar.gz.

File metadata

  • Download URL: AlgoMaster-0.1.0.tar.gz
  • Upload date:
  • Size: 12.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.10

File hashes

Hashes for AlgoMaster-0.1.0.tar.gz
Algorithm Hash digest
SHA256 818b90ba6a9693c36389aa9bc7413be5c82f9b65b24b565b1fecce7506b6cb59
MD5 6b836adbf505c1105d549d08eebe969f
BLAKE2b-256 d107ee689a725e276dc4515aff4ce16dee58a0fdfd996b5fcc196b060051c0fc

See more details on using hashes here.

File details

Details for the file AlgoMaster-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: AlgoMaster-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 13.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.10

File hashes

Hashes for AlgoMaster-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 03e2198a29f71d3ca104ace05297ecc95944fab2b4af799f05858281a103353c
MD5 31fedcf991d89be7572c4ad990442c8a
BLAKE2b-256 21037933c2073ed6ef4c1471265e600f1ce32e4153400b7e658b5d622468239c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page