WSNet is the core repository in this project family. It collects the reusable models, sampling methods, optimization modules, training utilities, and shared tools used across multiple engineering machine learning projects.
WSNet keeps the common building blocks only. It is the place for code that should stay reusable across different tasks, instead of being tied to one benchmark suite or one application workflow.
The current scope includes:
- classical surrogate models
- ensemble surrogate models
- multi-fidelity surrogate models
- neural and operator models
- global optimization utilities
- DOE and infill sampling methods
- lightweight training and utility modules
- Classical surrogates:
PRS,RBF,KRG,SVR - Multi-fidelity models:
MFSMLS,MMFS,CCAMFS - Ensemble models:
TAHS,AESMSI - Neural models:
MLP,DeepONet,GeoFNO,HyperFlowNet,Transolver - Optimization helpers:
MIGA,CFARSSDA - Sampling utilities for LHS, single-objective infill, multi-objective infill, and multi-fidelity infill
- Lightweight training utilities for general and rollout-based workflows
WSNet/
├── __init__.py
├── models/
│ ├── classical/
│ ├── ensemble/
│ ├── multi_fidelity/
│ ├── neural/
│ └── optimization/
├── sampling/
├── training/
├── utils/
├── README.md
└── LICENSE
git clone https://github.com/SN-WANG/WSNet.git
cd WSNetWSNet is meant to be used directly from the cloned source tree. Install the packages required by the modules you plan to use. A common setup is:
pip install numpy scipy torch matplotlib tqdm pyvistaimport numpy as np
from models.classical.krg import KRG
x_train = np.random.rand(20, 2)
y_train = np.sum(x_train, axis=1, keepdims=True)
model = KRG()
model.fit(x_train, y_train)
y_pred, y_var = model.predict(x_train)
print(y_pred.shape, y_var.shape)WSNet is the reusable base. Benchmark scripts, case-specific experiments, and research-facing workflows live in sibling repositories built on top of it.
- SurrogateLab: surrogate modeling benchmarks, sampling studies, and optimization demos
- HyperFlowNet: irregular-mesh autoregressive CFD prediction
- StructFieldNet: design-conditioned structural field reconstruction
If WSNet is useful in your work, please cite it as a software project.
@software{wsnet2026,
author = {Shengning Wang},
title = {WSNet},
year = {2026},
url = {https://github.com/SN-WANG/WSNet}
}This project is released under the MIT License. See LICENSE for details.