Пример #1
0
    def __init__(self, verbose=True, download=True, path='submissions', 
        **kargs):
        """.. rubric:: constructor

        :param path: path to a directory containing submissions
        :return:
        """
        Challenge.__init__(self, 'D7C1', verbose, download, **kargs)
        self.sub_challenges = ['parameter', 'topology', 'timecourse']

        self.path = path

        teams = glob.glob(path + os.sep +'*')
        self.teams = [this for this in teams if os.path.isdir(this) is True]

        self.N = len(self.teams)
        self.distances = np.zeros((self.N, 4))
        self.pvalues = np.zeros((self.N, 4))

        self.scores = {}
        self._load_gold_standard()

        #self.load_submissions()
        #self.compute_score_distance_model1()
        #self.compute_score_parameter_prediction_model1()
        #self.compute_score_topology()

        # data structure to store null distances
        self.rdistance_pred1 = []
        self.rdistance_param1 = []
Пример #2
0
    def __init__(self, challenge, client=None):
        """.. rubric:: constructor

        :param str challenge: nickname of a challenge (e.g., D5C1)

        To automatically connect to synapse, create a file called .synapseConfig with this
        content::

            [authentication]
            username: email
            password: password

        """
        Challenge.__init__(self, challenge_name=challenge)
        Login.__init__(self, client=client)
Пример #3
0
    def __init__(self, challenge, client=None, username=None, password=None):
        """.. rubric:: constructor

        :param str challenge: alias of a challenge (e.g., D5C1)

        To automatically connect to synapse, create a file 
        called .synapseConfig with this content::

            [authentication]
            username: email
            password: password

        """
        Challenge.__init__(self, challenge_name=challenge)
        # Login provides the synapse client. See client attribute
        warnings.filterwarnings("ignore")
        Login.__init__(self, client=client, username=username,
                password=password)
        warnings.resetwarnings()
Пример #4
0
    def __init__(self, challenge, client=None, username=None, password=None):
        """.. rubric:: constructor

        :param str challenge: alias of a challenge (e.g., D5C1)

        To automatically connect to synapse, create a file 
        called .synapseConfig with this content::

            [authentication]
            username: email
            password: password

        """
        Challenge.__init__(self, challenge_name=challenge)
        # Login provides the synapse client. See client attribute
        warnings.filterwarnings("ignore")
        Login.__init__(self,
                       client=client,
                       username=username,
                       password=password)
        warnings.resetwarnings()
Пример #5
0
 def __init__(self):
     Challenge.__init__(self, "D3C1")
     # read data required for the scoring.
     self._init()
Пример #6
0
    def __init__(self, filename, verboseR=True):
        Challenge.__init__(self, challenge_name='D8C2')
        RTools.__init__(self, verboseR=verboseR)

        self.filename = filename
        self._path2data = os.path.split(os.path.abspath(__file__))[0]
Пример #7
0
    def __init__(self, filename, verboseR=True):
        Challenge.__init__(self, challenge_name='D8C2')
        RTools.__init__(self, verboseR=verboseR)

        self.filename = filename
Пример #8
0
    def __init__(self, filename, verboseR=True):
        Challenge.__init__(self, challenge_name='D8C2')
        RTools.__init__(self, verboseR=verboseR)

        self.filename = filename
Пример #9
0
 def __init__(self, verbose=True, download=True, **kargs):
     Challenge.__init__(self, "D3C1", verbose, download, **kargs)
     # read data required for the scoring.
     self._init()
Пример #10
0
 def __init__(self, name, verbose=True):
     super(Layout, self).__init__(level=verbose)
     self.name = name
     # check the name is correct
     from dreamtools.core.challenge import Challenge
     c = Challenge(self.name)
Пример #11
0
    def __init__(self):
        Challenge.__init__(self, "D3C1")
        self._path2data = os.path.split(os.path.abspath(__file__))[0]

        # read data required for the scoring.
        self._init()
Пример #12
0
 def __init__(self, verbose=True, download=True, **kargs):
     Challenge.__init__(self, "D3C1", verbose, download, **kargs)
     # read data required for the scoring.
     self._init()