Skip to content

ICB-DCM/fiddy

Repository files navigation

fiddy

Test suite PyPI Documentation

Finite difference methods, for applications including gradient computation and gradient checks.

Install with pip install -e ..

Important notes

The output of your function of interest should be a NumPy array. If your function is scalar-valued, change it to a NumPy array with:

import numpy as np

def function(input_value: float) -> np.ndarray:
    scalar_output_value = old_function(input_value)
    return np.array([scalar_output_value])

Installation

Currently under development, please install from source.

pip install -e .

Can also be installed from PyPI

pip install fiddy

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •