PEATDB/Ekin/Dataset.py
def remove(self, i=None):
        """Delete a datapoint at index i"""
        if i >  len(self.x):
            print 'index out of range'
            return
        if i==None:
            self.x.pop()
            self.y.pop()
        else:
            del self.x[i]
            del self.y[i]
            del self.active[i]
            for j in range(self.dims):
                del self.errors[j][i]
        return
Delete a datapoint at index i
Delete a datapoint at index i
Delete a datapoint at index i
def remove(self, i=None):
        if i >  len(self.x):
            print 'index out of range'
            return
        if i==None:
            self.x.pop()
            self.y.pop()
        else:
            del self.x[i]
            del self.y[i]
            del self.active[i]
            for j in range(self.dims):
                del self.errors[j][i]
        return
def remove ( self , i = None ) : if i > len ( self . x ) : print 'index out of range' return if i == None : self . x . pop ( ) self . y . pop ( ) else : del self . x [ i ] del self . y [ i ] del self . active [ i ] for j in range ( self . dims ) : del self . errors [ j ] [ i ] return
Delete a datapoint at index i
Delete a datapoint at index i
"""Delete a datapoint at index i"""
self
i