Feyn

Feyn

  • Tutorials
  • Guides
  • API Reference
  • FAQ

›Advanced

Getting Started

  • Quick start
  • Using Feyn
  • Installation
  • Transition to Feyn 3.0
  • What is a QLattice?
  • Community edition
  • Commercial use

Essentials

  • Auto Run
  • Visualise a model
  • Summary plot
  • Semantic types
  • Categorical features
  • Estimating priors
  • Model parameters
  • Predicting with a model
  • Saving and loading models
  • Filtering models
  • Seeding a QLattice
  • Privacy

Evaluate Regressors

  • Regression plot
  • Residuals plot

Evaluate Classifiers

  • ROC curve
  • Confusion matrix
  • Plot probability scores

Understand Your Models

  • Plot response
  • Plot response 2D
  • Model signal
  • Segmented loss
  • Interactive flow

Primitive Operations

  • Using the primitives
  • Updating priors
  • Sample models
  • Fitting models
  • Pruning models
  • Diverse models
  • Updating a QLattice
  • Validate data

Advanced

  • Converting a model to SymPy
  • Setting themes
  • Saving a graph as an image
  • Using the query language
  • Model complexity

Setting themes

by: Kevin Broløs
(Feyn version 3.0 or newer)

In some situations, such as if you're running in a dark mode editor, or if you're looking to publish your results in a journal, you might want to use a different theme.

import feyn
from feyn.plots import Theme

ql = feyn.QLattice()
models = ql.sample_models(['Hello'], 'World')

We have four themes available: Default, Dark, Monochrome and Monochrome Dark

Default
Dark Mode
Monochrome
Monochrome Dark Mode
Theme.set_theme('default')
models[0]

Light mode


These themes also apply to our plots and graphs. We've made a comparison to the stylesheet reference in matplotlib down below, and also showcase some colormaps that are registered with matplotlib.

Light mode Light mode Light mode

Theme.set_theme('dark')
models[0]

These themes also apply to our plots and graphs. We've made a comparison to the stylesheet reference in matplotlib down below, and also showcase some colormaps that are registered with matplotlib.

Theme.set_theme('mono')
models[0]

Monochrome mode


These themes also apply to our plots and graphs. We've made a comparison to the stylesheet reference in matplotlib down below, and also showcase some colormaps that are registered with matplotlib.

Monochrome mode Monochrome mode Monochrome mode

Theme.set_theme('mono_dark')
models[0]

These themes also apply to our plots and graphs. We've made a comparison to the stylesheet reference in matplotlib down below, and also showcase some colormaps that are registered with matplotlib.


Full list of feyn colormaps: feyn, feyn-diverging, feyn-partial, feyn-primary, feyn-highlight, feyn-secondary, feyn-accent.

This should help make our graphs a little easier on the eyes in different editors.

← Converting a model to SymPySaving a graph as an image →
Copyright © 2023 Abzu.ai
Feyn®, QGraph®, and the QLattice® are registered trademarks of Abzu®