Skip to main content

mlreflect

mlreflect is a Python package for training and using artificial neural networks to analyze specular X-ray and neutron reflectivity data. The training and usage of the neural network models is done via Keras as an API for TensorFlow.

Installation

The mlreflect package can be installed directly from the command line using the python package manager pip:

pip install mlreflect

In case the newest version is not available on PyPI, the package can also be installed locally. Download the package, unzip it and navigate to the folder containing the downloaded mlreflect folder. Then use:

pip install mlreflect/

Online documentation

Documentation and API reference can be found online on https://mlreflect.readthedocs.io/en/latest/

Usage example

The package can then be imported in python using

import mlreflect

or

from mlreflect import <module>

An example of how to generate training data, train the model and test it on experimental data is shown in the example/notebooks/training_example.ipynb Jupyter notebook.

An example of how to use the default pre-trained model for single layers on Si/SiOx substrates to fit data directly from a SPEC file is shown in examples/notebooks/spec_usage_example.ipynb Jupyter notebook.

A detailed explanation as well as API info can be found in the documentation.

Authors

Main author

Contributors

  • Vladimir Starostin (Institut für Angewandte Physik, University of Tübingen)
  • Christos Karapanagiotis (Institut für Physik, Humboldt Universität zu Berlin)
  • Alexander Hinderhofer (Institut für Angewandte Physik, University of Tübingen)
  • Alexander Gerlach (Institut für Angewandte Physik, University of Tübingen)
  • Linus Pithan (ESRF The European Synchrotron)
  • Sascha Liehr (Bundesanstalt für Materialforschung und -prüfung (BAM))
  • Frank Schreiber (Institut für Angewandte Physik, University of Tübingen)
  • Stefan Kowarik (Bundesanstalt für Materialforschung und -prüfung (BAM) and Institut für Physik, Humboldt Universität zu Berlin)

Metadata

Release files for mlreflect 0.21.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mlreflect 0.21.1
File Size Uploaded Provenance
mlreflect-0.21.1.tar.gz 23.1 MB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for mlreflect 0.21.1
File Interpreter ABI Platform
mlreflect-0.21.1-py3-none-any.whl Python 3 none any Details

Total release size: 46.2 MB

Release files / mlreflect-0.21.1.tar.gz

Download URL mlreflect-0.21.1.tar.gz
Size 23.1 MB
Tags Source
SHA-256 checksum
How to use checksums
6af7b64cddd1fed92f17561660480aa4622b20476de6d572897db8b8003e14ba
BLAKE2b-256 checksum
How to use checksums
752e85600533b4fbf0e35513daf5607040c35c4f415410ac5eacfdc6f5f09fd5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.9.12

Release files / mlreflect-0.21.1-py3-none-any.whl

Download URL mlreflect-0.21.1-py3-none-any.whl
Size 23.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
4a47ba834f64276b56b12e50b351313d37480b9d226f5901fea1d08d48d05d74
BLAKE2b-256 checksum
How to use checksums
dc008e6d750afea3f3b935a7ad4e4ffff7584bb387c9bf6de213d3709c4f79dd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.9.12

Security for mlreflect 0.21.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page