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

Update examples to work with the latest CES code #94

Merged
merged 1 commit into from
Dec 23, 2020

Conversation

bielim
Copy link
Contributor

@bielim bielim commented Dec 22, 2020

The goal of this PR is to get all examples synced up with the latest changes in the code base (in particular, PRs #88 and #89)

  • Cloudy_example.jl
  • learn_noise.jl
  • plot_GP.jl

In addition, get_distribution() (in ParameterDistribution.jl) has been modified to return the array of samples when called for Samples ( rather than the message "Contains samples only"). get_distribution now returns a Dict with the parameter names as keys and the corresponding distribution (in the case of Parameterized distributions, such as Normal(0.0, 1.0)), or the corresponding samples (in the case of parameters represented by Samples) as a parameter_dimension x n_samples array.

@bielim
Copy link
Contributor Author

bielim commented Dec 22, 2020

bors r+

@codecov
Copy link

codecov bot commented Dec 23, 2020

Codecov Report

Merging #94 (393e90f) into master (35eef88) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #94   +/-   ##
=======================================
  Coverage   85.19%   85.19%           
=======================================
  Files           7        7           
  Lines         547      547           
=======================================
  Hits          466      466           
  Misses         81       81           
Impacted Files Coverage Δ
src/ParameterDistribution.jl 98.82% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 35eef88...393e90f. Read the comment docs.

@bors
Copy link
Contributor

bors bot commented Dec 23, 2020

Build succeeded:

@bors bors bot merged commit f40f997 into master Dec 23, 2020
@bors bors bot deleted the mb/add-examples-attempt2 branch December 23, 2020 00:08
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.

1 participant