Programming Language/Python
Python 배열을 특정 사이즈로 자르기
바나나인간
2020. 8. 13. 09:29
max_batch_size = 20
total_features = [eval_features[i:i + max_batch_size] for i in range(0, len(eval_features), max_batch_size)]
window_size = 3
total_keys = [keys[x:x+window_size] for x in range(len(keys) - window_size + 1 )]