Skip to content
/ util Public
forked from tchlux/util

A machine learning, optimization, and data science utilities package.

License

Notifications You must be signed in to change notification settings

winterdl/util

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TITLE: util
PURPOSE: A machine learning, optimization, and data science utilities package.
AUTHOR: Thomas C.H. Lux
EMAIL: tchlux@vt.edu

INSTALLATION:

$ pip install git+https://github.com/tchlux/util.git

ABOUT

Contains various useful utilities.

util.approximate

Classes for many different approximation algorithms. Contains wrappers for converting pure approximators (numeric outputs) to classifiers.

util.data

Class "Data" behaves like a modified Pandas dataframe, but is written in pure python.

util.decorators

Decorator function "same_as" makes the signature and documentation of a function copy another. Decorator function "cache" generates a unique file name for (input,output) pairs from a function and stores the pair in a serialized file for faster re-execution. Decorator function "stability_lock" uses a cache of (input,output) pairs to check if a function maintains the same behaviors after modifications are made. Decorator function "timeout" uses a system call to cancel a python function (must respond to global interpreter lock) after a certain amount of time has elapsed. Decorator function "type_check" performs (unpythonic) type checking of function inputs before executing a function.

util.multi_dim_analysis

Function "make_test_data" splits a given data set into components that allow for detailed analysis of model performance with increasing dimension and amounts of training data. Class "MDA_Iterator" simplifies the process of iterating through test cases generated by the function "make_test_data".

util.optimize

Function "minimize" uses a meta-heuristic optimization algorithm to solve a global optimization problem given an arbitrary function.

util.plot

Provides an extensive interface to HTML plotting through plotly. All documentation is within module, see documentation of submodule with "from util import plotly; help(plotly)" for more details.

util.stats

Contains useful statistical functions for data analysis.

util.system

Function "run" is a (python+OS)-safe interface to command-line execution that cleanly handles errors. Class "AtomicOpen" provides an atomic file operation class that uses system locking mechanisms to enforce atomic operations on files.

About

A machine learning, optimization, and data science utilities package.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Fortran 70.2%
  • Python 29.7%
  • Makefile 0.1%