Skip to main content

Demo code for SE360

Project description

Stat-Ease 360 and Python demo

This is a collection of a few Python programs that interact with Stat-Ease 360, initially demonstrated at the 2021 DOE Summit by Hank Anderson. The slides from that talk are included in this repository as well.

In order to use the data from this repository, you should install the se360demo Python package by running pip install se360demo.

Multi-response Graph

This uses the examples\multiresponse-graph.py script. Open Stat-Ease 360 and load this script from the Script Window, then click File -> Run.

It will retrieve the two Analysis objects from SE360 and make predictions for both of them while varying the A factor. These predictions are plotted on the same Matplotlib plot.

Streamflow

This example uses the examples\streamflow.py script.

It demonstrates fetching data from a cloud API and inserting it into Stat-Ease 360. It has a flag in the script to toggle between live data and a csv file.

The data retrieval and manipulation code are in se360demo\__init__.py. To use the live data you'll need to set an environment variable called NOAA_TOKEN with a token generated from https://www.ncdc.noaa.gov/cdo-web/token.

Delivery Time

This example uses the examples\delivery-time.py script.

This is the Delivery Time example from chapter 11.2.3 of Montgomery, Peck and Vining (2012) on "data splitting" or cross validation. The data are first segmented and evaluated according to the textbook. The data are then split into 4 segments for a k-fold cross validation. Each split is evaluated and the results are plotted in a bar chart.

Simulated Cross Validation

This example uses the examples\sim-cv.py script.

This uses two data sets that both have simulated responses. The script compares two analyses of each response using cross validation. One analysis is done using Ordinary Least Squares and the other using a Gaussian Process Model.

Streamflow Cross Validation

This example uses the examples\streamflow-cv.py script.

This does a time-based cross validation on the streamflow data. It divides the data up into years for one cross validation, then does another cross validation based on the month of the year. The results are output to the console.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

se360demo-0.1.2.tar.gz (37.4 kB view details)

Uploaded Source

File details

Details for the file se360demo-0.1.2.tar.gz.

File metadata

  • Download URL: se360demo-0.1.2.tar.gz
  • Upload date:
  • Size: 37.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.1

File hashes

Hashes for se360demo-0.1.2.tar.gz
Algorithm Hash digest
SHA256 df9f413a56aef72fe0324b38e06fd7c6debbd96bec37cfaa74e4aac987be9e16
MD5 5a895e72b322fb12e804b2ba050678de
BLAKE2b-256 3ead23d73da16847b5c3fe4ab474a7333f5e18c22dc744d191b0abd233a53489

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page