Skip to main content

Machine Learning Toolbox

Project description

Machine Learning Toolbox 2 - MLTB2

MIT License Python Version pypi
pytest Static Code Checks Build & Deploy Doc GitHub issues

📦 A box of machine learning tools. 📦

Components and Documentation

Documentation Page

from mltb2.somajo import SoMaJoSentenceSplitter
Split texts into sentences. For German and English language. This is done with the SoMaJo tool.

from mltb2.somajo import JaccardSimilarity
Calculate the jaccard similarity.

from mltb2.transformers import TransformersTokenCounter
Count tokens made by a Transformers tokenizer.

from mltb2.somajo_transformers import TextSplitter
Split the text into sections with a specified maximum token length. Does not divide words, but always whole sentences.

from mltb2.optuna import SignificanceRepeatedTrainingPruner
An Optuna pruner to use statistical significance (a t-test which serves as a heuristic) to stop unpromising trials early, avoiding unnecessary repeated training during cross validation.

Installation

MLTB2 is available at the Python Package Index (PyPI). It can be installed with pip:

pip install mltb2

Some optional dependencies might be necessary. You can install all of them with:

pip install mltb2[optional]

If you don't want to install all dependencies, see the description of the individual modules.

Licensing

Copyright (c) 2023 Philip May
Copyright (c) 2023 Philip May, Deutsche Telekom AG

Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License by reviewing the file LICENSE 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

mltb2-0.0.6.tar.gz (14.8 kB view details)

Uploaded Source

Built Distribution

mltb2-0.0.6-py3-none-any.whl (18.9 kB view details)

Uploaded Python 3

File details

Details for the file mltb2-0.0.6.tar.gz.

File metadata

  • Download URL: mltb2-0.0.6.tar.gz
  • Upload date:
  • Size: 14.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.17

File hashes

Hashes for mltb2-0.0.6.tar.gz
Algorithm Hash digest
SHA256 8fbe89a27455dc0c96118ec1f6cf635c6a4fd184d12fea04a14d5067ba4323b0
MD5 33d523b433c2f900aa3ce656560c110a
BLAKE2b-256 67383519aaab24e2be815bea09463d162013c2b3800943f3b71c7ca8a55ec027

See more details on using hashes here.

File details

Details for the file mltb2-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: mltb2-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 18.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.17

File hashes

Hashes for mltb2-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 31b98d59fd186dba74584e92c2b559f277b04cfe3918866063285b48995cce64
MD5 be72dc249e002aa1cb73ff1e43ded681
BLAKE2b-256 dd2344b69fe90c7fd20680095d16295092753c816e4a7eda2a722d498e2c0a0a

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