Skip to content
Snippets Groups Projects
  • Nikolai.Hartmann's avatar
    bf50acf0
    Improve loading from dir · bf50acf0
    Nikolai.Hartmann authored
    * Call _init_from_args instead of init in subclasses
    * Store project_type variable in ClassificationProjectRNN
    * Introduce load_from_dir function to automatically choose correct class
    bf50acf0
    History
    Improve loading from dir
    Nikolai.Hartmann authored
    * Call _init_from_args instead of init in subclasses
    * Store project_type variable in ClassificationProjectRNN
    * Introduce load_from_dir function to automatically choose correct class
browse.py 370 B
import sys
import logging

import numpy as np
import matplotlib.pyplot as plt

from KerasROOTClassification import *

logging.basicConfig()
logging.getLogger("KerasROOTClassification").setLevel(logging.INFO)

c = load_from_dir(sys.argv[1])

cs = []
cs.append(c)

if len(sys.argv) > 2:
    for project_name in sys.argv[2:]:
        cs.append(load_from_dir(project_name))