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

add example to test srfit parallel #57

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

chiahaoliu
Copy link
Member

@pavoljuhas This PR is just for the ease of sharing my test on this behavior, please feel free to close if needed.

Main result from this test:

==== Rw before refinements ====
0.26614659070837554
==== Rw: Sequencial refinements ====
0.12266949912726588
0.12266949912726588
0.12266949912726588
0.12266949912726588
0.12266949912726588
==== Rw: Parallel refinements ====
0.4096894020385561
0.4096894020385561
0.4096894020385561
0.4096894020385561
0.4096894020385561

for recipe in recipe_list:
recipe = fit_wrapper(recipe)
res = FitResults(recipe)
print(res.rw)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sequential test here

rv = p.map(fit_wrapper, recipe_list)
for recipe in rv:
res = FitResults(recipe)
print(res.rw)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

running in parallel

recipe.clearFitHooks()
res = FitResults(recipe)
print(res.rw)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

print rw before refinement

@codecov
Copy link

codecov bot commented Mar 21, 2019

Codecov Report

Merging #57 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #57   +/-   ##
=======================================
  Coverage   81.14%   81.14%           
=======================================
  Files          91       91           
  Lines        7577     7577           
=======================================
  Hits         6148     6148           
  Misses       1429     1429

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 90d1e5d...e1f78e8. Read the comment docs.

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