Skip to main content

ML package

Project description

ML Package

A Package through which multiple things can be done in a go like fitting a model of your own choice (regression/classification) and get final results in terms of model accuracy/ score/ mse/ mae/ confusion matrix and direct submission file which we need to upload in case of competitions.

Two things can be achieved from this package:

  1. Results after fitting any Regression/classification algorithm of your own choice. Function to be used - train_model
  2. Final submission file to be submitted directly in competitions. Function to be used - return_csv

Requirements:

  1. sklearn
  2. numpy
  3. pandas
  4. Pre-processed data to be passed - data already cleaned, splitted into train and test
  5. In train_model function, parameters to be passed:
    • x_train, y_train, x_test, y_test
    • model object
    • regression=True (if addressing regression problem)
    • regression=False (if addressing classification problem (default is True))
  6. In return_csv function, parameters to be passed:
    • x_train, y_train, x_test, y_test
    • model object
    • sample submission file (dataframe)
    • target column name (string)
    • file location name (filepath where to be saved)

Installation & Usage

  1. Make sure that your pip version is up-to-date: pip install --upgrade pip. Check version with pip -V.
  2. Select the correct package:
    • There are two packages (two versions of the package )and you should SELECT ONLY ONE OF THEM which is the latest one.
    • Install using pip install mlpkg with latest version
  3. Import the package and use its functions: from ML_Utility import ML_package

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

mlpkg-0.3.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

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

mlpkg-0.3-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file mlpkg-0.3.tar.gz.

File metadata

  • Download URL: mlpkg-0.3.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for mlpkg-0.3.tar.gz
Algorithm Hash digest
SHA256 19fbf0f34f0c41d5e2bfe791d626791793b1b79d0037143501e6ca4485c741fa
MD5 a05128611b142e8fc51f5e7b0cab52ac
BLAKE2b-256 c830c6f0705e225ceb5a1108442c3561769ec1dfd354f965dd7b8324390eb23a

See more details on using hashes here.

File details

Details for the file mlpkg-0.3-py3-none-any.whl.

File metadata

  • Download URL: mlpkg-0.3-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for mlpkg-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 73d1e839118d3ad90d409ec145b49915199265cf29386e787d4f85f1ffa6f1f4
MD5 bd4b739b64ef7058f3ca980fb1d022c8
BLAKE2b-256 3cd7b909331d5ba802e1538295e632e12c64f678dd1f8d673348def1b159437e

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