A helper library for Hops that facilitates development by hiding the complexity of discovering services and setting up security.
Project description
hops-util-py is a helper library for Hops that facilitates development by hiding the complexity of running applications, discovering services and interacting with HopsFS.
It provides an Experiment API to run Python programs such as TensorFlow, Keras and PyTorch on a Hops Hadoop cluster. A TensorBoard will be started when an Experiment begins and the contents of the logdir saved in your Project.
An Experiment could be a single Python program, which we refer to as an Experiment. Grid search or genetic hyperparameter optimization such as differential evolution which runs several Experiments in parallel, which we refer to as Parallel Experiment. The library supports ParameterServerStrategy and CollectiveAllReduceStrategy, making multi-machine/multi-gpu training as simple as invoking a function for orchestration. This mode is referred to as Distributed Training.
Moreover it provides an easy-to-use API for defining TLS-secured Kafka producers and consumers on the Hops platform.
Quick Start
To Install:
>>> pip install hops
Sample usage:
>>> from hops import experiment >>> from hops import hdfs >>> notebook = hdfs.project_path() + "Jupyter/Experiment/..." #path to your notebook >>> # minimal_mnist is a function you defined >>> experiment.launch(minimal_mnist, #minimal_mnist is your training function >>> name='mnist estimator', >>> description='A minimal mnist example with two hidden layers', >>> versioned_resources=[notebook]
To build docs:
>>> cd docs; sphinx-apidoc -f -o source/ ../hops ../hops/distribute/ ../hops/launcher.py ../hops/grid_search.py ../hops/differential_evolution.py ../hops/random_search.py ../hops/version.py ../hops/constants.py; make html; cd ..
Documentation
An overview of HopsML, a python-first ML pipeline is available here: hopsML
Example notebooks for doing deep learning and big data processing on Hops are available here: hops-examples
API documentation is available here: API-docs
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file hops-0.7.0.0.tar.gz
.
File metadata
- Download URL: hops-0.7.0.0.tar.gz
- Upload date:
- Size: 37.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/2.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 96373d6416386a22cb022a0f45b20cb0cb0868fdc687d1708ce9f87f1b468385 |
|
MD5 | cf5e4039aaa46e5c8aa133a7d303765c |
|
BLAKE2b-256 | 5e25de6d9203199125fc231ed898facf36f8a6e3a92849d44a438018efa6e244 |