You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm running the examples in the RASP tutorial in an environment built from reagent cpu docker image in a MAC OS, and I was trying to replicate this (but just replacing the heuristic plan with a new generated plan):
I was able to generate an epsilon_greedy_plan.json using the epsilongreedyranker_decision_plan() in example.py, the EpsilonGreedyRanker() in operator.py, and the DecisionPlanBuilder() class in builder.py:
This plan is now in the same dir as the heuristic plan but running python serving/examples/ecommerce/customer_simulator.py epsilon_greedy_plan.json returned error messages:
E1110 21:29:26.775698 6181 DecisionService.cpp:27] Tried to get a config that doesn't exist: epsilon_greedy_plan.json
E1110 21:29:26.775782 6181 Server.cpp:25] GOT ERROR: Tried to get a config that doesn't exist: epsilon_greedy_plan.json
It seems the getPlan() failed to capture the plan but I'm wondering how to connect customized plans to the server. Is this something related to the export() function in the builder as well as in the main file? Thanks!!
The text was updated successfully, but these errors were encountered:
I got lucky with this one. I tried to rebuild the environment and found those when restarting the server:
./serving/build/RaspCli --logtostderr
I1111 01:47:07.995352 5652 InMemoryLogJoiner.h:19] Log directory : "/tmp/rasp_logging" does not exist. Created
I1111 01:47:07.996305 5652 DiskConfigProvider.cpp:9] READING CONFIGS FROM serving/examples/ecommerce/plans
I1111 01:47:08.010141 5652 DiskConfigProvider.cpp:48] GOT CONFIG multi_armed_bandit.json AT serving/examples/ecommerce/plans/multi_armed_bandit.json
I1111 01:47:08.011966 5652 DiskConfigProvider.cpp:52] Registered decision config: multi_armed_bandit.json
I1111 01:47:08.025550 5652 DiskConfigProvider.cpp:48] GOT CONFIG contextual_bandit.json AT serving/examples/ecommerce/plans/contextual_bandit.json
I1111 01:47:08.025688 5652 DiskConfigProvider.cpp:52] Registered decision config: contextual_bandit.json
I1111 01:47:08.035871 5652 DiskConfigProvider.cpp:48] GOT CONFIG heuristic.json AT serving/examples/ecommerce/plans/heuristic.json
I1111 01:47:08.035995 5652 DiskConfigProvider.cpp:52] Registered decision config: heuristic.json
I1111 01:47:08.037144 5657 Server.cpp:58] STARTING SERVER
And realized the only chance for the new plan to be captured and registered is when starting the server. So basically every time you generated a new plan, you should put it in this dir: serving/examples/ecommerce/plans and then restart the server.
I'm running the examples in the RASP tutorial in an environment built from reagent cpu docker image in a MAC OS, and I was trying to replicate this (but just replacing the heuristic plan with a new generated plan):
I was able to generate an epsilon_greedy_plan.json using the
epsilongreedyranker_decision_plan()
in example.py, theEpsilonGreedyRanker()
in operator.py, and theDecisionPlanBuilder()
class in builder.py:This plan is now in the same dir as the heuristic plan but running
python serving/examples/ecommerce/customer_simulator.py epsilon_greedy_plan.json
returned error messages:It seems the
getPlan()
failed to capture the plan but I'm wondering how to connect customized plans to the server. Is this something related to theexport()
function in the builder as well as in the main file? Thanks!!The text was updated successfully, but these errors were encountered: