Feyn Documentation

Feyn Documentation

  • Learn
  • Guides
  • Tutorials
  • API Reference
  • FAQ

›Feyn

Changelog

  • Feyn Changelog

Feyn

  • feyn
  • feyn.datasets
  • feyn.filters
  • feyn.inference
  • feyn.insights
  • feyn.losses
  • feyn.metrics
  • feyn.reference
  • feyn.tools
  • feyn.plots
  • feyn.plots.interactive

feyn.plots.interactive

This module contains interactive counterparts of some plotting functions for interactive IPython environments (such as Jupyter).

function interactive_activation_flow

def interactive_activation_flow(
    model: feyn._model.Model,
    data: pandas.core.frame.DataFrame
)
EXPERIMENTAL: For IPython kernels only.
Interactively plot a model displaying the flow of activations.

Requires installing ipywidgets, and enabling the extension in jupyter notebook or jupyter lab.
Jupyter notebook: jupyter nbextension enable --py widgetsnbextension
Jupyter lab: jupyter labextension install @jupyter-widgets/jupyterlab-manager

Arguments:
    model {feyn.Model} -- A feyn.Model we want to describe given some data.
    data {DataFrame} -- A Pandas DataFrame to compute on.

Returns:
    SVG -- SVG of the model summary.

function interactive_model_response_1d

def interactive_model_response_1d(
    model: feyn._model.Model,
    data: pandas.core.frame.DataFrame,
    input_constraints: Dict[str, Union[Iterable, float, str]] = None
)
Plot an interactive version of the feyn.plots.plot_model_response_1d (model.plot_response_1d),
    that allows you to change the response variable `by`.

Arguments:
    model {feyn.Model} -- The model to calculate the response for
    data {DataFrame} -- The data to be analyzed

Keyword Arguments:
    input_constraints {dict} -- The constraints on the remaining model inputs (default: {None})
← feyn.plots
  • function interactive_activation_flow
  • function interactive_model_response_1d

Subscribe to get news about Feyn and the QLattice.

You can opt out at any time, and you can read our privacy policy here.

Copyright © 2024 Abzu.ai - Feyn license: CC BY-NC-ND 4.0
Feyn®, QGraph®, and the QLattice® are registered trademarks of Abzu®