module grammar.gactions_num

Inheritance diagram of mlprodict.grammar.gactions_num

Short summary

module mlprodict.grammar.gactions_num

Action definition.

source on GitHub

Classes

class

truncated documentation

MLActionAdd

Addition

MLActionSign

Sign of an expression: 1=positive, 0=negative.

MLActionTestEqual

Operator ==.

MLActionTestInf

Operator <.

Properties

property

truncated documentation

ChildrenResults

Return the last execution results.

ChildrenResults

Return the last execution results.

ChildrenResults

Return the last execution results.

ChildrenResults

Return the last execution results.

Methods

method

truncated documentation

__init__

__init__

__init__

__init__

execute

execute

execute

execute

Documentation

Action definition.

source on GitHub

class mlprodict.grammar.gactions_num.MLActionAdd(act1, act2)[source]

Bases: mlprodict.grammar.gactions.MLActionBinary

Addition

source on GitHub

__init__(act1, act2)[source]
Parameters
  • inputs – type of inputs

  • output – output type

  • name – a name which identifies the action

  • children – actions used to compute this one

source on GitHub

execute(**kwargs)[source]

Computes the action. Returns the output.

source on GitHub

class mlprodict.grammar.gactions_num.MLActionSign(act1)[source]

Bases: mlprodict.grammar.gactions.MLActionFunctionCall

Sign of an expression: 1=positive, 0=negative.

source on GitHub

__init__(act1)[source]
Parameters
  • inputs – type of inputs

  • output – output type

  • name – a name which identifies the action

  • children – actions used to compute this one

source on GitHub

execute(**kwargs)[source]

Computes the action. Returns the output.

source on GitHub

class mlprodict.grammar.gactions_num.MLActionTestEqual(act1, act2)[source]

Bases: mlprodict.grammar.gactions.MLActionBinary

Operator ==.

source on GitHub

__init__(act1, act2)[source]
Parameters
  • inputs – type of inputs

  • output – output type

  • name – a name which identifies the action

  • children – actions used to compute this one

source on GitHub

execute(**kwargs)[source]

Computes the action. Returns the output.

source on GitHub

class mlprodict.grammar.gactions_num.MLActionTestInf(act1, act2)[source]

Bases: mlprodict.grammar.gactions.MLActionBinary

Operator <.

source on GitHub

__init__(act1, act2)[source]
Parameters
  • inputs – type of inputs

  • output – output type

  • name – a name which identifies the action

  • children – actions used to compute this one

source on GitHub

execute(**kwargs)[source]

Computes the action. Returns the output.

source on GitHub