7 Commits

Author SHA1 Message Date
Avilay Parekh 2b72c39f18 Reducing log noise
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
2021-07-15 16:19:08 -07:00
Roel Bertens 6b3ecdc9d4 Four fixes for RASP Tutorial (#458)
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
2021-04-21 09:43:49 -07:00
Alex Nikulkov 68501baf1a Add missing __init__.py files to ReAgent (#312)
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
2020-09-08 09:35:47 -07:00
Kaiwen Wang b227a7efe0 Update CB RASP tutorial (#270)
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
2020-05-27 22:17:21 -07:00
Jason Gauci f3a0c30321 Rasp bag of fixes
Summary: Pull Request resolved: https://github.com/facebookresearch/ReAgent/pull/165

Reviewed By: ppuliu

Differential Revision: D17933739

Pulled By: MisterTea

fbshipit-source-id: 3dcd8b10cc4b8b9a62e9889278475c1f306fd4a0
2019-10-15 17:51:27 -07:00
Jason Gauci 604ced6b2a Ecom pytorch fixes
Summary: Pull Request resolved: https://github.com/facebookresearch/ReAgent/pull/161

Reviewed By: kittipatv

Differential Revision: D17880151

Pulled By: MisterTea

fbshipit-source-id: 455679f7abb004ae900509589de7fbde688e41f8
2019-10-11 17:03:48 -07:00
Jason Gauci 41b871e494 Ecom example
Summary: Pull Request resolved: https://github.com/facebookresearch/ReAgent/pull/160

Reviewed By: kittipatv, ppuliu

Differential Revision: D17850168

Pulled By: MisterTea

fbshipit-source-id: 50634faefe7cccb3d8ff5e9d66621d78c2236348
2019-10-11 09:17:54 -07:00