KennethEnevoldsen / bag-of-tricks

KennethEnevoldsen package for personal utilities.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bag of Tricks

Kenneth Enevoldsen personal utility functions. Typically include neat simple functions implementing efficient tricks.

Installation

pip install git+https://github.com/KennethEnevoldsen/bag-of-tricks

Content

├── README.md
├── bagoftricks             <- The package
│   ├── names               <- auto-generate run names
│   ├── batch               <- generate batch out of iterable
│   ├── mean_update         <- update/calculate mean from iterable
│   ├── shuffle_buffer      <- create a shuffle buffer on iterable
│   ├── spacy_tokenizer     <- A fast spacy tokenizer wrapping the NLTK tokenizer (potentially outdated)
│   ├── json_utls.          <- a function for merge_jsonl files potentially randomly 
│   └── reapeatable_gen.py  <- make a generator repeatable  
│

Usage

from bagoftricks.names import create_run_name

create_run_name()
# '2021-10-28-19.55_brainy-mole'

Note: This package is not intended to be productionfriendly. If you want to use it in production I strongly recommend extracting the desired function.

About

KennethEnevoldsen package for personal utilities.


Languages

Language:Python 100.0%