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

Function descriptions can be found in pnnplus.py.

Example 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(model_path='model.keras')
# pnn_plus.load_model(model_path='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.6.tar.gz (25.6 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.6-py3-none-any.whl (25.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pnnplus-0.1.6.tar.gz
  • Upload date:
  • Size: 25.6 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.6.tar.gz
Algorithm Hash digest
SHA256 5f64029fc01936b3d5d8359264857cf9d0784ee9b150ce227a759b1c6a8ffc3e
MD5 63d419e12c3eabe1ba5f66ff9eb5a6e5
BLAKE2b-256 3f29109050af31effd1c671976078db00d5fef9c371f5b91f8f941ab4039cf9e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pnnplus-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 25.0 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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 0bd70e33abf6274e909f625af4b033f9b648e27f24e5a017385ca642f12e33e8
MD5 64727e8a0bc39006dbcdbf06ada26447
BLAKE2b-256 388383ec55845005a007e5b64e45248af84a8542de649f8457b25400480ebd2d

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