eml package

Submodules

eml.util module

class eml.util.ModelDesc(ml, mdl, name)[source]

Bases: object

Class used to shape a model descriptor

A model descriptor summarize the main feature a system, in this case will be used for empirical model learning models

_ml

Machine learning model

_mdl

Optimization model

_name

Name of the model

_exps

Expressions in the model

Type:string
Parameters:
  • ml – Machine learning model
  • mdl – Optimization model
  • name (string) – Name of the model
expressions()[source]

Get all the expressions stored

Returns:Expressions – Set of the expressions in the model
Return type:dict(expr)
get(xtype, xidx)[source]

Get expression

Parameters:
  • xtype (string) – Type of expression
  • xidx (int) – Index we want to use to store the expression
Returns:

Expr – Expression located by the coordinates

Return type:

generic type`

has(xtype, xidx)[source]

Check if the model contains an expression given some coordinares

Parameters:
  • xtype (string) – Type of expression
  • xidx (int) – Index we want to use to store the expression
Returns:

Acknowledge – True if the expression is present, False otherwise

Return type:

bool

ml_model()[source]

Get machine learning model

Returns:Machine learning model – Machine learning model
Return type:generic type
model()[source]

Get the optimization model

Returns:Optimization Model – Combinatorial system
Return type:docplex.mp.model.Model
name()[source]

Get name of the model

Returns:Name – Name of the model
Return type:string
store(xtype, xidx, val)[source]

Store expression

Parameters:
  • xtype (string) – Type of expression
  • xidx (int) – Index we want to use to store the expression
  • val – Value to store

Module contents