From bc363c1ec3c62673579933433e6da7e2bc50de79 Mon Sep 17 00:00:00 2001 From: "Nikolai.Hartmann" <nikolai.hartmann@physik.uni-muenchen.de> Date: Wed, 9 May 2018 10:55:09 +0200 Subject: [PATCH] Update README.md --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index e2dad5c..341971e 100644 --- a/README.md +++ b/README.md @@ -39,6 +39,19 @@ Previously created projects can be inspected in iypthon like ipython -i -m KerasROOTClassification.browse <project-dir> ``` +Or in a script you can initialise a project by just specifying the path to the project directory. This is especially useful when you want to compare different projects: + +```python +from KerasROOTClassification import ClassificationProject +from KerasROOTClassification.compare import overlay_ROC, overlay_loss + +c1 = ClassificationProject("path/to/project1") +c2 = ClassificationProject("path/to/project2") + +overlay_ROC("ROC_overlay.pdf", c1, c2) +overlay_loss("loss_overlay.pdf", c1, c2) +``` + # Conda setup An example for a mini conda setup that contains the nescessary packages: -- GitLab