Skip to main content

It helps to find the best classification model with the accuracy based on the given dataset

Project description

Best Classification Model is used for supervised learning techniques where the target data is in binary form. It selects the best model from the seven classification model based on the accuracy.

The seven classification model used in the given assignment are:

  1. Logistic Regression
  2. Naive Bayes
  3. Stochastic Gradient Classifier
  4. K Neighbors Classifier
  5. Decision Tree Classifier
  6. Random Forest Classifier
  7. Support Vector Machine

User installation

If you already have a working installation of numpy, scipy and sklearn, the easiest way to install best-classification-model is using pip

pip install BestClassificationModel

Important links

Official source code repo: https://github.com/ronakkkk/best_classification_model

Download releases: https://pypi.org/project/BestClassificationModel/

Examples

from Best_Classification_Model import best_model

import pandas

data = pandas.read_csv('Data.csv')

X = data.iloc[:, :-1]

Y = data['Class']

best_model, best_model_name, acc = best_model.bestClassificationModel(X, Y)

print(best_model)

print(best_model_name, ":", acc)```

`__Output__:
RandomForestClassifier(bootstrap=True, class_weight=None, criterion='gini',
                       max_depth=None, max_features='auto', max_leaf_nodes=None,
                       min_impurity_decrease=0.0, min_impurity_split=None,
                       min_samples_leaf=1, min_samples_split=2,
                       min_weight_fraction_leaf=0.0, n_estimators=10,
                       n_jobs=None, oob_score=False, random_state=None,
                       verbose=0, warm_start=False)

Random Forest:0.861145`

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

BestClassificationModel-0.1.2.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

BestClassificationModel-0.1.2-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file BestClassificationModel-0.1.2.tar.gz.

File metadata

  • Download URL: BestClassificationModel-0.1.2.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.2

File hashes

Hashes for BestClassificationModel-0.1.2.tar.gz
Algorithm Hash digest
SHA256 f528adad91e8b3e23591011f8e3e161e1ce60007c4109ed2217a4caa4b53cc7e
MD5 aae09a5618aac4bb6c06134bb9559a44
BLAKE2b-256 e0739ee53d1e4ef521bd6711891b4bdb9cdf6609abe3b60d4742f4591f1a4deb

See more details on using hashes here.

File details

Details for the file BestClassificationModel-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: BestClassificationModel-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.2

File hashes

Hashes for BestClassificationModel-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9117cd8f2215f10ac4f7c6070cba0fbe81104cbcc08a5a68839afa609b566e11
MD5 021aceb14ffe3a371d921382f20034dd
BLAKE2b-256 3e507ef1d61faed2a1f4b2f8d64fab54f4ca3d3df3ce8e2700391ad9211d6fc0

See more details on using hashes here.

Supported by

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