Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Simple model example for the Python data pipeline api

License

NotificationsYou must be signed in to change notification settings

FAIRDataPipeline/pySimpleModel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

build

A simple example of an SEIRS epidemiological model using theFAIR Data Pipeline.

Installation

  1. Create and activate new python 3 virtual environment.
  2. pip install fair-cli.
  3. Install a local registry:
    1. Install graphviz
    2. fair registry install
  4. Clone this repository:git clone https://github.com/FAIRDataPipeline/pySimpleModel.git.
  5. Change directorycd pySimpleModel.
  6. Install this packagepip install ..
  7. Initialise the registryfair init

Running the example

The user configuration script for running the python SEIRS model can be found inside this repo -simpleModel/ext/SEIRSconfig.yaml - and for this self-contained example, it includes all of the information to register the input data that the model needs, so that you don't have to be connected to a registry that already knows about it. The code can be executed by first ensuring that all of the input data is available in the local registry (usingfair pull) and then running the code (usingfair run). So:

fair pull simpleModel/ext/SEIRSconfig.yamlfair run simpleModel/ext/SEIRSconfig.yaml

Check the output

  1. Ensure the local registry is startedfair registry start.
  2. Visit the local registry in your browser (by default athttp://localhost:8000), you should see the input and output data recorded in the registry.

About

Simple model example for the Python data pipeline api

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors3

  •  
  •  
  •  

Languages


[8]ページ先頭

©2009-2025 Movatter.jp