Feyn Documentation

Feyn Documentation

  • Learn
  • Guides
  • Tutorials
  • API Reference
  • FAQ

›Essentials

Getting Started

  • Quick start
  • Using Feyn
  • Installation
  • What is the QLattice?

Essentials

  • Auto Run
  • Summary plot
  • Plot response
  • Splitting a dataset
  • Seeding a QLattice
  • Predicting with a model
  • Saving and loading models
  • Categorical features

Evaluate Regressors

  • Regression plot
  • Residuals plot

Evaluate Classifiers

  • ROC curve
  • Confusion matrix
  • Plot probability scores

Understand Your Models

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

Primitive Operations

  • Using the primitives
  • Updating priors
  • Sample models
  • Fitting models
  • Pruning models
  • Visualise a model
  • Diverse models
  • Updating a QLattice
  • Validate data
  • Semantic types

Advanced

  • Converting a model to SymPy
  • Logging in Feyn
  • Setting themes
  • Saving a graph as an image
  • Using the query language
  • Estimating priors
  • Filtering models
  • Model parameters
  • Model complexity

Privacy & Commercial

  • Privacy
  • Community edition
  • Commercial use
  • Transition to Feyn 3.0

Seeding a QLattice

by: Chris Cave
(Feyn version 3.0 or newer)


The QLattice is a method of sampling Models from a probability distribution so by it's nature the QLattice is a stochastic method. Between instances of QLattices, it is not guaranteed that they will give the same results.

The results are likely to be similar but not identical.

Reproducibility

In many instances, you will want to be able to reproduce your results, for example if you want to share it with a colleague or in a publication.

In this case, you can set the random seed for the QLattice, and the results will be reproducible given the rest of the computational environment is also reproduced.

Example

Here's an example of how to seed the QLattice:

import feyn

ql = feyn.QLattice(random_seed=42)

This will ensure that you will receive exactly the same Models between identical training runs.

← Splitting a datasetPredicting with a model →
  • Reproducibility
  • Example

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®