Summary: There are several modules in the ReAgent library where the logger level is set in the library code thus overriding the level set by the library client resulting in very verbose stdout. This diff removes places in the library where the logger level is set so that the client's setting is always maintained.
Reviewed By: bankawas
Differential Revision: D29673661
fbshipit-source-id: 8f6db342571d4524768f75d6d6bf4416bad8ad1c
Summary:
Pull Request resolved: https://github.com/facebookresearch/ReAgent/pull/458
When trying to follow the [tutorial](https://reagent.ai/rasp_tutorial.html) there are a few things that need fixing:
1. When running the script serving/scripts/rasp_to_model.py I came across this error
```
python serving/scripts/rasp_to_model.py /tmp/rasp_logging/log.txt /tmp/input_df.pkl
Traceback (most recent call last):
File "serving/scripts/rasp_to_model.py", line 13, in <module>
logger.setLevel(logging.info)
File "/usr/local/anaconda3/envs/reagent/lib/python3.7/logging/__init__.py", line 1353, in setLevel
self.level = _checkLevel(level)
File "/usr/local/anaconda3/envs/reagent/lib/python3.7/logging/__init__.py", line 195, in _checkLevel
raise TypeError("Level not an integer or a valid string: %r" % level)
TypeError: Level not an integer or a valid string: <function info at 0x7fb8000d73b0>
```
Luckily it is an easy fix to pass an actual loglevel.
2. This config file probably is outdated: serving/examples/ecommerce/training/contextual_bandit.yaml
- changed indentation level
- changed key name
3. There is an __init__.py file missing in the gym tests therefore leading to an error
4. The path to the SPARK_JAR was not resolving correctly.
Pull Request resolved: https://github.com/facebookresearch/ReAgent/pull/391
Test Plan:
Imported from GitHub, without a `Test Plan:` line.
...but without running open source tests.
Reviewed By: czxttkl
Differential Revision: D27842451
Pulled By: MisterTea
fbshipit-source-id: 2175296c6b60db4dc4b22804a74c2259b14fee7e
Summary:
Pull Request resolved: https://github.com/facebookresearch/ReAgent/pull/312
The missing `__init__.py` files were preventing proper import from submodules. I added them to all folders which had `*.py` files in them or in subfolders. I also removed one `__init__.py` file from a folder which had no `.py` files.
Reviewed By: kaiwenw
Differential Revision: D23256716
fbshipit-source-id: d94e67e4b2bfe45c7022f63b1dc0f153d98df2e8
Summary:
Updated CB RASP tutorial to use new OSS workflow.
Introduce FileSystemPublisher, a key-value database with tinydb, an OSS version of predictor. This way, after training the path to torchscript can be uploaded, and during evaluation it can be read.
Pull Request resolved: https://github.com/facebookresearch/ReAgent/pull/270
Reviewed By: MisterTea
Differential Revision: D21689872
fbshipit-source-id: e8d510fe895dcb33d41464e026af842e31366f87