Skip to main content

A data science and machine learning toolkit

Project description

mltoolkit-laht 0.1.4

This is a Python library for data science and machine learning tasks. It provides utilities for data processing, modeling, and visualization.

Installation

To install this package, clone the repository and run the setup script:

git clone https://github.com/lehidalgo/mltoolkit-laht
cd mltoolkit-laht
pip install .

Usage

Here is a basic example of how to use this toolkit:

import pandas as pd
from mltoolkit_laht import data_processing as dp
from mltoolkit_laht.datasets import load_banking_reviews_data

# ============================== Load Data ==============================
data_reader = dp.DataSource(data=load_banking_reviews_data())

# ============================== Data Preprocessing ==============================
BankReviews = data_reader.load_data()
BankReviews["Date"] = pd.to_datetime(BankReviews["Date"], format="%d-%m-%Y")
BankReviews["Year"] = BankReviews["Date"].dt.year
BankReviews["text_length"] = BankReviews.Reviews.apply(lambda x: len(x))

# ============================== Data Exploration ==============================
data_reader.show_df_info(num_rows=100)

Full example in Tutorials directory.

Testing

To run the tests, use the following command:

python -m unittest discover tests

Dependencies

This package requires the following Python libraries, which are listed in the requirements.txt file:

  • numpy
  • pandas
  • scikit-learn
  • matplotlib

Please make sure to install these dependencies before using this toolkit.

Contributing

Contributions are welcome! Please submit a pull request or create an issue to propose changes or additions.

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

mltoolkit-laht-0.1.4.tar.gz (77.4 kB view details)

Uploaded Source

Built Distribution

mltoolkit_laht-0.1.4-py3-none-any.whl (79.3 kB view details)

Uploaded Python 3

File details

Details for the file mltoolkit-laht-0.1.4.tar.gz.

File metadata

  • Download URL: mltoolkit-laht-0.1.4.tar.gz
  • Upload date:
  • Size: 77.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.9.19

File hashes

Hashes for mltoolkit-laht-0.1.4.tar.gz
Algorithm Hash digest
SHA256 de30582df8f4491ee3daf09ca0824401be1672ba9c9c8e53bcfea1f43362da77
MD5 0da80f719afd6e5af676998b2b090507
BLAKE2b-256 cfeddf313b189c9bd9506324683f2e2b246f3e633d5cab0c0383c4af9b2335fb

See more details on using hashes here.

File details

Details for the file mltoolkit_laht-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for mltoolkit_laht-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 9d2f304f7baaf1f5ee2a5dd80ab5d287a77b6d6e567723f366b4ecf6561ae064
MD5 4a92e635dc34187f6538cc2406fe4fb1
BLAKE2b-256 f5be2cdb41fbd90e155fd376166b7f19b75dac93e42557d3743f9185428e4eb5

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