Skip to main content

A Python library that implements Parametric Neural Networks (PNN) for use in high-energy physics and beyond.

Project description

PNNplus

PNNplus is a Python library that implements Parametric Neural Networks (PNN) for use in high-energy physics and beyond.

Installation

pip install pnnplus

Usage

from pnnplus import *

pnn_plus = PNNplus(features=['f1', 'f2', 'f3', 'f4'], mass_columns=['mass'], weight_column='weight')
pnn_plus.load_dataset('../dataset/signal.csv', '../dataset/background.csv')

pnn_plus.plot_feature_distribution()
feature_correlation = pnn_plus.calc_feature_correlation_all()
pnn_plus.plot_mass_distribution()

pnn_plus.transform_dataset(save_feature_scaler='feature_scaler.pkl', save_mass_scaler='mass_scaler.pkl')
# pnn_plus.transform_dataset(load_feature_scaler='feature_scaler.pkl', load_mass_scaler='mass_scaler.pkl')

pnn_plus.train_model(save_file='model.keras')
# pnn_plus.load_model(save_file='model.keras')
# evaluate_results = pnn_plus.evaluate_model()

auc_df = pnn_plus.calc_auc_all()
pnn_plus.plot_score_all()
pnn_plus.plot_cut_efficiency_all()
importance_dfs = pnn_plus.calc_feature_importance_all()

License

PNNplus is licensed under the GNU General Public License v3.0.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pnnplus-0.1.3.tar.gz (24.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pnnplus-0.1.3-py3-none-any.whl (23.6 kB view details)

Uploaded Python 3

File details

Details for the file pnnplus-0.1.3.tar.gz.

File metadata

  • Download URL: pnnplus-0.1.3.tar.gz
  • Upload date:
  • Size: 24.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.11

File hashes

Hashes for pnnplus-0.1.3.tar.gz
Algorithm Hash digest
SHA256 b9e44d0ca77cdb9004586edfc012a6fe6523b952ffe84758aeeac059c566b4ff
MD5 7dd519c489936e2e157aeab314549e49
BLAKE2b-256 a2b05eba8acee89f3dfe7b37720025bb544b50443061d38d9d857c291eb2d9df

See more details on using hashes here.

File details

Details for the file pnnplus-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: pnnplus-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 23.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.11

File hashes

Hashes for pnnplus-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 80060d7e9b7d3dca2848060fc63d6ccc055626817cc1f37909b5b300f10364ee
MD5 0c7d3b6b6ac137cc782957463a43b588
BLAKE2b-256 06476ebea78f2ce01ccdffbb8f74ec867750cc65a64957d93c82f5aa1cc28fd4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page