def __init__(self, filename=None, theta=None, data=None): if filename is not None: self.theta = io.load_theta(filename) else: self.theta = theta self.data = data self.labeled_data = True self.eval_data = None self.y_known = None
def __init__(self, filename=None, theta=None, data=None): """Initialize with filename for parameters theta or actual numpy array. These are helpful for evaluation after training.""" if filename is not None: # Can provide filename with value of theta self.theta = io.load_theta(filename) else: self.theta = theta self.data = data self.labeled_data = False