Skip to content

Commit

Permalink
Refactor test_bigbench_reasoning to improve input structure and clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
kasinadhsarma committed Dec 25, 2024
1 parent 6ae6871 commit 5575ade
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Binary file not shown.
7 changes: 3 additions & 4 deletions tests/benchmarks/test_bigbench_reasoning.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,11 @@ def test_meta_learning(self, device, consciousness_model):
'textual': input_embedding,
'visual': torch.zeros(1, 64, 512, device=device), # Added dummy 'visual' input with matching sequence length
'state': state
consciousness_threshold=0.1 + i*0.3 # Increase threshold with complexity
)
consciousness_threshold=0.1 + i*0.3 # Increase threshold with complexity
},
consciousness_threshold=0.1 + i*0.3, # Increase threshold with complexity
)
phi_values.append(metrics['phi'])
last_state = output.squeeze(0)
last_state = output

# Test adaptation capability with more lenient thresholds
phi_tensor = torch.cat(phi_values)
Expand Down

0 comments on commit 5575ade

Please sign in to comment.