Skip to content

SN-WANG/WSNet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

103 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WSNet

Role Python License

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.

📌 Overview

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

✨ Highlights

  • 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

🧱 Repository Layout

WSNet/
├── __init__.py
├── models/
│   ├── classical/
│   ├── ensemble/
│   ├── multi_fidelity/
│   ├── neural/
│   └── optimization/
├── sampling/
├── training/
├── utils/
├── README.md
└── LICENSE

🚀 Getting Started

Clone the repository

git clone https://github.com/SN-WANG/WSNet.git
cd WSNet

Install the dependencies you need

WSNet 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 pyvista

Minimal example

import 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)

🧠 Design Scope

WSNet is the reusable base. Benchmark scripts, case-specific experiments, and research-facing workflows live in sibling repositories built on top of it.

🔗 Related Repositories

  • SurrogateLab: surrogate modeling benchmarks, sampling studies, and optimization demos
  • HyperFlowNet: irregular-mesh autoregressive CFD prediction
  • StructFieldNet: design-conditioned structural field reconstruction

📚 Citation

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}
}

📄 License

This project is released under the MIT License. See LICENSE for details.

About

A core library for engineering surrogate modeling and operator learning

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages