module grammar_sklearn.grammar.gactions
¶
Short summary¶
module mlprodict.grammar_sklearn.grammar.gactions
Action definition.
Classes¶
class |
truncated documentation |
---|---|
Base class for every action. |
|
Any binary operation. |
|
Cast into another type. |
|
Concatenate number of arrays into an array. |
|
Constant |
|
A function. |
|
Any function call. |
|
Addition |
|
Returns a results. |
|
Any binary operation. |
|
Variable. The constant is only needed to guess the variable type. |
Properties¶
property |
truncated documentation |
---|---|
Return the last execution results. |
|
|
Return the last execution results. |
|
Return the last execution results. |
|
Return the last execution results. |
|
Return the last execution results. |
|
Return the last execution results. |
|
Return the last execution results. |
|
Return the last execution results. |
|
Return the last execution results. |
|
Return the last execution results. |
|
Return the last execution results. |
Static Methods¶
staticmethod |
truncated documentation |
---|---|
Guesses a type given a value. |
|
|
Guesses a type given a value. |
Methods¶
method |
truncated documentation |
---|---|
|
Returns additional parameters to add the function call. |
Returns additional parameters to add the function call. |
|
Enumerates all variables. |
|
|
Enumerates all variables. |
|
Enumerates all variables. |
|
Enumerates all variables. |
|
Enumerates all variables. |
|
Enumerates all variables. |
|
Enumerates all variables. |
|
Enumerates all variables. |
|
Enumerates all variables. |
|
Enumerates all variables. |
Enumerates itself. |
|
Computes the action. Returns the output. |
|
|
Computes the action. Returns the output. |
Concatenation |
|
|
Computes the action. Returns the output. |
|
Computes the action. Returns the output. |
Returns a formated string which retruns the outputs. |
|
|
Returns a formated string which retruns the outputs. |
|
Returns a formated string which retruns the outputs. |
|
Returns a formated string which retruns the outputs. |
|
Returns a formated string which retruns the outputs. |
|
Returns a formated string which retruns the outputs. |
|
Returns a formated string which retruns the outputs. |
|
Returns a formated string which retruns the outputs. |
|
Returns a formated string which retruns the outputs. |
Documentation¶
@file @brief Action definition.
- class mlprodict.grammar_sklearn.grammar.gactions.MLAction(inputs, output, name, children=None)¶
Bases:
mlprodict.grammar_sklearn.grammar.api_extension.AutoAction
Base class for every action.
@param inputs type of inputs @param output output type @param name a name which identifies the action @param children actions used to compute this one
- property ChildrenResults¶
Return the last execution results.
- __init__(inputs, output, name, children=None)¶
@param inputs type of inputs @param output output type @param name a name which identifies the action @param children actions used to compute this one
- _export_c(hook=None, result_name=None)¶
Wrapper to cache the result of a function.
- _export_json(hook=None, result_name=None)¶
Wrapper to cache the result of a function.
- enumerate_variables()¶
Enumerates all variables.
- execute(**kwargs)¶
Computes the action. Returns the output.
- graph_execution()¶
Returns a formated string which retruns the outputs.
- class mlprodict.grammar_sklearn.grammar.gactions.MLActionBinary(act1, act2, name)¶
Bases:
mlprodict.grammar_sklearn.grammar.gactions.MLAction
Any binary operation.
@param act1 first element @param act2 second element @param name operator name
- __init__(act1, act2, name)¶
@param act1 first element @param act2 second element @param name operator name
- _export_c(hook=None, result_name=None)¶
Wrapper to cache the result of a function.
- class mlprodict.grammar_sklearn.grammar.gactions.MLActionCast(act1, new_type)¶
Bases:
mlprodict.grammar_sklearn.grammar.gactions.MLActionUnary
Cast into another type.
@param act1 element @param new_type new type
- __init__(act1, new_type)¶
@param act1 element @param new_type new type
- _export_c(hook=None, result_name=None)¶
Wrapper to cache the result of a function.
- execute(**kwargs)¶
Computes the action. Returns the output.
- class mlprodict.grammar_sklearn.grammar.gactions.MLActionConcat(act1, act2)¶
Bases:
mlprodict.grammar_sklearn.grammar.gactions.MLActionFunctionCall
Concatenate number of arrays into an array.
@param act1 first element @param act2 second element
- __init__(act1, act2)¶
@param act1 first element @param act2 second element
- execute(**kwargs)¶
Concatenation
- class mlprodict.grammar_sklearn.grammar.gactions.MLActionCst(cst, inout_type=None, comment=None)¶
Bases:
mlprodict.grammar_sklearn.grammar.gactions.MLAction
Constant
@param cst constant @param inout_type type @param comment comment
- __init__(cst, inout_type=None, comment=None)¶
@param cst constant @param inout_type type @param comment comment
- _export_c(hook=None, result_name=None)¶
Wrapper to cache the result of a function.
- _export_json(hook=None, result_name=None)¶
Wrapper to cache the result of a function.
- execute(**kwargs)¶
Computes the action. Returns the output.
- graph_execution()¶
Returns a formated string which retruns the outputs.
- static guess_type(value)¶
Guesses a type given a value.
- class mlprodict.grammar_sklearn.grammar.gactions.MLActionFunction(act, name)¶
Bases:
mlprodict.grammar_sklearn.grammar.gactions.MLActionUnary
A function.
@param act action @param name name
- __init__(act, name)¶
@param act action @param name name
- _export_c(hook=None, result_name=None)¶
Wrapper to cache the result of a function.
- execute(**kwargs)¶
Computes the action. Returns the output.
- class mlprodict.grammar_sklearn.grammar.gactions.MLActionFunctionCall(name, output, *acts)¶
Bases:
mlprodict.grammar_sklearn.grammar.gactions.MLAction
Any function call.
@param name function name @param output type @param *acts list of arguments
- __init__(name, output, *acts)¶
@param name function name @param output type @param *acts list of arguments
- _export_c(hook=None, result_name=None)¶
Wrapper to cache the result of a function.
- _optional_parameters()¶
Returns additional parameters to add the function call.
- class mlprodict.grammar_sklearn.grammar.gactions.MLActionIfElse(cond, act1, act2, check_type=True, comment=None)¶
Bases:
mlprodict.grammar_sklearn.grammar.gactions.MLAction
Addition
@param cond condition @param act1 first action @param ect2 second action @param check_type check ype @param comment comment
- __init__(cond, act1, act2, check_type=True, comment=None)¶
@param cond condition @param act1 first action @param ect2 second action @param check_type check ype @param comment comment
- _export_c(hook=None, result_name=None)¶
Wrapper to cache the result of a function.
- execute(**kwargs)¶
Computes the action. Returns the output.
- class mlprodict.grammar_sklearn.grammar.gactions.MLActionReturn(act)¶
Bases:
mlprodict.grammar_sklearn.grammar.gactions.MLAction
Returns a results.
@param act action to return
- __init__(act)¶
@param act action to return
- _export_c(hook=None, result_name=None)¶
Wrapper to cache the result of a function.
- execute(**kwargs)¶
Computes the action. Returns the output.
- class mlprodict.grammar_sklearn.grammar.gactions.MLActionUnary(act1, name)¶
Bases:
mlprodict.grammar_sklearn.grammar.gactions.MLAction
Any binary operation.
@param act1 element @param name operator name
- __init__(act1, name)¶
@param act1 element @param name operator name
- _export_c(hook=None, result_name=None)¶
Wrapper to cache the result of a function.
- class mlprodict.grammar_sklearn.grammar.gactions.MLActionVar(value, name, inout_type=None)¶
Bases:
mlprodict.grammar_sklearn.grammar.gactions.MLActionCst
Variable. The constant is only needed to guess the variable type.
@param value value @param name variable name @param inout_type type
- __init__(value, name, inout_type=None)¶
@param value value @param name variable name @param inout_type type
- _export_c(hook=None, result_name=None)¶
Wrapper to cache the result of a function.
- _export_json(hook=None, result_name=None)¶
Wrapper to cache the result of a function.
- enumerate_variables()¶
Enumerates itself.
- execute(**kwargs)¶
Computes the action. Returns the output.
- graph_execution()¶
Returns a formated string which retruns the outputs.