• Rules Grammar

    Double and Single quotes

    The difference between " and ' its very important  for rules definition. All constants  which single quoted are converted to  integer hash code and further compared to parameters as integers. Those parameters  must be also  alphanumeric and place in single quote. Double quotes  used for alphanumericals constants  inside  predefined functions which argument is string.

    Conditional Operands

    For convinience absolutly  dosn't matter in which order conditional operands are follow: '>=' or '=>' its irrelivant for the translator.

    All other operations and syntax

    All other operations: *,/,-,+  exactly the same as in  Python 3.5 .  For non user defined functions like sum(), mean() which is part of theano library user still required to do some translators which translate from user convinient waylike Sum_of() to theanos syntax : sum(). see  conv_rule_dict = { ...} in RulesFactory.py

    How define your own function

    To define your own function go to code :

    https://github.com/zeroprg/python-brm/blob/master/main/app/brm_core/RulesFactory.py  . Find definition of  _funct_dict and  add a new function overthere . Use the same   np.vectorize(funct_name)    numpy method tto apply  to all parameters (vectorizing).


    OR and AND

    All subrules of rule defined in  one row of excell spread sheet concatunated by AND condition.  If for any reason OR concatunation required used this construction: PARAMk= ['A','B', 'hello world'] which means PRAMk = 'A' OR PARAMk = 'B' OR PARAMk = 'hello world' 

    FAQs

    Customers have questions, we have answers. Place your questions here.