Modeling and Simulation in Python: An Introduction for Scientists and Engineers by Allen B. Downey
Author:Allen B. Downey
Language: eng
Format: epub
Publisher: No Starch Press, Inc.
Published: 2023-04-15T00:00:00+00:00
decorate(xlabel='Contact rate (beta)',
ylabel='Fraction infected',
title='Sweep beta, multiple values of gamma')
Alternatively, we can plot each row like this:
for beta in [0.2, 0.5, 0.8, 1.1]:
label = f'beta = {beta}'
frame.loc[beta].plot(label=label)
decorate(xlabel='Recovery rate (gamma)',
ylabel='Fraction infected',
title='Sweep gamma, multiple values of beta')
This example demonstrates one use of a SweepFrame: we can run the analysis once, save the results, and then generate different visualizations.
Another way to visualize the results of a two-dimensional sweep is a contour plot, which shows the parameters on the axes and contour lines where the value of the metric is constant. The ModSim library provides contour, which takes a SweepFrame and uses Matplotlib to generate a contour plot:
contour(frame)
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
AI & Machine Learning | Bioinformatics |
Computer Simulation | Cybernetics |
Human-Computer Interaction | Information Theory |
Robotics | Systems Analysis & Design |
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(8292)
Test-Driven Development with Java by Alan Mellor(6650)
Data Augmentation with Python by Duc Haba(6557)
Principles of Data Fabric by Sonia Mezzetta(6317)
Learn Blender Simulations the Right Way by Stephen Pearson(6206)
Microservices with Spring Boot 3 and Spring Cloud by Magnus Larsson(6079)
Hadoop in Practice by Alex Holmes(5958)
Jquery UI in Action : Master the concepts Of Jquery UI: A Step By Step Approach by ANMOL GOYAL(5806)
RPA Solution Architect's Handbook by Sachin Sahgal(5470)
Big Data Analysis with Python by Ivan Marin(5325)
The Infinite Retina by Robert Scoble Irena Cronin(5171)
Life 3.0: Being Human in the Age of Artificial Intelligence by Tegmark Max(5139)
Pretrain Vision and Large Language Models in Python by Emily Webber(4287)
Infrastructure as Code for Beginners by Russ McKendrick(4047)
Functional Programming in JavaScript by Mantyla Dan(4037)
The Age of Surveillance Capitalism by Shoshana Zuboff(3943)
WordPress Plugin Development Cookbook by Yannick Lefebvre(3758)
Embracing Microservices Design by Ovais Mehboob Ahmed Khan Nabil Siddiqui and Timothy Oleson(3564)
Applied Machine Learning for Healthcare and Life Sciences Using AWS by Ujjwal Ratan(3538)
