Skip to main content

Machine Learning Toolbox

Project description

Machine Learning Toolbox 2 - MLTB2 - Sphinx DOC

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

📦 A box of machine learning tools. 📦

Main Components

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. Furthermore, there is a detailed description and an example of use.

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]

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.2.tar.gz (11.7 kB view details)

Uploaded Source

Built Distribution

mltb2-0.0.2-py3-none-any.whl (13.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for mltb2-0.0.2.tar.gz
Algorithm Hash digest
SHA256 17826b5bb71950aa5c298093d9f285d2d29cf531c0e4d332ab8982db55a72a1f
MD5 aba8126297b93ea352ca631b3b325efb
BLAKE2b-256 ad252feb08f469a0d48ccdda5840cebb5c4dcd8edf52feffb34b6228546957d7

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for mltb2-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3ab063cd4f5c81417fe7f72a121db2261320d04b3e5ace63ed86caddd2f2e249
MD5 e557260e8943f5ce13fe8b2e2ce5acd7
BLAKE2b-256 e6616b2113db83f82856b532504e9829db3cf0bf06af6f7dd734fe2627ce8e1d

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