Skip to content

iuming/SRF_FC_RL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

# SRF FC RL GitHub Repo stars GitHub Code License GitHub last commit GitHub pull request

Superconducting RadioFrequency cavity Frequency Control by Reinforcement Learning

Control the frequency of the particle accelerator's radio frequency superconducting cavity based on reinforcement learning algorithm.

Project Structure

Describe the directory structure of the project to help users understand the files and folders included in the project.

SRF_FC_RL/
├── config/       # Configuration files
├── envs/         # Environment implementations
├── models/       # Trained models
├── scripts/      # Training/Evaluation scripts
├── utils/        # Utility modules
├── README.md     # Project documentation
└── requirements.txt # Dependency list

Installation Guide

  • Install conda
  • (Suggested) Create a virtual environment and activate it
  • Install dependencies
  1. Create a virtual environment:
conda create -n RL python==3.13.2
conda activate RL
  1. Install dependencies:
pip install -r requirements.txt

Train the Model

python scripts/train.py --config config/config.yaml

Evaluate the Model

python scripts/evaluate.py --config config/config.yaml

Notes

  1. Ensure that the CUDA environment is installed to enable GPU acceleration.
  2. Parameters in the configuration file can be adjusted based on actual requirements.
  3. Visualization results will automatically pop up after evaluation is completed.

Contributing

We welcome contributions to this project! To contribute, please follow these steps:

  1. Fork the Repository: Click the "Fork" button at the top right of this repository to create your own copy.
  2. Clone the Repository: Clone your forked repository to your local machine.
    git clone https://github.com/your-username/SRF_FC_RL.git
    cd SRF_FC_RL
  3. Create a Branch: Create a new branch for your feature or bug fix.
    git checkout -b feature-name
  4. Make Changes: Implement your changes and commit them with clear and concise commit messages.
    git add .
    git commit -m "Description of changes"
  5. Push Changes: Push your changes to your forked repository.
    git push origin feature-name
  6. Submit a Pull Request: Open a pull request to the main repository. Provide a detailed description of your changes and why they should be merged.

Contribution Guidelines

  • Ensure your code follows the project's coding standards.
  • Write clear and concise documentation for any new features or changes.
  • Test your changes thoroughly before submitting a pull request.
  • Be respectful and constructive in code reviews and discussions.

Contact

If you have any questions or need assistance, feel free to reach out:

We appreciate your interest in contributing and look forward to your input!

License

This repository is licensed under the LICENSE.

Contact

For any inquiries or support, you can reach out through the following channels:

Thank you for your interest in this project, and we hope you find it helpful and inspiring!

Star History

Star History Chart

About

Superconducting RadioFrequency cavity Frequency Control by Reinforcement Learning

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages