This project aims to predict Single Event Transient (SET) pulse width under various input conditions using machine learning techniques. The dataset is generated using SPICE simulations, and the project will focus on training models to perform regression tasks based on this data.
This project includes:
- Data Processing: Handling and preprocessing SPICE simulation data.
- Model Training: Building machine learning models (e.g., Random Forest, Gradient Boosting) to predict SET pulse width.
- Model Evaluation: Evaluating the performance of the trained models and optimizing them.
To set up the project environment, follow the instructions below.
-
Anaconda/Miniconda: Make sure you have Anaconda or Miniconda installed on your system. If not, you can download and install Miniconda from here.
-
Git: You should have Git installed to clone this repository.
First, clone the repository from GitHub:
git clone https://github.com/your-username/SET-prediction.git
cd SET-predictionOnce you're inside the project directory, create a Conda environment using the provided environment.yml file. This will automatically install all necessary dependencies.
conda env create -f environment.ymlThis will create a new Conda environment named ml_project_env (as specified in the environment.yml).
After creating the environment, you can activate it using the following command:
conda activate ml_project_envThis will activate the virtual environment and set up the necessary paths for all required dependencies.
Once the environment is activated, you can start Jupyter Lab to begin developing or running your analysis:
jupyter labThis will launch Jupyter Lab in your default web browser, where you can open and run .ipynb notebooks.
You can view the main code in the notebooks folder, and the default main file is
main.ipynbFor future use, whenever you want to work on this project, follow approaches:
You can simply run the script to activate the environment and start Jupyter Lab:
./start_project.shOr you can set the process step by step:
-
Open a terminal and navigate to the project directory:
cd /path/to/SET-prediction -
Activate the Conda environment:
conda activate ml_project_env
-
Start Jupyter Lab:
jupyter lab
-
If necessary, deactivate the environment after you're done:
conda deactivate
If you would like to contribute to this project, please follow these steps:
- Fork the repository on GitHub.
- Create a new branch with a descriptive name:
git checkout -b feature-new-model
- Make your changes and commit them:
git commit -m "Add new model for pulse width prediction" - Push to your branch:
git push origin feature-new-model
- Open a Pull Request to the
mainbranch.
- The provided
environment.ymlfile ensures that all required dependencies for the project are installed in the Conda environment. - It's important to periodically update your environment to keep up with library changes. To update the environment, you can run:
conda env update --file environment.yml --prune