Skip to content

Bug in approximator.sparse #469

@landonbutler

Description

@landonbutler

There is a bug for games with non-zero baseline value in approximator.sparse.

Line 262
baseline_value=self.interaction_lookup.get((), 0.0)

should be
baseline_value=result[self.interaction_lookup[()]] if () in self.interaction_lookup else 0.0

The current implementation returns the index of the null coefficient in values, when the baseline value is the value.

Metadata

Metadata

Assignees

Labels

approximator 🔧all issues that are linked to approximatorsbug 💣Something isn't working

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions