Skip to content

ChengAo21/sr_rough_ks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

13 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🌟 Project Structure

β”œβ”€β”€ code_files            # Code for Polynomial Chaos Expansion
    β”œβ”€β”€ pce_core.py         # PolyChaos Class
    β”œβ”€β”€ pce_utils.py        # Helper Functions
    └── run_analysis.py     # User Model, Parameters, and Execution
└── results
    β”œβ”€β”€ csvFiles          # Roughness statistics and PySR searching results
    └── loss_plot         # Symbolic model loss visualization

πŸš€ Polynomial Chaos Expansion (PCE)

Core steps for applying PCE to build a surrogate model, quantify uncertainty, and perform global sensitivity analysis are summarized below.

β”œβ”€β”€ PCE_Implementation       
β”‚   β”œβ”€β”€ PolyChaos            
β”‚   β”‚   β”œβ”€β”€ __init__         # Initialize dimension, order, distributions, and parameters
β”‚   β”‚   β”œβ”€β”€ create_instance  # Generate multi-index set and the multivariate polynomial basis functions
β”‚   β”‚   β”œβ”€β”€ generate_multi_index # Generate the total-order multi-index set
β”‚   β”‚   β”œβ”€β”€ norm_factor      # Compute the normalization factor for orthogonal polynomials
β”‚   β”‚   β”œβ”€β”€ create_latin_hypercube_samples # Generate input samples using Latin Hypercube Sampling (LHS)
β”‚   β”‚   β”œβ”€β”€ regression_fit   # Fit PCE coefficients using Least-Squares Regression (LSR)
β”‚   β”‚   β”œβ”€β”€ norm_fit         # Compute statistical moments (mean and variance)
β”‚   β”‚   β”œβ”€β”€ sobol            # Calculate Sobol Sensitivity Indices
β”‚   β”‚   └── evaluate         # Evaluate the PCE model at given input points

β”‚   └── main                 # Execution Flow
β”‚       β”œβ”€β”€ Initialization   
β”‚       β”œβ”€β”€ Sampling         # Generate LHS points
β”‚       β”œβ”€β”€ Evaluate_Model   # Evaluate Your Model at the LHS points
β”‚       β”œβ”€β”€ Fit_PCE          # Determine PCE coefficients
β”‚       β”œβ”€β”€ Compute_Stats    # Compute mu and sigma
β”‚       β”œβ”€β”€ Validate_PCE     # Validate the PCE on your own data points
β”‚       └── Sensitivity      # Compute Sobol sensitivity indices

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published