This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| r""" | |
| PreferenceFutures — NewsEdits mechanism-ablation probe. | |
| Research question | |
| ----------------- | |
| Does a real human revision event contain incremental information about the | |
| future of the revised sentence? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| r""" | |
| PreferenceFutures — NewsEdits revision-lineage probe. | |
| Research question | |
| ----------------- | |
| Does a real human revision event contain incremental information about the | |
| future of the revised sentence? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| """ | |
| PreferenceFutures probe, v2. | |
| This script tests the claim: | |
| Preferences can contain incremental information about future outcomes. | |
| For a future target F, history/candidate features H,A, and preference Y: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class ScoreComparisonAgent(BaseAgent): | |
| """ | |
| Agent to aggregate and compare scores from multiple sources (SICQL, MRQ, SVM, EBT, LLM) | |
| across specified pipeline runs. Handles asynchronous LLM scoring by fetching latest | |
| LLM scores for targets evaluated by pipeline-run-linked scorers. | |
| This is Step 1: Comprehensive Score Aggregation and Comparison. | |
| """ | |
| def __init__(self, cfg, memory=None, logger=None): | |
| super().__init__(cfg, memory, logger) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| import tiktoken | |
| def read_files(directory): | |
| """ | |
| Reads all .txt files from the specified directory and returns their content as a list of strings. | |
| """ | |
| texts = [] | |
| for filename in os.listdir(directory): | |
| if filename.endswith(".txt"): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Option Explicit | |
| Dim fso, folder, file, tmFile | |
| Dim folderName | |
| folderName = "\\pcc\Int\PC\Inbox\" | |
| Set fso = CreateObject("Scripting.FileSystemObject") | |
| Set folder = fso.GetFolder(folderName) | |