Skip to content

balditommaso/PyLandscape

Repository files navigation

PyLandscape

Introduction

pylandscape is a Pytorch library for loss landscape analysis of neural networks. The library enables computing the following metrics:

NOTE: All the functionalities relative to the computation of the Hessian metrics have been embedded via PyHessian. If your interested in learning more about how these metrics are computed have a look to their Repository.

Usage

Install from Pip

You can install the library from pip:

pip install pylandscape

Research

If you used Pylandscape consider to cite:

@misc{baldi2025losslandscapeanalysisreliable,
      title={Loss Landscape Analysis for Reliable Quantized ML Models for Scientific Sensing}, 
      author={Tommaso Baldi and Javier Campos and Olivia Weng and Caleb Geniesse and Nhan Tran and Ryan Kastner and Alessandro Biondi},
      year={2025},
      eprint={2502.08355},
      archivePrefix={arXiv},
      primaryClass={cs.LG},
      url={https://arxiv.org/abs/2502.08355}, 
}

About

This project propose the loss landscape analysis as effective methodology to understand the robustness against natural perturbation of QNN.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors