Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement the DDS algorithm for spotpy #195

Merged
merged 79 commits into from
Feb 4, 2019

Conversation

bees4ever
Copy link
Contributor

This is a new PR based on: #185 where some mistakes are fixed.

* master:
  Removed _algorithm.model, since it is not legal to call. Use _algorithm.simulate instead
  Removed all calls to self.model in non-funct samplers and replaced it with calls to _algorithm.simulate
  Accept List Parameter only for MC sampler
  Support for mixed paramter generation reactivated. List are not properly tested for different algos
  Removed unittests for mixed parameter generation. Drop of support
  Enable dealing with non class parameters
  Add missing default tuple
  Eanble the filtering of Constant Parameters in _algorithm.py
  Changed order of parameters to ensure test on Python < 3.6
  Fixed thouska#175 and thouska#166 with extensive check to preserve the constants in sceua and developed a number of tests to ensure the constants stays constant in all samplers.
  Fixed thouska#175 and thouska#166 with extensive check to preserve the constants in sceua and developed a number of tests to ensure the constants stays constant in all samplers.
  Added tests for named parameters for all samplers. Fails for mle, sa and sceua
  Fixed Constant parameter usage for sceua (thouska#166 and thouska#175) and build test cases
  Added a mechanism to exclude parameter types from a sampler, especially List parameters from any sampler except mc and list
  Change default dbformat to ram
@bees4ever bees4ever mentioned this pull request Nov 1, 2018
@coveralls
Copy link

coveralls commented Nov 11, 2018

Pull Request Test Coverage Report for Build 659

  • 250 of 270 (92.59%) changed or added relevant lines in 5 files are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage decreased (-0.1%) to 90.489%

Changes Missing Coverage Covered Lines Changed/Added Lines %
spotpy/algorithms/dds.py 128 136 94.12%
spotpy/unittests/test_dds.py 110 122 90.16%
Files with Coverage Reduction New Missed Lines %
spotpy/algorithms/rope.py 1 89.29%
Totals Coverage Status
Change from base Build 654: -0.1%
Covered Lines: 5214
Relevant Lines: 5762

💛 - Coveralls

… into New-Algorithm-DDS

# Conflicts:
#	spotpy/algorithms/dds.py
* master: (22 commits)
  Added missing lines to allow for starting dream proposal vectors
  Update Version number upload to pypi
  Fix bug under mpi use
  Updates version number corresponds to upload on pypi
  Removed test for <Python3.6 due to deprectaed numpy version
  remove parameter interaction test for python 2
  Adopt test scripts to changes in examples
  Removed - sign from Rosenbrock example objectfivefunction
  Slight changes in sceua sampler and added corresponding tutorial
  Update _algorithm.py
  Work with None instead of np.NAN as this was not recognized
  Update __init__.py
  Update Version number, uploaded new pypi version
  Renamed keyword for saving switch
  Removes unfinished model runs from output file
  Enable automatic nan filtering for RMSE thouska#79
  Added comment
  Further version compability test
  Force pytest_cov down to v2.6
  Force decrease version of pytest_cov as v2.6.1 is deprecated
  ...

# Conflicts:
#	.travis.yml
- new dds tutorial
@thouska
Copy link
Owner

thouska commented Feb 4, 2019

Super nice work! Thank you very much for this large contribution, I think this the DDS algorithm is ready to merge now, as it has proven to provide the same results as the original matlab version. Good job :)

@thouska thouska merged commit 38df84c into thouska:master Feb 4, 2019
This was referenced Feb 18, 2019
@bees4ever bees4ever deleted the New-Algorithm-DDS branch August 30, 2019 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants