Skip to main content

Python package to simplify the initial stages of model building and analysis for data science projects

Project description

PurnamaTools

PurnamaTools is a Python package designed to simplify data analysis and machine learning workflows, especially for beginners. It provides utilities for:

  • Initial data inspection and validation
  • Feature selection and correlation analysis
  • Model evaluation for regression and classification

The package is intended to be continuously updated with new features and improvements.

Features

1. Initial Data Check

  • initial_data_overview(df, target=None, is_classification=True): Comprehensive overview of your dataset, including missing values, duplicates, outliers, low variance columns, and more.
  • check_class_balance(df, target): Quickly check class imbalance and get recommendations for classification tasks.

2. Feature Selection

  • correlation_analysis(df, target, method='pearson'): Identify strong correlations and potential redundant features.
  • mi_analysis(X, y): Select top features based on Mutual Information.
  • batch_rfe_feature_selection(X, y): Scalable Recursive Feature Elimination for datasets with many features.
  • sfs_feature_selection(X, y): Sequential Feature Selection (forward or backward) using any estimator.
  • lasso_feature_selection(X, y): Feature selection using Lasso regression.

3. Model Evaluation

  • evaluate_model_regression(model, X_train, y_train, X_test, y_test, scoring): Evaluate regression models and get guidance for overfitting or underfitting.
  • evaluate_model_classification(model, X_train, y_train, X_test, y_test, scoring): Evaluate classification models and get suggestions for handling class imbalance.

Installation

pip install purnamatools

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

purnamatools-0.2.2.tar.gz (11.2 kB view details)

Uploaded Source

Built Distribution

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

purnamatools-0.2.2-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

File details

Details for the file purnamatools-0.2.2.tar.gz.

File metadata

  • Download URL: purnamatools-0.2.2.tar.gz
  • Upload date:
  • Size: 11.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for purnamatools-0.2.2.tar.gz
Algorithm Hash digest
SHA256 365b5eab80a762dce438ed85ea857983ca3d5c52993cf23806f19e7a4153432b
MD5 604b5f3a2a5786f35560b78e335c2ce0
BLAKE2b-256 3461bc2203bfd73e00dc300e2101afd8ae5f84f4ca05e1f420214031ec0a575d

See more details on using hashes here.

File details

Details for the file purnamatools-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: purnamatools-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 11.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for purnamatools-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 aaf41ec44fdac53e3e2d789ce1edf26edcc55f07312e01c67cf99e6a73594991
MD5 2fb2b3d714f32d1cbfbafa14e3dfe51a
BLAKE2b-256 854c6c15155021e5e85b28392535396af2783071cfe36a57d402dc03489d8a8e

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