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(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.4.tar.gz (24.5 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.4-py3-none-any.whl (23.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pnnplus-0.1.4.tar.gz
  • Upload date:
  • Size: 24.5 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.4.tar.gz
Algorithm Hash digest
SHA256 3f07eea57be58a130ac71b7272849f3b84482584aa009b15a22493e1bbf4de94
MD5 7f8e776658a67602eeb2ac8da475dd70
BLAKE2b-256 c96ba8e40b73f87760e2218aa091ecd1e8eadef2985ef200094b4d5047db8905

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pnnplus-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 23.9 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 cc85df41c9d2f70ac1a504f05125399c3f8d165bbc9628d0ee65da2763ac8647
MD5 04dec8090536f9b831e3f45d236d591e
BLAKE2b-256 e2a6bf9fd7d9ecdd958838737416e550625207eed1a02b391abd9c3a4e73aa7f

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