comm package

Submodules

comm.log module

class comm.log.Log

Bases: object

Class for logging

classmethod debug(_str)

Logs a message with level DEBUG on this logger.

Args:

_str (str): The message to be logged.

classmethod info(_str)

Logs a message with level INFO on this logger.

Args:

_str (str): The message to be logged.

classmethod warn(_str)

Logs a message with level WARN on this logger.

Args:

_str (str): The message to be logged.

comm.registry module

Register subclasses for class DataLoader, class Optimizer and class LearningRate.

class comm.registry.Registry

Bases: object

Registry the subclasses for class DataLoader, class Optimizer and class LearningRate.

DataLoaderRegistry = <comm.registry._registry object>
LRRegistry = <comm.registry._registry object>
OptimizerRegistry = <comm.registry._registry object>
base_cls

alias of train.learningrate.learningrate.BaseLearningRate

factory = <comm.registry._registry object>
factory_name = 'learningrate'
k = 'StepLR'
md = <module 'train.learningrate.StepLR' from '/home/xiangning/xinsui2/BenchENAS/train/learningrate/StepLR.py'>
module = '/home/xiangning/xinsui2/BenchENAS/train/learningrate/StepLR.py'
modules = ['/home/xiangning/xinsui2/BenchENAS/train/learningrate/learningrate.py', '/home/xiangning/xinsui2/BenchENAS/train/learningrate/CosineAnnealingLR.py', '/home/xiangning/xinsui2/BenchENAS/train/learningrate/ExponentialLR.py', '/home/xiangning/xinsui2/BenchENAS/train/learningrate/MultiStepLR.py', '/home/xiangning/xinsui2/BenchENAS/train/learningrate/__init__.py', '/home/xiangning/xinsui2/BenchENAS/train/learningrate/StepLR.py']
v

alias of train.learningrate.StepLR.StepLR

comm.utils module

class comm.utils.CacheToResultFile

Bases: object

Storing the identifer and the corresponding fitness value of the evaluated individual to result file.

classmethod do(file_id, best_acc)

Storing the identifer and the corresponding fitness value of the evaluated individuals in a cache.

Args:

file_id (str): The name of the individual. best_acc (float): The acc of the individual.

class comm.utils.GPUFitness

Bases: object

Class for getting the fitness value of all individuals evaluated.

classmethod read()

Get the fitness value of all individuals evaluated.

class comm.utils.PlatENASConfig(section)

Bases: object

Read the global.ini

read_ini_file(key)

Read the corresponding value of the key.

Args:

key (str): The key to read.

Module contents