General utilities
Project description
reinautils
The Utilities included are:
Parameters
Parameters (**kargs)
A splecial class whos atributes can be referenced as attributs or as dictionaty keys
device_by_name
device_by_name (name:str)
Return reference to cuda device by using Part of it’s name
Args: name: part of the cuda device name (shuuld be distinct)
Return: Reference to cuda device
Updated: Yuval 12/10/19
DatasetCat
DatasetCat (*datasets)
Concatenate datasets for Pytorch dataloader
The normal pytorch implementation does it only for raws. this is a “column” implementation
Arges: datasets: list of datasets, of the same length
Updated: Yuval 12/10/2019
Install
pip install reinautils
How to use
Parameters
You can create a Parameters class from dict
params=Parameters(first=1,second='A')
print(params.first)
1
You can also creat a Parameters class and populate it from a json file
params2=Parameters().from_json('config_demo.json')
print(params2)
Parameters:
path : Parameters:
data : /workspace/hd/
tmp : /workspace/hd/tmp/
features : /workspace/nvme/features/
train : /workspace/nvme/train/
models : /workspace/hd/models/
output : /workspace/hd/outputs/
test : /workspace/nvme/test/
platform : myserver
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file reinautils-0.0.3.tar.gz.
File metadata
- Download URL: reinautils-0.0.3.tar.gz
- Upload date:
- Size: 15.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
043dc064f3f70acfeea0dc960f48a304d59ccee4b88f6f4bbaf4050d123dfba1
|
|
| MD5 |
f1a31264e025006e35d8756ba3b6ac1f
|
|
| BLAKE2b-256 |
8007a5e9648a9b5b2a3cf243b1a1a503f3c09054feffc254bfdaef16aa9f531b
|
File details
Details for the file reinautils-0.0.3-py3-none-any.whl.
File metadata
- Download URL: reinautils-0.0.3-py3-none-any.whl
- Upload date:
- Size: 9.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
10d7c254d885d14dd82f8fcaf71195c8169d9875abe4c49f3a14752b7e24b5a6
|
|
| MD5 |
e8c6093f6a838fbbcbf0c1f91d9e0521
|
|
| BLAKE2b-256 |
b6a39a1a7a7dd0a44456d7e397c0dd47c0152bef4bdd8a453772f04404ed9a83
|