API Reference

mlsquare.imly.dope(model, **kwargs)[source]

Transpiles a given model to it’s DNN equivalent.

Parameters:
  • model (class) – The primal model passed by the user that needs to be transpiled.
  • using (str) – Choice of type of “model transpilation” you want your model to undergo.
  • accepts None and 'dnn' as values. (Currently) –
    1. None: Returns the model as it is.
    2. dnn (default): Converts the model to it’s DNN equivalent.
  • best (bool) – Whether to optmize the model or not.
  • **kwargs (dict) – Dictionary of parameters mapped to their keras params.
Returns:

The transpiled model.

Return type:

model (class)