transform

old TransE-like models
git clone https://esimon.eu/repos/transform.git
Log | Files | Refs | README

log.py (254B)


      1 from __future__ import print_function
      2 import sys
      3 
      4 def log(message):
      5     print(message, end='')
      6     sys.stdout.flush()
      7 
      8 def datalog(datalog_filepath, *data):
      9     with open(datalog_filepath, 'a') as file:
     10         file.write('\t'.join(map(str, data))+'\n')