fixed a transpose and docstring issue with attribution_by_weight