def export_weights(self, output, weights, header=None):
    writer = csv.writer(output)
    if (header is not None):
        writer.writerow(header)
    writer.writerow(weights)
def export_weights(self, output, weights, header=None):
    writer = csv.writer(output)
    if (header is not None):
        writer.writerow(header)
    writer.writerow(weights)