PEATDB/Ekin/Dataset.py
def add(self, dp=(None,None), a=1, e=(None,None)):
        """Add a new datapoint, dp is a tuple"""        
        self.x.append(dp[0])
        self.y.append(dp[1])
        self.active.append(a)
        for d in range(self.dims):
            self.errors[d].append(e[d])
        return
Add a new datapoint, dp is a tuple
Add a new datapoint, dp is a tuple
Add a new datapoint dp is a tuple
def add(self, dp=(None,None), a=1, e=(None,None)):
        self.x.append(dp[0])
        self.y.append(dp[1])
        self.active.append(a)
        for d in range(self.dims):
            self.errors[d].append(e[d])
        return
def add ( self , dp = ( None , None ) , a = 1 , e = ( None , None ) ) : self . x . append ( dp [ 0 ] ) self . y . append ( dp [ 1 ] ) self . active . append ( a ) for d in range ( self . dims ) : self . errors [ d ] . append ( e [ d ] ) return
Add a new datapoint, dp is a tuple
Add a new datapoint dp is a tuple
"""Add a new datapoint, dp is a tuple"""
self
dp
a
e