JLpy Utils Package
Custom modules/classes/methods for various data science, computer vision, and machine learning operations in python
Dependancies
- General libraries distributed with Anaconda (pandas, numpy, sklearn, scipy, matplotlib, etc.)
- image/video analysis:
- cv2 (pip install opencv-python)
- ML_models sub-package dependancies:
- tensorflow or tensorflow-gpu
- dill
Installing & Importing
In CLI:
$ pip install -upgrade JLpy_utils_package
After this, the package can be imported into jupyter notebook or python in general via the comman:
import JLpy_utils_package as JLutils
Modules Overview
There are several modules in this package:
JLutils.summary_tables
JLutils.plot
JLutils.img
JLutils.video
JLutils.ML_models
JLutils.summary_tables and JLutils.plot probably aren't that useful for most people, so we won't go into detail on them here, but feel free to check them out if you're curious.
JLutils.img
The JLutils.img module contains a number of functions related to image analysis, most of which wrap SciKit image functions in some way. The most interesting functions/classes are the JLutils.img.auto_crop.... and JLutils.img.decompose_video_to_img().
The auto_crop class allows you to automatically crop an image using countours via the use_countours method, which essentially wraps the function skimage.measure.find_contours function. Alternatively, the use_edges method provides cropping based on the skimage.feature.canny function. Generally, I find the use_edges runs faster and gives more intuitive autocropping results.
The decompose_video_to_img() is fairly self explanatory and basically uses cv2 to pull out and save all the frames from a video.
JLutils.video
...
JLutils.kaggle
This module contains functions for interacting with kaggle. The simplest function is:
JLutils.kaggle.competition_download_files(competition)
where competition is the competition name, such as "home-credit-default-risk"
Release files for JLpy-utils-package 2.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| JLpy_utils_package-2.0.5.tar.gz | 30.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| JLpy_utils_package-2.0.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 92.1 kB
Release files / JLpy_utils_package-2.0.5.tar.gz
| Download URL | JLpy_utils_package-2.0.5.tar.gz |
|---|---|
| Size | 30.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9be3a9c6f87867bc532cd422343381d555ea4ed211d0a703dc74b5911a5b87d2
|
|
BLAKE2b-256 checksum How to use checksums |
84256341b7b238d0752ee3175b72f016b20617edf2acc6a65d27810350537eea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.3
|
Release files / JLpy_utils_package-2.0.5-py3-none-any.whl
| Download URL | JLpy_utils_package-2.0.5-py3-none-any.whl |
|---|---|
| Size | 61.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f6fb541cc2045c974868d851258efebe4846c4c5e0b9e658eab355ae9043a8eb
|
|
BLAKE2b-256 checksum How to use checksums |
110efff068c204558b2cc076b65d129e4e4f794654de07c84780fdddb16cc1e1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.3
|