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

Adds chosenFeatures for a more expressive DefaultStateRepresentation. #221

Merged
merged 39 commits into from
May 4, 2022

Conversation

gostreap
Copy link
Collaborator

@gostreap gostreap commented May 4, 2022

The main objective of pull request is to provide a simple tool to choose which features to use.

chosen_features = Dict(
    "constraint_activity" => true, 
    "values_onehot" => true,
    "variable_initial_domain_size" => true,
    "variable_domain_size" => true,
    "variable_is_bound" => true,
    "nb_involved_constraint_propagation" => true,
    "nb_not_bounded_variable" => true
)

SR = SeaPearl.DefaultStateRepresentationTsptw{SeaPearl.DefaultFeaturization, SeaPearl.DefaultTrajectoryState}
learnedHeuristic = SeaPearl.LearnedHeuristic{SR, SeaPearl.TsptwReward, SeaPearl.FixedOutput}(agent; chosen_features = chosen_features)

We have also introduced a new statistic: numberOfTimesInvolvedInPropagation. This is a dictionary that associates to each constraint the number of times it is put in the fixPoint stack. This allows us to add the corresponding feature in the featurization of the variables.

louis-gautier and others added 30 commits April 5, 2022 16:05
@gostreap gostreap merged commit 8eafcc0 into master May 4, 2022
@gostreap
Copy link
Collaborator Author

gostreap commented May 4, 2022

Because of a bad manipulation, this pull request has been duplicated, the review is in #215.

@gostreap gostreap deleted the louis/new_node_features branch May 4, 2022 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants