Skip to main content

A toolkit to install essential machine learning libraries with one command.

Project description

MLEssentials

MLEssentials is a powerful Python package designed to support a broad range of machine learning tasks. It integrates essential libraries and tools for data preprocessing, model building, evaluation, and visualization. With MLEssentials, you can streamline your machine learning workflows and focus more on solving problems and less on managing dependencies.

Features

  • Data Manipulation: Utilizes libraries such as numpy, pandas, polars, and pandasql for efficient data handling and manipulation.
  • Model Building: Supports various model-building frameworks including scikit-learn, xgboost, lightgbm, catboost, and statsmodels.
  • Visualization: Provides tools for creating plots and visualizations with matplotlib, seaborn, plotly, and pydot.
  • Natural Language Processing: Incorporates nltk, spacy, and pattern for advanced text processing and analysis.
  • Web and API Interactions: Includes fastapi, flask, selenium, and requests for web scraping and building web applications.
  • Data Storage and Retrieval: Features SQLAlchemy, mysql-connector, and pyodbc for database connectivity and operations.
  • Additional Utilities: Offers joblib, pydantic, openpyxl, pyarrow, networkx, and beautifulsoup for extended functionalities.

Installation

To install MLEssentials, use the following pip command:

pip install MLEssentials

Usage

Here’s a quick example of how to use MLEssentials in your machine learning project:

# Importing necessary libraries from MLEssentials
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from sklearn.model_selection import train_test_split
from sklearn.ensemble import RandomForestClassifier

# Load and preprocess data
data = pd.read_csv('data.csv')
X = data.drop('target', axis=1)
y = data['target']

# Split data into training and testing sets
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.3, random_state=42)

# Train a model
model = RandomForestClassifier()
model.fit(X_train, y_train)

# Evaluate the model
accuracy = model.score(X_test, y_test)
print(f"Model Accuracy: {accuracy:.2f}")

# Visualize results
plt.figure(figsize=(10, 6))
plt.plot(range(len(y_test)), y_test, label='True Values')
plt.plot(range(len(y_test)), model.predict(X_test), label='Predicted Values', linestyle='--')
plt.legend()
plt.show()

Contributing

I welcome contributions to MLEssentials! To contribute:

Fork the repository from GitHub (replace with your actual GitHub link). Create a new branch for your feature or bug fix. Make your changes and commit them with descriptive messages. Push your changes to your forked repository. Submit a pull request to the main repository. Please ensure your code adheres to our coding standards and passes all tests before submitting a pull request.

License

MLEssentials is licensed under the MIT License.

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

mlessentials-1.1.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

MLEssentials-1.1-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file mlessentials-1.1.tar.gz.

File metadata

  • Download URL: mlessentials-1.1.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.0

File hashes

Hashes for mlessentials-1.1.tar.gz
Algorithm Hash digest
SHA256 73fe0983c18df0ecc49b9ccaa470c9e9d3906ecef663f1d0c356278e2899c504
MD5 a9763db0530265424a90bac99a801284
BLAKE2b-256 8113c1c1c8f843da29e3a6d2737991a4a624fd208d5eb817a994c4cd4c202654

See more details on using hashes here.

File details

Details for the file MLEssentials-1.1-py3-none-any.whl.

File metadata

  • Download URL: MLEssentials-1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.0

File hashes

Hashes for MLEssentials-1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 718a4d088d353b2de2e4f7a697910ca72ab83835e0f066db87b4e0cf98d31b09
MD5 248fd9f39fdf6891605d272a16d108d1
BLAKE2b-256 2e1ed4ad3d481685732c8e9a511f3087e54ebe4050415fb417473b417651607c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page