We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32434d5 commit eb2ec24Copy full SHA for eb2ec24
utils/load_data_sets.py
@@ -88,6 +88,10 @@ def get_batch(self, batch_size):
88
@staticmethod
89
def from_positions_w_context(positions_w_context, is_test=False, extract_move_prob=False):
90
positions, next_moves, results = zip(*positions_w_context)
91
+
92
+ # Remove None types to prevent error in wrt_result
93
+ results = [i for i in results if i.result is not None]
94
95
extracted_features = bulk_extract_features(positions)
96
if extract_move_prob:
97
encoded_moves = np.asarray(next_moves)
0 commit comments