google / google/matched_markets

TypeError in step 3

Open
#3 9 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
103
Forks
33
PR merge metrics
No merged PRs in 30d

Description

in step 3: Summary of the possible designs, if/when there are no suitable designs (e.g. if budget too low, time period too long, etc.. ) the code returns a type error. Perhaps a more descriptive error message would be helpful.

TypeError Traceback (most recent call last)
[](https://p1lbgbbzpz-496ff2e9c6d22116-0-colab.googleusercontent.com/outputframe.html?vrz=colab-20230117-060106-RC00_502511873#) in
6 matched_designs = MMclass.exhaustive_search()
7 else:
----> 8 matched_designs = MMclass.greedy_search()
9
10 if len(matched_designs) == 0:

1 frames
[/usr/local/lib/python3.8/dist-packages/matched_markets/methodology/tbrmmscore.py](https://p1lbgbbzpz-496ff2e9c6d22116-0-colab.googleusercontent.com/outputframe.html?vrz=colab-20230117-060106-RC00_502511873#) in score(self)
87 if self._score is None:
88 self._score = Scoring(
---> 89 int(self.diag.corr_test), int(self.diag.aatest.test_ok),
90 int(self.diag.bbtest.test_ok), int(self.diag.dwtest.test_ok),
91 round(self.diag.corr, 2), 1 / self.diag.required_impact)

TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.