Advertisement
Guest User

Untitled

a guest
Feb 26th, 2019
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.34 KB | None | 0 0
  1. file_names = ['a.csv','b.csv']
  2. scores = [1,2]
  3. def parse_event(line):
  4.   time = get_time(line)
  5.   space = get_space(line)
  6.   return (time, space)
  7. samples = file_names.map(lambda path: [parse_event(line) for line in lines(path)])
  8. for sample_trace, score in zip(samples, scores):
  9.   model.fit(input_sequence=sample_trace, expected_output=score)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement