Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- file_names = ['a.csv','b.csv']
- scores = [1,2]
- def parse_event(line):
- time = get_time(line)
- space = get_space(line)
- return (time, space)
- samples = file_names.map(lambda path: [parse_event(line) for line in lines(path)])
- for sample_trace, score in zip(samples, scores):
- model.fit(input_sequence=sample_trace, expected_output=score)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement