Skip to main content

handy utility funcitons for various stuff in python

Project description

JUtils

A collection of useful python snippets I often use.

Getting Started

Prerequisites

Installing

pip install .

jutils.dimred

Module for dimesionality reduction functions.

from jutils.dimred import tsne_kwargs, reduce_dims
import numpy as np

features = np.loadtxt('path/to/features/file')

kwargs = tsne_kwargs(n_dims=2, initial_dims=100)
reduced_features = reduce_dims(features, **kwargs, technique='tsne')

jutils.plot

Module for commonly used plots

from jutils.plot import Scatter3d
import numpy as np

features = np.loadtxt('path/to/features/file')
labels = np.loadtxt('path/to/labels/file')

fig = Scatter3d(features, labels)
fig.write_html('my_figure.html', auto_open=True)

jutils.image.gifer

Converts a series of images into a gif in order of numerical numbers in their name

from jutils.image import gifer

gifer(glob_pattern='in/*', out_fpath='ouput.gif')

Project details


Release history Release notifications

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for jutils, version 0.1
Filename, size & hash File type Python version Upload date
jutils-0.1-py3-none-any.whl (9.0 kB) View hashes Wheel py3
jutils-0.1.tar.gz (6.5 kB) View hashes Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page