Coverage report: 99%

Files Functions Classes

coverage.py v7.6.7, created at 2024-11-18 17:09 +0000

File function statements missing excluded coverage
src/edelweiss/__init__.py (no function) 4 0 0 100%
src/edelweiss/classifier.py load_classifier 8 0 0 100%
src/edelweiss/classifier.py Classifier.__init__ 9 0 0 100%
src/edelweiss/classifier.py Classifier.train 34 0 2 100%
src/edelweiss/classifier.py Classifier.predict 5 0 0 100%
src/edelweiss/classifier.py Classifier.predict_proba 3 0 0 100%
src/edelweiss/classifier.py Classifier.predict_non_proba 3 0 0 100%
src/edelweiss/classifier.py Classifier.save 9 0 0 100%
src/edelweiss/classifier.py Classifier.test 6 0 0 100%
src/edelweiss/classifier.py Classifier._check_if_recarray 8 0 0 100%
src/edelweiss/classifier.py Classifier._get_feature_importance 23 0 0 100%
src/edelweiss/classifier.py Classifier._get_summed_feature_importance 12 0 0 100%
src/edelweiss/classifier.py load_multiclassifier 10 0 0 100%
src/edelweiss/classifier.py MultiClassifier.__init__ 7 1 0 86%
src/edelweiss/classifier.py MultiClassifier.train 5 0 0 100%
src/edelweiss/classifier.py MultiClassifier.predict 8 0 0 100%
src/edelweiss/classifier.py MultiClassifier.predict_proba 7 0 0 100%
src/edelweiss/classifier.py MultiClassifier.predict_non_proba 8 0 0 100%
src/edelweiss/classifier.py MultiClassifier.save 10 0 0 100%
src/edelweiss/classifier.py MultiClassifier.test 6 0 0 100%
src/edelweiss/classifier.py MultiClassClassifier.predict 4 0 0 100%
src/edelweiss/classifier.py MultiClassClassifier.predict_proba 3 0 0 100%
src/edelweiss/classifier.py MultiClassClassifier.predict_non_proba 3 0 0 100%
src/edelweiss/classifier.py MultiClassClassifier.test 6 0 0 100%
src/edelweiss/classifier.py (no function) 40 0 0 100%
src/edelweiss/clf_diagnostics.py get_confusion_matrix 5 0 0 100%
src/edelweiss/clf_diagnostics.py plot_hist_fp_fn_tp_tn 15 0 0 100%
src/edelweiss/clf_diagnostics.py plot_hist_n_gal 20 0 0 100%
src/edelweiss/clf_diagnostics.py plot_calibration_curve 20 0 0 100%
src/edelweiss/clf_diagnostics.py plot_roc_curve 20 0 0 100%
src/edelweiss/clf_diagnostics.py plot_pr_curve 19 0 0 100%
src/edelweiss/clf_diagnostics.py plot_spider_scores 27 0 0 100%
src/edelweiss/clf_diagnostics.py _plot_spider 20 0 0 100%
src/edelweiss/clf_diagnostics.py scale_data_for_spider 11 0 0 100%
src/edelweiss/clf_diagnostics.py get_default_ranges_for_spider 2 0 0 100%
src/edelweiss/clf_diagnostics.py add_range_to_name 2 0 0 100%
src/edelweiss/clf_diagnostics.py get_name 21 0 2 100%
src/edelweiss/clf_diagnostics.py plot_diagnostics 12 0 0 100%
src/edelweiss/clf_diagnostics.py plot_all_scores 51 0 0 100%
src/edelweiss/clf_diagnostics.py plot_classifier_comparison 9 0 0 100%
src/edelweiss/clf_diagnostics.py _plot_classifier_comparison 9 0 0 100%
src/edelweiss/clf_diagnostics.py plot_feature_importances 12 0 0 100%
src/edelweiss/clf_diagnostics.py _add_plot 14 0 0 100%
src/edelweiss/clf_diagnostics.py setup_test 14 0 0 100%
src/edelweiss/clf_diagnostics.py get_all_scores 32 0 0 100%
src/edelweiss/clf_diagnostics.py get_all_scores_multiclass 15 0 0 100%
src/edelweiss/clf_diagnostics.py (no function) 36 0 0 100%
src/edelweiss/clf_utils.py get_clf_name 3 0 0 100%
src/edelweiss/clf_utils.py get_classifier 33 0 0 100%
src/edelweiss/clf_utils.py get_scaler 11 0 0 100%
src/edelweiss/clf_utils.py get_detection_label 10 0 0 100%
src/edelweiss/clf_utils.py get_scorer 5 0 0 100%
src/edelweiss/clf_utils.py load_hyperparams 30 0 0 100%
src/edelweiss/clf_utils.py ngal_scorer 1 0 0 100%
src/edelweiss/clf_utils.py custom_roc_auc_score 1 0 0 100%
src/edelweiss/clf_utils.py ngal_hist_scorer 3 0 0 100%
src/edelweiss/clf_utils.py get_classifier_args 5 0 0 100%
src/edelweiss/clf_utils.py (no function) 27 0 0 100%
src/edelweiss/custom_clfs.py NeuralNetworkClassifier.__init__ 7 0 0 100%
src/edelweiss/custom_clfs.py NeuralNetworkClassifier.fit 16 2 0 88%
src/edelweiss/custom_clfs.py NeuralNetworkClassifier._build_model 8 0 0 100%
src/edelweiss/custom_clfs.py NeuralNetworkClassifier.predict 2 0 0 100%
src/edelweiss/custom_clfs.py NeuralNetworkClassifier.predict_proba 7 2 0 71%
src/edelweiss/custom_clfs.py (no function) 13 0 0 100%
src/edelweiss/custom_regs.py NeuralNetworkRegressor.__init__ 8 0 0 100%
src/edelweiss/custom_regs.py NeuralNetworkRegressor.fit 11 0 0 100%
src/edelweiss/custom_regs.py NeuralNetworkRegressor.predict 1 0 0 100%
src/edelweiss/custom_regs.py (no function) 9 0 0 100%
src/edelweiss/emulator.py load_emulator 9 0 0 100%
src/edelweiss/emulator.py (no function) 5 0 0 100%
src/edelweiss/nflow.py load_nflow 11 0 0 100%
src/edelweiss/nflow.py Nflow.__init__ 13 0 0 100%
src/edelweiss/nflow.py Nflow.train 19 0 0 100%
src/edelweiss/nflow.py Nflow.sample 19 0 0 100%
src/edelweiss/nflow.py Nflow.save 22 0 0 100%
src/edelweiss/nflow.py (no function) 17 0 0 100%
src/edelweiss/nflow_utils.py ModelNotConvergedError.__init__ 4 0 0 100%
src/edelweiss/nflow_utils.py check_convergence 8 0 0 100%
src/edelweiss/nflow_utils.py prepare_columns 16 0 0 100%
src/edelweiss/nflow_utils.py prepare_data 26 0 0 100%
src/edelweiss/nflow_utils.py get_scalers 13 0 0 100%
src/edelweiss/nflow_utils.py (no function) 12 0 0 100%
src/edelweiss/reg_utils.py get_regressor 32 0 0 100%
src/edelweiss/reg_utils.py (no function) 12 0 0 100%
src/edelweiss/regressor.py load_regressor 5 0 0 100%
src/edelweiss/regressor.py Regressor.__init__ 15 0 0 100%
src/edelweiss/regressor.py Regressor.train 26 0 0 100%
src/edelweiss/regressor.py Regressor._predict 3 0 0 100%
src/edelweiss/regressor.py Regressor.predict 2 0 0 100%
src/edelweiss/regressor.py Regressor.test 22 0 0 100%
src/edelweiss/regressor.py Regressor.save 5 0 0 100%
src/edelweiss/regressor.py Regressor._check_if_recarray 14 0 0 100%
src/edelweiss/regressor.py (no function) 20 0 0 100%
src/edelweiss/tf_utils.py EpochProgressCallback.__init__ 3 0 0 100%
src/edelweiss/tf_utils.py EpochProgressCallback.on_train_begin 1 0 0 100%
src/edelweiss/tf_utils.py EpochProgressCallback.on_epoch_end 6 0 0 100%
src/edelweiss/tf_utils.py EpochProgressCallback.on_train_end 1 0 0 100%
src/edelweiss/tf_utils.py (no function) 7 0 0 100%
Total   1206 5 4 99%

No items found using the specified filter.