Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Probablemente solamente guardar bestSorted y tratarlo con el nombre de bestDic o best_windows, además de solo contemplar hasta num_cases #12

Open
jerryperezperez opened this issue Oct 9, 2024 · 0 comments
Assignees
Labels
help wanted Extra attention is needed

Comments

@jerryperezperez
Copy link
Collaborator

    def _compute_statistics(self, num_cases: int, predictionTargetWindow: np.ndarray, correlation_per_window: np.ndarray, target):

        self.bestDic = {index: correlation_per_window[index] for index in self.best_windows_index}

        self.worstDic = {index: correlation_per_window[index] for index in self.worst_windows_index}

        self.bestSorted = sorted(self.bestDic.items(), reverse=True, key=lambda x: x[1])

        self.worstSorted = sorted(self.worstDic.items(), key=lambda x: x[1])
        # TODO Probablemente solamente guardar bestSorted y tratarlo con el nombre de bestDic o best_windows, además de solo contemplar hasta num_cases
        self.bestSorted = self.bestSorted[0:num_cases]
        self.worstSorted = self.worstSorted[0:num_cases]
@jerryperezperez jerryperezperez added the help wanted Extra attention is needed label Oct 9, 2024
Cowardenemy added a commit that referenced this issue Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants