Ulitmate-utils (or uutils) is collection of useful code that Brando has collected through the years that has been useful accross his projects. Mainly for machine learning and programming languages tasks.
To use uutils first get the code this repo (e.g. fork it on github):
git clone git@github.com:brando90/ultimate-utils.git
Then install it in development mode in your python env with python >=3.9
(read modules_in_python.md
to learn about python envs).
E.g. create your env with conda:
conda create -n uutils_env python=3.9
conda activate uutils_env
Due to a depedency on pygraphviz
you will likely need to install graphviz
first. Next, install graphviz
.
On mac, brew install graphviz
.
On Ubuntu, sudo apt install graphviz
.
After graphviz is install, install uutils in edibable mode and all it's depedencies with pip:
pip install -e ~/ultimate-utils/ultimate-utils-proj-src
you can also do conda develop ~/ultimate-utils/ultimate-utils-proj-src
but it won't install the depedencies.
Now you should be able to use uutils! To test it do:
python -c "import uutils; uutils.hello()"
should print:
hello from uutitls __init__.pyt
Feel free to push code with pull request. Please include at least 1 self-contained test (that works) before pushing.
Read the modules_in_python.md
to have an idea of the above development/editable installation commands.
- visualize the remote logs using pycharm and my code (TODO: have the download be automatic...perhaps not needed)
- Download the code from the cluster using pycharm remote
- Then copy paste the remote path (from pycharm, browse remote)
- Using the copied path run
tbb path2log
e.g.tbbb /home/miranda9/data/logs/logs_Mar06_11-15-02_jobid_0_pid_3657/tb
to have tbbb
work as the command add to your .zshrc
(or .bashrc
):
alias tbb="sh ${HOME}/ultimate-utils/run_tb.sh"
then the command tbb path2log
should work.
ref: see files
- https://github.com/brando90/ultimate-utils/blob/master/run_tb.sh
- https://github.com/brando90/ultimate-utils/blob/master/ultimate-utils-proj-src/execute_tensorboard.py
If you use this implementation consider citing us:
@software{brando2021ultimateutils,
author={Brando Miranda},
title={The ultimate utils library for Machine Learning and Artificial Intelligence},
url={https://github.com/brando90/ultimate-utils},
year={2021}
}