No real work done, really. Just fun.
Created a hyperlink! (and base docs for moe.eval)
todo_include_todos = True
+autodoc_default_flags = ['show-inheritance']
+
# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
Moe configuration
=================
-The configuration consists of lazy definition-style configuration resolver and configuration parser.
-.. contents::
+.. contents::
+
+The configuration consists of lazy definition-style configuration resolver and configuration parser.
+The configuration variables form a dot-separated tree, but internally the list of variables is just
+flat with full names.
-Config elements
-----------------
+Configuration tree
+++++++++++++++++++
.. automodule:: moe.config
- :members: ConfigError, UndefinedError, VariableNameError, VariableFixedError, CyclicConfigError, ConfigTree, ConfigElem, ConfigCondition
- :undoc-members:
-
-Internal classes
-++++++++++++++++
+ Exceptions
+ ----------
+
+ .. autoclass:: ConfigError
+ .. autoclass:: UndefinedError
+ .. autoclass:: VariableNameError
+ .. autoclass:: VariableFixedError
+ .. autoclass:: CyclicConfigError
+
+ Configuration tree
+ ------------------
+
+ .. autoclass:: ConfigTree
+ :members:
+
+ Main config elements
+ --------------------
-.. autoclass:: moe.config.Operation
- :members:
- :undoc-members:
-.. autoclass:: moe.config.ConfigVar
- :members:
- :undoc-members:
-.. autoclass:: moe.config.ConfigExpression
- :members:
- :undoc-members:
+ .. autoclass:: ConfigElem
+ :members:
+ .. autoclass:: ConfigCondition
+ :members:
+ .. autoclass:: ConfigVar
+ :members:
+
+ Internal config elements
+ ------------------------
+ .. autoclass:: Operation
+ .. autoclass:: ConfigExpression
Config parser
---------------
++++++++++++++
.. automodule:: moe.config_parser
--- /dev/null
+.. _eval:
+
+Class `Eval`
+============
+
+.. automodule:: moe.eval
+
+ .. autoclass:: Eval
+ :members:
Moe Logging
===========
-`Loggers` is a collection of logggers for :class:`~moe.eval.Eval`, initializing 4 subloggers (see class description).
+.. automodule:: moe.log
-Use as `e.log.debug(...)` for main log that goes both to `test` and `main` log,
-`e.log.test.debug(...)` for individual logs.
-
-.. autoclass:: moe.log.Loggers
- :members:
+ .. autoclass:: Loggers
+ :members:
Evaluation timeline
====================
-Eval.init
----------
+`Eval.init`
+------------
-`Eval.init` is run before the main pipeline, does the following:
+:func:`Eval.init <moe.eval.Eval.init>` is run before the main pipeline and does the following:
======= ==========
Time Action
"""
-config.py
----------
-
Lazy conditional string evaluation module for Moe configuration variables.
-
* Each variable has ordered list of operations (definitions), each defining operation either
assigns (SET) or appends (APPEND) value of an expression to the variable. Each operation may be guarded by condition(s).
r"""
-config_parser.py
-----------------
-
Simple Moe configuration file syntax parser.
Generally, whitespace and comments are alowed everywhere except in variable names and inside expressions.
#!/usr/bin/env python
+"""
+
+`Loggers` is a collection of logggers for :class:`~moe.eval.Eval`, initializing 4 subloggers (see class description).
+
+Use as `e.log.debug(...)` for main log that goes both to `test` and `main` log,
+`e.log.test.debug(...)` for individual logs.
+
+.. :data:: DDEBUG = 5
+ Very verbose debugging level
+
+"""
+
+
import sys, os
import logging
from logging import Logger, StreamHandler
+logging.addLevelName(5,'DDEBUG')
+
class Loggers(Logger):
"""Defines several logs: