-
Notifications
You must be signed in to change notification settings - Fork 0
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
Questions regarding the logger #138
Comments
Yeah, we log only every 10 iterations or so, so we may lose the values of the last 9 iterations. Fixes that I can think of include
You can use |
Thanks for the tipps! I think I managed to resolve the issue with the final values by adding two new trigger options. They may be not nice, but in contrast to your first idea they provide a value for the last iteration/evaluation. However, your idea to append a second Towards |
And another question (I knew there would be some problems when trying to create the first experiment, but I'm getting a bit tired...): Can we log only the diversity value of the At the moment, the whole state is logged. This makes it more complex to prepare the data for evaluation. I could resolve this in Python by reformatting the data, but this will take forever to run with larger experiments... |
Yes, we have two options here:
The latter is certainly the more flexible option, but the prior might be more convenient. Option 1: /// State for logging/tracking population diversity.
#[derive(Debug, Serialize)]
#[serde(transparent)]
pub struct DiversityState<I> {
/// Normalized diversity.
pub diversity: f64,
/// Non-normalized maximal diversity.
#[serde(skip)]
pub max_diversity: f64,
#[serde(skip)]
phantom: PhantomData<I>,
} Option 2: pub fn normalized_diversity<I>(state: &State) -> Entry {
Entry {
name: type_name::<DiversityState<I>>(),
value: Box::new(state.get::<DiversityState<I>>().diversity)
}
} |
Thanks! I think I prefer and will use Option 2, especially as there might be some similar cases in the future. |
I came across some question/problems with our current logging procedure:
examples\coco.rs
we uselog_common_sets
and then set another trigger for logging other values. This results in two triggers and a lot of useless lines in the data. While it is not really a problem, it is nevertheless not nice.I'm not quite sure if and how we want to adress these issues, so I'm asking for some feedback @luleyleo @Saethox .
The text was updated successfully, but these errors were encountered: