This repository provides a few examples about some useful packages and methods
Illustrates some usages of proxy http/https/socks5 for requests library
Illustrates examples of StackingClassifier from mlxtend library
Source: http://rasbt.github.io/mlxtend/user_guide/classifier/StackingClassifier/
Illustrates small example how to use GridSearchCV with params
Illustrates small example how to make a simple logger using ligging library
Source: https://python-scripts.com/logging-python
Illustrates example of function which provides a generator for batches of size n
Illustrates example of how you can use a generator as a wrapper over another generator. In this case augmentation generator was used as a wrapper over read files generator
Illustrates performance of left join. Change N to see time performance of pd.merge function
Allows to get information about size of all variables
This folder contains several examples how to use decorators
Something more about decorators: https://realpython.com/primer-on-python-decorators/
Add these row to file ~/.bash_profile
:
export PATH=/usr/local/Cellar/rabbitmq/<version>/sbin:$PATH
In folder: (usually in folder with binaries: /usr/bin/), sudo ln -s {path_to_executable} {name_of_alias}
for example sudo ln -s /home/dmitryhse/.local/bin/pip3.7 pip3.7
pip3 install virtualenv
- In your project folder:
virtualenv -p {path_to_python} {name_of_virtualenv}
for example:virtualenv -p /usr/bin/python3.7 .venv
Create: https://anbasile.github.io/programming/2017/06/25/jupyter-venv/
Remove: jupyter kernelspec uninstall unwanted-kernel
Rename Kernel: https://stackoverflow.com/questions/45085233/jupyter-kernel-is-there-a-way-to-rename-them
jupyter kernelspec list
- list of available kernels
Here you will find an example when a very simple dataset can't be solved with ML algorithms without any feature engineering, but meanwhile you will find that the dataset itself is extremely easy
This file compares 3 structures: typedict, NamedTuple and dataclass
-
git revert <commit_hash>
(this commit will be reverted!) -
git push
Install: https://www.tabnine.com/install/jupyternotebook Install2: https://github.com/codota/jupyter-tabnine
in case error:
TabNine was unable to install the python semantic completion backend.
The command that failed was: `pip install python-language-server`
For help, see tabnine.com/semantic.
Or, type TabNine::no_sem to disable semantic completion for Python.
(TabNine works well even without semantic completion.)
Try to execute:
python3 -m pip install python-language-server
-
brew install bfg
-
cd to your repo
-
bfg --delete-files queue.py
wherequeue.py
is your file with sensitive data. Even if it is in some folder you have to run this command in root directory of repo -
gith push -f