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

Features

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.2.tar.gz (7.2 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.2-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pocket_ml-0.1.2.tar.gz
  • Upload date:
  • Size: 7.2 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.2.tar.gz
Algorithm Hash digest
SHA256 e5ad2fb8c64d6588993dac7b22a52b8b74d3708f15a547d210ae9e6def6894ba
MD5 f09210f3bfd924a90b060e1708c8b033
BLAKE2b-256 fb0d824dea76f3b635dcdeb641c471d083cdfdf4bab91df50e9dcad92fb5d7d2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pocket_ml-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 7.3 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 32c85ba946561cbeda1ca688a582d04c758ed0ee2dfa518018c66751bfd4f0e7
MD5 5ffaab3f7023af9a151919762d8ba8ad
BLAKE2b-256 5d3378af6bd0bfce749dc7d743126f0e9874064f9abcd5865cfb43922166be65

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