Skip to main content

ROSE

What is ROSE:

The RADICAL Optimal & Smart-Surrogate Explorer (ROSE) toolkit is a framework for supporting the concurrent and adaptive execution of simulation and surrogate training and selection tasks on High-Performance Computing (HPC) resources. ROSE is a Python package that provides tools to facilitate the development of machine learning surrogates for scientific applications. It standardizes the process of building surrogates using diverse methods such as active and reinforcement learning on HPC systems. ROSE enables users to define thousands of simulation and surrogate training tasks and workflows, while automatically managing their execution across thousands of HPC nodes.

ROSE also provides tools to facilitate the selection of the best surrogate model for a given simulation based on performance metrics.

ROSE uses RADICAL-Cybertools -- middleware building blocks to facilitate the development of sophisticated scientific workflows on HPC resources.

How to install:

pip install .

Documentation:

The complete documentation is available here.

For tutorials and walkthrough notebooks please check here

Basic usage

import asyncio

from rose.metrics import MEAN_SQUARED_ERROR_MSE
from rose.al import SequentialActiveLearner

from concurrent.futures import ProcessPoolExecutor

from radical.asyncflow import WorkflowEngine
from rhapsody.backends import ConcurrentExecutionBackend

async def main():
    execution_engine = await ConcurrentExecutionBackend(ProcessPoolExecutor())

    asyncflow = await WorkflowEngine.create(execution_engine)
    acl = SequentialActiveLearner(asyncflow)

    @acl.simulation_task
    async def simulation(*args):
        return f'python3 sim.py'

    @acl.training_task
    async def training(*args):
        return f'python3 train.py'

    @acl.active_learn_task
    async def active_learn(*args):
        return f'python3 active.py'

    # Start the learning loop and break if max_iter = 10
    await acl.start(max_iter=10)
    await asyncflow.shutdown()

if __name__ == "__main__":
    asyncio.run(main())

Download files

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

Source Distribution

rose_surrogate_explorer-0.3.0.tar.gz (65.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rose_surrogate_explorer-0.3.0-py3-none-any.whl (73.8 kB view details)

Uploaded Python 3

File details

Details for the file rose_surrogate_explorer-0.3.0.tar.gz.

File metadata

  • Download URL: rose_surrogate_explorer-0.3.0.tar.gz
  • Upload date:
  • Size: 65.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.3

File hashes

Hashes for rose_surrogate_explorer-0.3.0.tar.gz
Algorithm Hash digest
SHA256 9d86bf43f54a2f37530985c1a4bd15ec607b871b56233cda8bf77174eae6acc7
MD5 d7b02b711fe6c860d81e26838a472b66
BLAKE2b-256 99a2baa791ddec35e20a38c7b08e1297de6f506e40a1d66ee1b0cd415881b79f

See more details on using hashes here.

File details

Details for the file rose_surrogate_explorer-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for rose_surrogate_explorer-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4da3d3c937919b5a4eb8e634c2b05bb2cb9b181510c074e155db7ee53dc409ef
MD5 dad19128453af214002a66aebf037bea
BLAKE2b-256 82f7a632db1089a868416fcf7e01d0e631610a199a13358ba1364771e765b6b1

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page