Skip to main content

No project description provided

Project description

pocket_ml

PyPI version

A lightweight and user-friendly machine learning library designed to simplify ML workflows.

Table of Contents

Feature

pocket_ml offers a range of features to streamline your machine learning projects:

  • Simple and Intuitive API: Provides easy-to-use classes like Classifier, DataPreprocessor, and Visualizer for common ML tasks, reducing boilerplate code.
  • Automated Data Preprocessing: Includes the DataPreprocessor class to handle essential preprocessing steps like scaling, encoding categorical features, and handling missing values (functionality may vary based on implementation details).
  • Easy Model Training and Evaluation: Train various classification and regression models with a consistent .fit() and .predict() interface. Evaluate model performance using standard metrics.
  • Built-in Visualization Tools: The Visualizer class helps in understanding data and model results through plots like confusion matrices, feature importance plots, etc. (specific plots depend on implementation).
  • Comprehensive Documentation and Examples: Access detailed guides and usage examples to get started quickly.

Installation

pip install pocket_ml

Quick Start

Here's a basic example of how to use pocket_ml:

from pocket_ml import Classifier, DataPreprocessor, Visualizer

# Assume X is your feature matrix (e.g., pandas DataFrame or NumPy array)
# Assume y is your target vector (e.g., pandas Series or NumPy array)
# Assume new_data is the data you want to make predictions on

# 1. Prepare your data
preprocessor = DataPreprocessor() # Initialize the preprocessor
X_processed = preprocessor.fit_transform(X) # Apply preprocessing
# Preprocess the new_data similarly (using transform, not fit_transform)
# new_data_processed = preprocessor.transform(new_data)

# 2. Train a model
# Choose a model type (e.g., 'random_forest', 'logistic_regression')
model = Classifier(model_type='random_forest')
model.fit(X_processed, y) # Train the model

# 3. Make predictions
# Ensure new_data is preprocessed using the *same* preprocessor instance
# predictions = model.predict(new_data_processed)

# 4. Visualize results (Example for classification)
# Assuming you have true labels (y_test) and predictions for a test set
# visualizer = Visualizer()
# visualizer.plot_confusion_matrix(y_test, predictions)

Package Structure

The library is organized as follows:

pocket_ml/
  ├── __init__.py         # Makes pocket_ml a package
  ├── algorithms/         # ML algorithms implementation
  │   ├── __init__.py
  │   ├── classification/ # Classification algorithms
  │   └── regression/     # Regression algorithms
  ├── preprocessing/      # Data preprocessing utilities
  │   ├── __init__.py
  │   └── data_preprocessor.py
  └── visualization/      # Data visualization tools
      ├── __init__.py
      └── visualizer.py

Documentation

For detailed documentation and examples, visit our documentation page. (Note: The provided link points to version 0.1.2, ensure documentation matches the installed version).

Contributing

Contributions are welcome! Please feel free to submit a Pull Request. Refer to the project's contribution guidelines if available.

License

This project is licensed under the MIT License - see the LICENSE file for details (if included in the repository).

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

pocket_ml-0.1.3.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

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

pocket_ml-0.1.3-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file pocket_ml-0.1.3.tar.gz.

File metadata

  • Download URL: pocket_ml-0.1.3.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.22

File hashes

Hashes for pocket_ml-0.1.3.tar.gz
Algorithm Hash digest
SHA256 58704c051d21c74a3607a08bad6ab2cae7efa3d9b3d11580f978b4260605b887
MD5 943accae83bfb559339515b96dbb14a2
BLAKE2b-256 449c2da299abbcd6f1d3e7baeb08cc72977ba27d006cc167b04d4f1fb5fc6ed2

See more details on using hashes here.

File details

Details for the file pocket_ml-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: pocket_ml-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 8.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.22

File hashes

Hashes for pocket_ml-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e4e2c40b29d77b14826fbf9469a931072ebf36205aaf2d8c6681b1586f694f75
MD5 4b01bce06bafa32693fcd2b2628ca0ce
BLAKE2b-256 4495dd561079ceea820e50561f06c3e589765f936b847a0f256bb046c8fc8eb4

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