Write out linear weights into csv format