Select module classes and functions using yaml, without any if-statements.
Project description
easy_module_attribute_getter
Installation:
pip install easy_module_attribute_getter
Example usage:
1. Specify class names and arguments in your yaml config file:
models:
modelA:
densenet121:
pretrained: True
memory_efficient: True
modelB:
resnext50_32x4d:
pretrained: True
2. Setup your argparser:
import argparse
from easy_module_attribute_getter import YamlReader
parser = argparse.ArgumentParser()
# (optional) add arguments to your argparser
YR = YamlReader(argparser=parser)
...
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
Close
Hashes for easy_module_attribute_getter-0.9.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 57bfffd5f0397770a4b66ffb65c3aa18738e7b4dfab654ccc088bdfc0e57b68b |
|
MD5 | b37ae83792912d032b37a24c72246bc6 |
|
BLAKE2b-256 | 14f7547a29ef69289c9ef93f8e0684da5a420dccbf816a7421e1db235e98a6ea |
Close
Hashes for easy_module_attribute_getter-0.9.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 80dc517650391dcb5182d35c6f253a1436d282d7645107df2ed494b112462ca4 |
|
MD5 | 2a4e89bf95347620eee1646f074e826a |
|
BLAKE2b-256 | 690f56b5a208517479f353fcbc83e0a874fa3346c27d681e7b323e54738d3c8d |