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.3.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.3-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: purnamatools-0.2.3.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.3.tar.gz
Algorithm Hash digest
SHA256 6d1197f2eef304c63c49a1f476c61ce694600edf1e685d158633b1170b430b7c
MD5 15f3ac22ce3a431c585ca8407541c924
BLAKE2b-256 148a3eb857f063b96e6d8e518ac23e563847d8af8d76ab1d0b994359c5a76d2d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: purnamatools-0.2.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f187b1f900c18618165a6fea8ab249a229c3516326c5241c8ae5ce386a7980b4
MD5 6d0396bee41be499cd79e6277c024e88
BLAKE2b-256 368cab543f9e7c3ff7677adccb6b952de892aea198ba6840560c45ec2f61cb5a

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