This PR brings pyspi to python 3.10+ users by bumping the relevant dependencies such that coverage across all python versions (3.8-3.12) is provided. Pyspi will now run on all platforms and all python versions except for MacOS Python 3.8.
Some of the key changes in order of files changed:
Expanded unit tests to cover all major python versions in the range 3.8-3.12.
Bumped pyspi version number to reflect minor version release 1.1.0
Added normalisation flag to the Calculator object, allowing users to specify whether they want to normalise the data before computing SPIs with the default value set to True. Prior to this, normalisation was carried out by default without explicitly warning the user of this operation.
Patched the anm_score function to reshape sklearn's GPRegressor prediction output. See this open PR for more information about the bug in cdt's implementation of additive noise model (ANM) when used in conjunction with scikit-learn >= 1.1.0 .
Relaxed the python version constraint from >= 3.9, <3.10 to >=3.8.
Updated the README to reflect the wider coverage (new version badges) and removed redundant information.
Added fixed seed to lmfit_SGDRegressor for reproducibility of outputs.
Added a function called inspect_calc_results to print a high level summary table of successful SPIs computed, SPIs returning NaNs and number of partial NaNs returned, addressing issue 6. This will run by defaulting after finishing SPI computations.
Lifted version constraints on most dependencies to allow pyspi to run on newer versions of python.
This PR brings pyspi to python 3.10+ users by bumping the relevant dependencies such that coverage across all python versions (3.8-3.12) is provided. Pyspi will now run on all platforms and all python versions except for MacOS Python
3.8
. Some of the key changes in order of files changed:3.8-3.12
.1.1.0
Calculator
object, allowing users to specify whether they want to normalise the data before computing SPIs with the default value set toTrue
. Prior to this, normalisation was carried out by default without explicitly warning the user of this operation.anm_score
function to reshape sklearn's GPRegressor prediction output. See this open PR for more information about the bug in cdt's implementation of additive noise model (ANM
) when used in conjunction withscikit-learn >= 1.1.0
.>= 3.9, <3.10
to>=3.8
.lmfit_SGDRegressor
for reproducibility of outputs.inspect_calc_results
to print a high level summary table of successful SPIs computed, SPIs returning NaNs and number of partial NaNs returned, addressing issue 6. This will run by defaulting after finishing SPI computations.