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

feat: add probing policy #198

Merged
merged 12 commits into from
Nov 27, 2022
Merged

feat: add probing policy #198

merged 12 commits into from
Nov 27, 2022

Conversation

kkafar
Copy link
Collaborator

@kkafar kkafar commented Nov 27, 2022

Description

This PR extends probing mechanisms in GA and solutions introduced here should also be taken into consideration when implementing / extending logging mechanisms for other algorithms.

  • Added ProbingPolicy trait
  • Added GenerationInterval probing policy
  • Added ElapsedTime probing policy
  • Added new PolicyDrivenProbe - this probe can be passed a ProbingPolicy and it will log only when given policy allows it to
  • Changed the way probing are exported out of crate::ga::probe module - now they are exported directly, not via their designated module. That means old import:
use ecrs::ga::probe::stdout_probe::StdoutProbe

now becomes

use ecrs::ga::probe::StdoutProbe
  • Added Aggregated probe, which can be passed a vector of probes and executes them sequentially.
  • Minor refactors of codebase to make aforementioned changes possible.

Linked issues

Resolves #171
Resolves #170

@kkafar kkafar added the feature New feature or request label Nov 27, 2022
@kkafar kkafar self-assigned this Nov 27, 2022
@kkafar kkafar marked this pull request as ready for review November 27, 2022 12:07
@kkafar kkafar merged commit 777303d into main Nov 27, 2022
@kkafar kkafar deleted the @kkafar/probing branch November 27, 2022 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[GA] Add probing based on elapsed generations [GA] Add probing based on elapsed time
1 participant