Open deanbittner opened 7 years ago
I don't have ~/analytic-engine-rl/build/analytic-engine-rl-cli as it won't build due to error noted below. I will retrace the rl build steps.
Build error as follows.
[ 20%] Building CXX object src/CMakeFiles/analyticenginerl.dir/app.cpp.o
In file included from /usr/local/include/rl_bits/algorithm/gradient-descent/ReinforcementLearningGDFactory.h:23:0,
from /usr/local/include/rl:28,
from /home/dean/analytic-engine-rl/src/app.cpp:9:
/usr/local/include/rl_bits/algorithm/gradient-descent/ReinforcementLearningGD.h In constructor ‘rl::algorithm::ReinforcementLearningGD<D, NUM_TILINGS, STATE_DIM>::ReinforcementLearningGD(rl::coding::spTileCode<D, NUM_TILINGS>&, rl::FLOAT, rl::FLOAT, rl::FLOAT, const typename rl::algorithm::ReinforcementLearningGDAbstract<D, NUM_TILINGS, STATE_DIM>::spPolicy&)’:
/usr/local/include/rl_bits/algorithm/gradient-descent/ReinforcementLearningGD.h:65:57: error: expected primary-expression before ‘(’ token
spGradientDescentAbstract<D, NUM_TILINGS, STATE_DIM>(
^
/usr/local/include/rl_bits/algorithm/gradient-descent/ReinforcementLearningGD.h:66:11: error: ‘GradientDescent’ does not name a type
new GradientDescent<D, NUM_TILINGS, STATE_DIM>(
^
In file included from /home/dean/analytic-engine-rl/src/app.cpp:11:0:
/home/dean/analytic-engine-rl/include/app.h: At global scope:
/home/dean/analytic-engine-rl/include/app.h:29:16: error: ‘rl::AgentSupervised’ has not been declared
rl::AgentSupervised<rl::floatVector, rl::floatVector> &agent,
^
/home/dean/analytic-engine-rl/include/app.h:29:31: error: expected ‘,’ or ‘...’ before ‘<’ token
rl::AgentSupervised<rl::floatVector, rl::floatVector> &agent,
^
/home/dean/analytic-engine-rl/include/app.h:40:48: error: ‘StateAction’ is not a member of ‘rl’
const multimap<rl::FLOAT, rl::StateAction<STATE, ACTION>>
^
/home/dean/analytic-engine-rl/include/app.h:40:48: note: suggested alternatives:
In file included from /usr/local/include/rl_bits/algorithm/DynaQ.h:25:0,
from /usr/local/include/rl:21,
from /home/dean/analytic-engine-rl/src/app.cpp:9:
/usr/local/include/rl_bits/agent/StateAction.h:35:7: note: ‘rl::agent::StateAction’
class StateAction {
^
/usr/local/include/rl_bits/agent/StateAction.h:35:7: note: ‘rl::agent::StateAction’
In file included from /home/dean/analytic-engine-rl/src/app.cpp:11:0:
/home/dean/analytic-engine-rl/include/app.h:40:48: error: ‘StateAction’ is not a member of ‘rl’
const multimap<rl::FLOAT, rl::StateAction<STATE, ACTION>>
^
/home/dean/analytic-engine-rl/include/app.h:40:48: note: suggested alternatives:
In file included from /usr/local/include/rl_bits/algorithm/DynaQ.h:25:0,
from /usr/local/include/rl:21,
from /home/dean/analytic-engine-rl/src/app.cpp:9:
/usr/local/include/rl_bits/agent/StateAction.h:35:7: note: ‘rl::agent::StateAction’
class StateAction {
^
/usr/local/include/rl_bits/agent/StateAction.h:35:7: note: ‘rl::agent::StateAction’
In file included from /home/dean/analytic-engine-rl/src/app.cpp:11:0:
/home/dean/analytic-engine-rl/include/app.h:40:71: error: template argument 2 is invalid
const multimap<rl::FLOAT, rl::StateAction<STATE, ACTION>> &r
^
/home/dean/analytic-engine-rl/include/app.h:40:71: error: template argument 4 is invalid
/home/dean/analytic-engine-rl/include/app.h:40:48: error: ‘StateAction’ is not a member of ‘rl’
const multimap<rl::FLOAT, rl::StateAction<STATE, ACTION>>
^
/home/dean/analytic-engine-rl/include/app.h:40:48: note: suggested alternatives:
In file included from /usr/local/include/rl_bits/algorithm/DynaQ.h:25:0,
from /usr/local/include/rl:21,
from /home/dean/analytic-engine-rl/src/app.cpp:9:
/usr/local/include/rl_bits/agent/StateAction.h:35:7: note: ‘rl::agent::StateAction’
class StateAction {
^
/usr/local/include/rl_bits/agent/StateAction.h:35:7: note: ‘rl::agent::StateAction’
In file included from /home/dean/analytic-engine-rl/src/app.cpp:11:0:
/home/dean/analytic-engine-rl/include/app.h:40:48: error: ‘StateAction’ is not a member of ‘rl’
const multimap<rl::FLOAT, rl::StateAction<STATE, ACTION>>
^
/home/dean/analytic-engine-rl/include/app.h:40:48: note: suggested alternatives:
In file included from /usr/local/include/rl_bits/algorithm/DynaQ.h:25:0,
from /usr/local/include/rl:21,
from /home/dean/analytic-engine-rl/src/app.cpp:9:
/usr/local/include/rl_bits/agent/StateAction.h:35:7: note: ‘rl::agent::StateAction’
class StateAction {
^
/usr/local/include/rl_bits/agent/StateAction.h:35:7: note: ‘rl::agent::StateAction’
In file included from /home/dean/analytic-engine-rl/src/app.cpp:11:0:
/home/dean/analytic-engine-rl/include/app.h:40:77: error: template argument 2 is invalid
const multimap<rl::FLOAT, rl::StateAction<STATE, ACTION>> &rewardM
^
/home/dean/analytic-engine-rl/include/app.h:40:77: error: template argument 4 is invalid
/home/dean/analytic-engine-rl/include/app.h:40:48: error: ‘StateAction’ is not a member of ‘rl’
const multimap<rl::FLOAT, rl::StateAction<STATE, ACTION>>
^
/home/dean/analytic-engine-rl/include/app.h:40:48: note: suggested alternatives:
In file included from /usr/local/include/rl_bits/algorithm/DynaQ.h:25:0,
from /usr/local/include/rl:21,
from /home/dean/analytic-engine-rl/src/app.cpp:9:
/usr/local/include/rl_bits/agent/StateAction.h:35:7: note: ‘rl::agent::StateAction’
class StateAction {
^
/usr/local/include/rl_bits/agent/StateAction.h:35:7: note: ‘rl::agent::StateAction’
In file included from /home/dean/analytic-engine-rl/src/app.cpp:11:0:
/home/dean/analytic-engine-rl/include/app.h:40:48: error: ‘StateAction’ is not a member of ‘rl’
const multimap<rl::FLOAT, rl::StateAction<STATE, ACTION>>
^
/home/dean/analytic-engine-rl/include/app.h:40:48: note: suggested alternatives:
In file included from /usr/local/include/rl_bits/algorithm/DynaQ.h:25:0,
from /usr/local/include/rl:21,
from /home/dean/analytic-engine-rl/src/app.cpp:9:
/usr/local/include/rl_bits/agent/StateAction.h:35:7: note: ‘rl::agent::StateAction’
class StateAction {
^
/usr/local/include/rl_bits/agent/StateAction.h:35:7: note: ‘rl::agent::StateAction’
In file included from /home/dean/analytic-engine-rl/src/app.cpp:11:0:
/home/dean/analytic-engine-rl/include/app.h:40:77: error: template argument 2 is invalid
const multimap<rl::FLOAT, rl::StateAction<STATE, ACTION>> &rewardM
^
/home/dean/analytic-engine-rl/include/app.h:40:77: error: template argument 4 is invalid
/home/dean/analytic-engine-rl/include/app.h:40:48: error: ‘StateAction’ is not a member of ‘rl’
const multimap<rl::FLOAT, rl::StateAction<STATE, ACTION>>
^
/home/dean/analytic-engine-rl/include/app.h:40:48: note: suggested alternatives:
In file included from /usr/local/include/rl_bits/algorithm/DynaQ.h:25:0,
from /usr/local/include/rl:21,
from /home/dean/analytic-engine-rl/src/app.cpp:9:
/usr/local/include/rl_bits/agent/StateAction.h:35:7: note: ‘rl::agent::StateAction’
class StateAction {
^
/usr/local/include/rl_bits/agent/StateAction.h:35:7: note: ‘rl::agent::StateAction’
In file included from /home/dean/analytic-engine-rl/src/app.cpp:11:0:
/home/dean/analytic-engine-rl/include/app.h:40:48: error: ‘StateAction’ is not a member of ‘rl’
const multimap<rl::FLOAT, rl::StateAction<STATE, ACTION>>
^
/home/dean/analytic-engine-rl/include/app.h:40:48: note: suggested alternatives:
In file included from /usr/local/include/rl_bits/algorithm/DynaQ.h:25:0,
from /usr/local/include/rl:21,
from /home/dean/analytic-engine-rl/src/app.cpp:9:
/usr/local/include/rl_bits/agent/StateAction.h:35:7: note: ‘rl::agent::StateAction’
class StateAction {
^
/usr/local/include/rl_bits/agent/StateAction.h:35:7: note: ‘rl::agent::StateAction’
In file included from /home/dean/analytic-engine-rl/src/app.cpp:11:0:
/home/dean/analytic-engine-rl/include/app.h:40:77: error: template argument 2 is invalid
const multimap<rl::FLOAT, rl::StateAction<STATE, ACTION>> &rewardM
^
/home/dean/analytic-engine-rl/include/app.h:40:77: error: template argument 4 is invalid
/home/dean/analytic-engine-rl/include/app.h:40:48: error: ‘StateAction’ is not a member of ‘rl’
const multimap<rl::FLOAT, rl::StateAction<STATE, ACTION>>
^
/home/dean/analytic-engine-rl/include/app.h:40:48: note: suggested alternatives:
In file included from /usr/local/include/rl_bits/algorithm/DynaQ.h:25:0,
from /usr/local/include/rl:21,
from /home/dean/analytic-engine-rl/src/app.cpp:9:
/usr/local/include/rl_bits/agent/StateAction.h:35:7: note: ‘rl::agent::StateAction’
class StateAction {
^
/usr/local/include/rl_bits/agent/StateAction.h:35:7: note: ‘rl::agent::StateAction’
In file included from /home/dean/analytic-engine-rl/src/app.cpp:11:0:
/home/dean/analytic-engine-rl/include/app.h:40:48: error: ‘StateAction’ is not a member of ‘rl’
const multimap<rl::FLOAT, rl::StateAction<STATE, ACTION>>
^
/home/dean/analytic-engine-rl/include/app.h:40:48: note: suggested alternatives:
In file included from /usr/local/include/rl_bits/algorithm/DynaQ.h:25:0,
from /usr/local/include/rl:21,
from /home/dean/analytic-engine-rl/src/app.cpp:9:
/usr/local/include/rl_bits/agent/StateAction.h:35:7: note: ‘rl::agent::StateAction’
class StateAction {
^
/usr/local/include/rl_bits/agent/StateAction.h:35:7: note: ‘rl::agent::StateAction’
In file included from /home/dean/analytic-engine-rl/src/app.cpp:11:0:
/home/dean/analytic-engine-rl/include/app.h:40:77: error: template argument 2 is invalid
const multimap<rl::FLOAT, rl::StateAction<STATE, ACTION>> &rewardM
^
/home/dean/analytic-engine-rl/include/app.h:40:77: error: template argument 4 is invalid
/home/dean/analytic-engine-rl/include/app.h:40:48: error: ‘StateAction’ is not a member of ‘rl’
const multimap<rl::FLOAT, rl::StateAction<STATE, ACTION>>
^
/home/dean/analytic-engine-rl/include/app.h:40:48: note: suggested alternatives:
In file included from /usr/local/include/rl_bits/algorithm/DynaQ.h:25:0,
from /usr/local/include/rl:21,
from /home/dean/analytic-engine-rl/src/app.cpp:9:
/usr/local/include/rl_bits/agent/StateAction.h:35:7: note: ‘rl::agent::StateAction’
class StateAction {
^
/usr/local/include/rl_bits/agent/StateAction.h:35:7: note: ‘rl::agent::StateAction’
In file included from /home/dean/analytic-engine-rl/src/app.cpp:11:0:
/home/dean/analytic-engine-rl/include/app.h:40:48: error: ‘StateAction’ is not a member of ‘rl’
const multimap<rl::FLOAT, rl::StateAction<STATE, ACTION>>
^
/home/dean/analytic-engine-rl/include/app.h:40:48: note: suggested alternatives:
In file included from /usr/local/include/rl_bits/algorithm/DynaQ.h:25:0,
from /usr/local/include/rl:21,
from /home/dean/analytic-engine-rl/src/app.cpp:9:
/usr/local/include/rl_bits/agent/StateAction.h:35:7: note: ‘rl::agent::StateAction’
class StateAction {
^
/usr/local/include/rl_bits/agent/StateAction.h:35:7: note: ‘rl::agent::StateAction’
In file included from /home/dean/analytic-engine-rl/src/app.cpp:11:0:
/home/dean/analytic-engine-rl/include/app.h:40:77: error: template argument 2 is invalid
const multimap<rl::FLOAT, rl::StateAction<STATE, ACTION>> &rewardM
^
/home/dean/analytic-engine-rl/include/app.h:40:77: error: template argument 4 is invalid
/home/dean/analytic-engine-rl/include/app.h:40:48: error: ‘StateAction’ is not a member of ‘rl’
const multimap<rl::FLOAT, rl::StateAction<STATE, ACTION>>
^
/home/dean/analytic-engine-rl/include/app.h:40:48: note: suggested alternatives:
In file included from /usr/local/include/rl_bits/algorithm/DynaQ.h:25:0,
from /usr/local/include/rl:21,
from /home/dean/analytic-engine-rl/src/app.cpp:9:
/usr/local/include/rl_bits/agent/StateAction.h:35:7: note: ‘rl::agent::StateAction’
class StateAction {
^
/usr/local/include/rl_bits/agent/StateAction.h:35:7: note: ‘rl::agent::StateAction’
In file included from /home/dean/analytic-engine-rl/src/app.cpp:11:0:
/home/dean/analytic-engine-rl/include/app.h:40:48: error: ‘StateAction’ is not a member of ‘rl’
const multimap<rl::FLOAT, rl::StateAction<STATE, ACTION>>
^
/home/dean/analytic-engine-rl/include/app.h:40:48: note: suggested alternatives:
In file included from /usr/local/include/rl_bits/algorithm/DynaQ.h:25:0,
from /usr/local/include/rl:21,
from /home/dean/analytic-engine-rl/src/app.cpp:9:
/usr/local/include/rl_bits/agent/StateAction.h:35:7: note: ‘rl::agent::StateAction’
class StateAction {
^
/usr/local/include/rl_bits/agent/StateAction.h:35:7: note: ‘rl::agent::StateAction’
In file included from /home/dean/analytic-engine-rl/src/app.cpp:11:0:
/home/dean/analytic-engine-rl/include/app.h:40:77: error: template argument 2 is invalid
const multimap<rl::FLOAT, rl::StateAction<STATE, ACTION>> &rewardM
^
/home/dean/analytic-engine-rl/include/app.h:40:77: error: template argument 4 is invalid
/home/dean/analytic-engine-rl/include/app.h:40:48: error: ‘StateAction’ is not a member of ‘rl’
const multimap<rl::FLOAT, rl::StateAction<STATE, ACTION>>
^
/home/dean/analytic-engine-rl/include/app.h:40:48: note: suggested alternatives:
In file included from /usr/local/include/rl_bits/algorithm/DynaQ.h:25:0,
from /usr/local/include/rl:21,
from /home/dean/analytic-engine-rl/src/app.cpp:9:
/usr/local/include/rl_bits/agent/StateAction.h:35:7: note: ‘rl::agent::StateAction’
class StateAction {
^
/usr/local/include/rl_bits/agent/StateAction.h:35:7: note: ‘rl::agent::StateAction’
In file included from /home/dean/analytic-engine-rl/src/app.cpp:11:0:
/home/dean/analytic-engine-rl/include/app.h:40:48: error: ‘StateAction’ is not a member of ‘rl’
const multimap<rl::FLOAT, rl::StateAction<STATE, ACTION>>
^
/home/dean/analytic-engine-rl/include/app.h:40:48: note: suggested alternatives:
In file included from /usr/local/include/rl_bits/algorithm/DynaQ.h:25:0,
from /usr/local/include/rl:21,
from /home/dean/analytic-engine-rl/src/app.cpp:9:
/usr/local/include/rl_bits/agent/StateAction.h:35:7: note: ‘rl::agent::StateAction’
class StateAction {
^
/usr/local/include/rl_bits/agent/StateAction.h:35:7: note: ‘rl::agent::StateAction’
In file included from /home/dean/analytic-engine-rl/src/app.cpp:11:0:
/home/dean/analytic-engine-rl/include/app.h:40:77: error: template argument 2 is invalid
const multimap<rl::FLOAT, rl::StateAction<STATE, ACTION>> &rewardM
^
/home/dean/analytic-engine-rl/include/app.h:40:77: error: template argument 4 is invalid
/home/dean/analytic-engine-rl/include/app.h:40:48: error: ‘StateAction’ is not a member of ‘rl’
const multimap<rl::FLOAT, rl::StateAction<STATE, ACTION>>
^
/home/dean/analytic-engine-rl/include/app.h:40:48: note: suggested alternatives:
In file included from /usr/local/include/rl_bits/algorithm/DynaQ.h:25:0,
from /usr/local/include/rl:21,
from /home/dean/analytic-engine-rl/src/app.cpp:9:
/usr/local/include/rl_bits/agent/StateAction.h:35:7: note: ‘rl::agent::StateAction’
class StateAction {
^
/usr/local/include/rl_bits/agent/StateAction.h:35:7: note: ‘rl::agent::StateAction’
In file included from /home/dean/analytic-engine-rl/src/app.cpp:11:0:
/home/dean/analytic-engine-rl/include/app.h:40:48: error: ‘StateAction’ is not a member of ‘rl’
const multimap<rl::FLOAT, rl::StateAction<STATE, ACTION>>
^
/home/dean/analytic-engine-rl/include/app.h:40:48: note: suggested alternatives:
In file included from /usr/local/include/rl_bits/algorithm/DynaQ.h:25:0,
from /usr/local/include/rl:21,
from /home/dean/analytic-engine-rl/src/app.cpp:9:
/usr/local/include/rl_bits/agent/StateAction.h:35:7: note: ‘rl::agent::StateAction’
class StateAction {
^
/usr/local/include/rl_bits/agent/StateAction.h:35:7: note: ‘rl::agent::StateAction’
In file included from /home/dean/analytic-engine-rl/src/app.cpp:11:0:
/home/dean/analytic-engine-rl/include/app.h:40:77: error: template argument 2 is invalid
const multimap<rl::FLOAT, rl::StateAction<STATE, ACTION>> &rewardM
^
/home/dean/analytic-engine-rl/include/app.h:40:77: error: template argument 4 is invalid
/home/dean/analytic-engine-rl/include/app.h:40:28: error: invalid use of template-name ‘std::multimap’ without an argument list
const multimap<rl::FLOAT, rl::StateAction<STATE, ACTION>>
^
/home/dean/analytic-engine-rl/include/app.h:40:36: error: expected ‘,’ or ‘...’ before ‘<’ token
const multimap<rl::FLOAT, rl::StateAction<STATE, ACTION>>
^
In file included from /home/dean/analytic-engine-rl/src/app.cpp:14:0:
/home/dean/analytic-engine-rl/include/metric.h: In static member function ‘static std::vector<std::shared_ptr<PlotPattern
@deanbittner I'll address this later. I currently have final today and tommorow.
ya ... no problem about timing ... it seems I can't build/ install rl ... good luck with the final!
rl builds now, not analytics-engine-rl isn't building ...
dean@STB-SIM2:~/analytic-engine-rl/build$ cmake ..
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Generated global header file
-- Configuring done
-- Generating done
-- Build files have been written to: /home/dean/analytic-engine-rl/build
dean@STB-SIM2:~/analytic-engine-rl/build$ make
Scanning dependencies of target analyticenginerl
[ 20%] Building CXX object src/CMakeFiles/analyticenginerl.dir/app.cpp.o
In file included from /usr/local/include/rl_bits/algorithm/gradient-descent/ReinforcementLearningGDFactory.h:23:0,
from /usr/local/include/rl:28,
from /home/dean/analytic-engine-rl/src/app.cpp:9:
/usr/local/include/rl_bits/algorithm/gradient-descent/ReinforcementLearningGD.h: In constructor ‘rl::algorithm::ReinforcementLearningGD<D, NUM_TILINGS, STATE_DIM>::ReinforcementLearningGD(rl::coding::spTileCode<D, NUM_TILINGS>&, rl::FLOAT, rl::FLOAT, rl::FLOAT, const typename rl::algorithm::ReinforcementLearningGDAbstract<D, NUM_TILINGS, STATE_DIM>::spPolicy&)’:
/usr/local/include/rl_bits/algorithm/gradient-descent/ReinforcementLearningGD.h:65:57: error: expected primary-expression before ‘(’ token
spGradientDescentAbstract<D, NUM_TILINGS, STATE_DIM>(
^
/usr/local/include/rl_bits/algorithm/gradient-descent/ReinforcementLearningGD.h:66:11: error: ‘GradientDescent’ does not name a type
new GradientDescent<D, NUM_TILINGS, STATE_DIM>(
^
In file included from /home/dean/analytic-engine-rl/src/app.cpp:11:0:
/home/dean/analytic-engine-rl/include/app.h: At global scope:
/home/dean/analytic-engine-rl/include/app.h:29:16: error: ‘rl::AgentSupervised’ has not been declared
rl::AgentSupervised<rl::floatVector, rl::floatVector> &agent,
^
/home/dean/analytic-engine-rl/include/app.h:29:31: error: expected ‘,’ or ‘...’ before ‘<’ token
rl::AgentSupervised<rl::floatVector, rl::floatVector> &agent,
^
/home/dean/analytic-engine-rl/include/app.h:40:48: error: ‘StateAction’ is not a member of ‘rl’
const multimap<rl::FLOAT, rl::StateAction<STATE, ACTION>> &rewardMultimap);
^
/home/dean/analytic-engine-rl/include/app.h:40:48: note: suggested alternatives:
In file included from /usr/local/include/rl_bits/algorithm/DynaQ.h:25:0,
from /usr/local/include/rl:21,
from /home/dean/analytic-engine-rl/src/app.cpp:9:
/usr/local/include/rl_bits/agent/StateAction.h:35:7: note: ‘rl::agent::StateAction’
class StateAction {
^
/usr/local/include/rl_bits/agent/StateAction.h:35:7: note: ‘rl::agent::StateAction’
In file included from /home/dean/analytic-engine-rl/src/app.cpp:11:0:
/home/dean/analytic-engine-rl/include/app.h:40:48: error: ‘StateAction’ is not a member of ‘rl’
const multimap<rl::FLOAT, rl::StateAction<STATE, ACTION>> &rewardMultimap);
^
/home/dean/analytic-engine-rl/include/app.h:40:48: note: suggested alternatives:
In file included from /usr/local/include/rl_bits/algorithm/DynaQ.h:25:0,
from /usr/local/include/rl:21,
from /home/dean/analytic-engine-rl/src/app.cpp:9:
/usr/local/include/rl_bits/agent/StateAction.h:35:7: note: ‘rl::agent::StateAction’
class StateAction {
^
/usr/local/include/rl_bits/agent/StateAction.h:35:7: note: ‘rl::agent::StateAction’
In file included from /home/dean/analytic-engine-rl/src/app.cpp:11:0:
/home/dean/analytic-engine-rl/include/app.h:40:71: error: template argument 2 is invalid
const multimap<rl::FLOAT, rl::StateAction<STATE, ACTION>> &rewardMultimap);
^
/home/dean/analytic-engine-rl/include/app.h:40:71: error: template argument 4 is invalid
/home/dean/analytic-engine-rl/include/app.h:40:48: error: ‘StateAction’ is not a member of ‘rl’
const multimap<rl::FLOAT, rl::StateAction<STATE, ACTION>> &rewardMultimap);
^
/home/dean/analytic-engine-rl/include/app.h:40:48: note: suggested alternatives:
In file included from /usr/local/include/rl_bits/algorithm/DynaQ.h:25:0,
from /usr/local/include/rl:21,
from /home/dean/analytic-engine-rl/src/app.cpp:9:
/usr/local/include/rl_bits/agent/StateAction.h:35:7: note: ‘rl::agent::StateAction’
class StateAction {
^
/usr/local/include/rl_bits/agent/StateAction.h:35:7: note: ‘rl::agent::StateAction’
In file included from /home/dean/analytic-engine-rl/src/app.cpp:11:0:
/home/dean/analytic-engine-rl/include/app.h:40:48: error: ‘StateAction’ is not a member of ‘rl’
const multimap<rl::FLOAT, rl::StateAction<STATE, ACTION>> &rewardMultimap);
^
/home/dean/analytic-engine-rl/include/app.h:40:48: note: suggested alternatives:
In file included from /usr/local/include/rl_bits/algorithm/DynaQ.h:25:0,
from /usr/local/include/rl:21,
from /home/dean/analytic-engine-rl/src/app.cpp:9:
/usr/local/include/rl_bits/agent/StateAction.h:35:7: note: ‘rl::agent::StateAction’
class StateAction {
^
/usr/local/include/rl_bits/agent/StateAction.h:35:7: note: ‘rl::agent::StateAction’
In file included from /home/dean/analytic-engine-rl/src/app.cpp:11:0:
/home/dean/analytic-engine-rl/include/app.h:40:77: error: template argument 2 is invalid
const multimap<rl::FLOAT, rl::StateAction<STATE, ACTION>> &rewardMultimap);
^
/home/dean/analytic-engine-rl/include/app.h:40:77: error: template argument 4 is invalid
/home/dean/analytic-engine-rl/include/app.h:40:48: error: ‘StateAction’ is not a member of ‘rl’
const multimap<rl::FLOAT, rl::StateAction<STATE, ACTION>> &rewardMultimap);
^
/home/dean/analytic-engine-rl/include/app.h:40:48: note: suggested alternatives:
In file included from /usr/local/include/rl_bits/algorithm/DynaQ.h:25:0,
from /usr/local/include/rl:21,
from /home/dean/analytic-engine-rl/src/app.cpp:9:
/usr/local/include/rl_bits/agent/StateAction.h:35:7: note: ‘rl::agent::StateAction’
class StateAction {
^
/usr/local/include/rl_bits/agent/StateAction.h:35:7: note: ‘rl::agent::StateAction’
In file included from /home/dean/analytic-engine-rl/src/app.cpp:11:0:
/home/dean/analytic-engine-rl/include/app.h:40:48: error: ‘StateAction’ is not a member of ‘rl’
const multimap<rl::FLOAT, rl::StateAction<STATE, ACTION>> &rewardMultimap);
^
/home/dean/analytic-engine-rl/include/app.h:40:48: note: suggested alternatives:
In file included from /usr/local/include/rl_bits/algorithm/DynaQ.h:25:0,
from /usr/local/include/rl:21,
from /home/dean/analytic-engine-rl/src/app.cpp:9:
/usr/local/include/rl_bits/agent/StateAction.h:35:7: note: ‘rl::agent::StateAction’
class StateAction {
^
/usr/local/include/rl_bits/agent/StateAction.h:35:7: note: ‘rl::agent::StateAction’
In file included from /home/dean/analytic-engine-rl/src/app.cpp:11:0:
/home/dean/analytic-engine-rl/include/app.h:40:77: error: template argument 2 is invalid
const multimap<rl::FLOAT, rl::StateAction<STATE, ACTION>> &rewardMultimap);
^
/home/dean/analytic-engine-rl/include/app.h:40:77: error: template argument 4 is invalid
/home/dean/analytic-engine-rl/include/app.h:40:48: error: ‘StateAction’ is not a member of ‘rl’
const multimap<rl::FLOAT, rl::StateAction<STATE, ACTION>> &rewardMultimap);
^
/home/dean/analytic-engine-rl/include/app.h:40:48: note: suggested alternatives:
In file included from /usr/local/include/rl_bits/algorithm/DynaQ.h:25:0,
from /usr/local/include/rl:21,
from /home/dean/analytic-engine-rl/src/app.cpp:9:
/usr/local/include/rl_bits/agent/StateAction.h:35:7: note: ‘rl::agent::StateAction’
class StateAction {
^
/usr/local/include/rl_bits/agent/StateAction.h:35:7: note: ‘rl::agent::StateAction’
In file included from /home/dean/analytic-engine-rl/src/app.cpp:11:0:
/home/dean/analytic-engine-rl/include/app.h:40:48: error: ‘StateAction’ is not a member of ‘rl’
const multimap<rl::FLOAT, rl::StateAction<STATE, ACTION>> &rewardMultimap);
^
/home/dean/analytic-engine-rl/include/app.h:40:48: note: suggested alternatives:
In file included from /usr/local/include/rl_bits/algorithm/DynaQ.h:25:0,
from /usr/local/include/rl:21,
from /home/dean/analytic-engine-rl/src/app.cpp:9:
/usr/local/include/rl_bits/agent/StateAction.h:35:7: note: ‘rl::agent::StateAction’
class StateAction {
^
/usr/local/include/rl_bits/agent/StateAction.h:35:7: note: ‘rl::agent::StateAction’
In file included from /home/dean/analytic-engine-rl/src/app.cpp:11:0:
/home/dean/analytic-engine-rl/include/app.h:40:77: error: template argument 2 is invalid
const multimap<rl::FLOAT, rl::StateAction<STATE, ACTION>> &rewardMultimap);
^
/home/dean/analytic-engine-rl/include/app.h:40:77: error: template argument 4 is invalid
/home/dean/analytic-engine-rl/include/app.h:40:48: error: ‘StateAction’ is not a member of ‘rl’
const multimap<rl::FLOAT, rl::StateAction<STATE, ACTION>> &rewardMultimap);
^
/home/dean/analytic-engine-rl/include/app.h:40:48: note: suggested alternatives:
In file included from /usr/local/include/rl_bits/algorithm/DynaQ.h:25:0,
from /usr/local/include/rl:21,
from /home/dean/analytic-engine-rl/src/app.cpp:9:
/usr/local/include/rl_bits/agent/StateAction.h:35:7: note: ‘rl::agent::StateAction’
class StateAction {
^
/usr/local/include/rl_bits/agent/StateAction.h:35:7: note: ‘rl::agent::StateAction’
In file included from /home/dean/analytic-engine-rl/src/app.cpp:11:0:
/home/dean/analytic-engine-rl/include/app.h:40:48: error: ‘StateAction’ is not a member of ‘rl’
const multimap<rl::FLOAT, rl::StateAction<STATE, ACTION>> &rewardMultimap);
^
/home/dean/analytic-engine-rl/include/app.h:40:48: note: suggested alternatives:
In file included from /usr/local/include/rl_bits/algorithm/DynaQ.h:25:0,
from /usr/local/include/rl:21,
from /home/dean/analytic-engine-rl/src/app.cpp:9:
/usr/local/include/rl_bits/agent/StateAction.h:35:7: note: ‘rl::agent::StateAction’
class StateAction {
^
/usr/local/include/rl_bits/agent/StateAction.h:35:7: note: ‘rl::agent::StateAction’
In file included from /home/dean/analytic-engine-rl/src/app.cpp:11:0:
/home/dean/analytic-engine-rl/include/app.h:40:77: error: template argument 2 is invalid
const multimap<rl::FLOAT, rl::StateAction<STATE, ACTION>> &rewardMultimap);
^
/home/dean/analytic-engine-rl/include/app.h:40:77: error: template argument 4 is invalid
/home/dean/analytic-engine-rl/include/app.h:40:48: error: ‘StateAction’ is not a member of ‘rl’
const multimap<rl::FLOAT, rl::StateAction<STATE, ACTION>> &rewardMultimap);
^
/home/dean/analytic-engine-rl/include/app.h:40:48: note: suggested alternatives:
In file included from /usr/local/include/rl_bits/algorithm/DynaQ.h:25:0,
from /usr/local/include/rl:21,
from /home/dean/analytic-engine-rl/src/app.cpp:9:
/usr/local/include/rl_bits/agent/StateAction.h:35:7: note: ‘rl::agent::StateAction’
class StateAction {
^
/usr/local/include/rl_bits/agent/StateAction.h:35:7: note: ‘rl::agent::StateAction’
In file included from /home/dean/analytic-engine-rl/src/app.cpp:11:0:
/home/dean/analytic-engine-rl/include/app.h:40:48: error: ‘StateAction’ is not a member of ‘rl’
const multimap<rl::FLOAT, rl::StateAction<STATE, ACTION>> &rewardMultimap);
^
/home/dean/analytic-engine-rl/include/app.h:40:48: note: suggested alternatives:
In file included from /usr/local/include/rl_bits/algorithm/DynaQ.h:25:0,
from /usr/local/include/rl:21,
from /home/dean/analytic-engine-rl/src/app.cpp:9:
/usr/local/include/rl_bits/agent/StateAction.h:35:7: note: ‘rl::agent::StateAction’
class StateAction {
^
/usr/local/include/rl_bits/agent/StateAction.h:35:7: note: ‘rl::agent::StateAction’
In file included from /home/dean/analytic-engine-rl/src/app.cpp:11:0:
/home/dean/analytic-engine-rl/include/app.h:40:77: error: template argument 2 is invalid
const multimap<rl::FLOAT, rl::StateAction<STATE, ACTION>> &rewardMultimap);
^
/home/dean/analytic-engine-rl/include/app.h:40:77: error: template argument 4 is invalid
/home/dean/analytic-engine-rl/include/app.h:40:48: error: ‘StateAction’ is not a member of ‘rl’
const multimap<rl::FLOAT, rl::StateAction<STATE, ACTION>> &rewardMultimap);
^
/home/dean/analytic-engine-rl/include/app.h:40:48: note: suggested alternatives:
In file included from /usr/local/include/rl_bits/algorithm/DynaQ.h:25:0,
from /usr/local/include/rl:21,
from /home/dean/analytic-engine-rl/src/app.cpp:9:
/usr/local/include/rl_bits/agent/StateAction.h:35:7: note: ‘rl::agent::StateAction’
class StateAction {
^
/usr/local/include/rl_bits/agent/StateAction.h:35:7: note: ‘rl::agent::StateAction’
In file included from /home/dean/analytic-engine-rl/src/app.cpp:11:0:
/home/dean/analytic-engine-rl/include/app.h:40:48: error: ‘StateAction’ is not a member of ‘rl’
const multimap<rl::FLOAT, rl::StateAction<STATE, ACTION>> &rewardMultimap);
^
/home/dean/analytic-engine-rl/include/app.h:40:48: note: suggested alternatives:
In file included from /usr/local/include/rl_bits/algorithm/DynaQ.h:25:0,
from /usr/local/include/rl:21,
from /home/dean/analytic-engine-rl/src/app.cpp:9:
/usr/local/include/rl_bits/agent/StateAction.h:35:7: note: ‘rl::agent::StateAction’
class StateAction {
^
/usr/local/include/rl_bits/agent/StateAction.h:35:7: note: ‘rl::agent::StateAction’
In file included from /home/dean/analytic-engine-rl/src/app.cpp:11:0:
/home/dean/analytic-engine-rl/include/app.h:40:77: error: template argument 2 is invalid
const multimap<rl::FLOAT, rl::StateAction<STATE, ACTION>> &rewardMultimap);
^
/home/dean/analytic-engine-rl/include/app.h:40:77: error: template argument 4 is invalid
/home/dean/analytic-engine-rl/include/app.h:40:48: error: ‘StateAction’ is not a member of ‘rl’
const multimap<rl::FLOAT, rl::StateAction<STATE, ACTION>> &rewardMultimap);
^
/home/dean/analytic-engine-rl/include/app.h:40:48: note: suggested alternatives:
In file included from /usr/local/include/rl_bits/algorithm/DynaQ.h:25:0,
from /usr/local/include/rl:21,
from /home/dean/analytic-engine-rl/src/app.cpp:9:
/usr/local/include/rl_bits/agent/StateAction.h:35:7: note: ‘rl::agent::StateAction’
class StateAction {
^
/usr/local/include/rl_bits/agent/StateAction.h:35:7: note: ‘rl::agent::StateAction’
In file included from /home/dean/analytic-engine-rl/src/app.cpp:11:0:
/home/dean/analytic-engine-rl/include/app.h:40:48: error: ‘StateAction’ is not a member of ‘rl’
const multimap<rl::FLOAT, rl::StateAction<STATE, ACTION>> &rewardMultimap);
^
/home/dean/analytic-engine-rl/include/app.h:40:48: note: suggested alternatives:
In file included from /usr/local/include/rl_bits/algorithm/DynaQ.h:25:0,
from /usr/local/include/rl:21,
from /home/dean/analytic-engine-rl/src/app.cpp:9:
/usr/local/include/rl_bits/agent/StateAction.h:35:7: note: ‘rl::agent::StateAction’
class StateAction {
^
/usr/local/include/rl_bits/agent/StateAction.h:35:7: note: ‘rl::agent::StateAction’
In file included from /home/dean/analytic-engine-rl/src/app.cpp:11:0:
/home/dean/analytic-engine-rl/include/app.h:40:77: error: template argument 2 is invalid
const multimap<rl::FLOAT, rl::StateAction<STATE, ACTION>> &rewardMultimap);
^
/home/dean/analytic-engine-rl/include/app.h:40:77: error: template argument 4 is invalid
/home/dean/analytic-engine-rl/include/app.h:40:48: error: ‘StateAction’ is not a member of ‘rl’
const multimap<rl::FLOAT, rl::StateAction<STATE, ACTION>> &rewardMultimap);
^
/home/dean/analytic-engine-rl/include/app.h:40:48: note: suggested alternatives:
In file included from /usr/local/include/rl_bits/algorithm/DynaQ.h:25:0,
from /usr/local/include/rl:21,
from /home/dean/analytic-engine-rl/src/app.cpp:9:
/usr/local/include/rl_bits/agent/StateAction.h:35:7: note: ‘rl::agent::StateAction’
class StateAction {
^
/usr/local/include/rl_bits/agent/StateAction.h:35:7: note: ‘rl::agent::StateAction’
In file included from /home/dean/analytic-engine-rl/src/app.cpp:11:0:
/home/dean/analytic-engine-rl/include/app.h:40:48: error: ‘StateAction’ is not a member of ‘rl’
const multimap<rl::FLOAT, rl::StateAction<STATE, ACTION>> &rewardMultimap);
^
/home/dean/analytic-engine-rl/include/app.h:40:48: note: suggested alternatives:
In file included from /usr/local/include/rl_bits/algorithm/DynaQ.h:25:0,
from /usr/local/include/rl:21,
from /home/dean/analytic-engine-rl/src/app.cpp:9:
/usr/local/include/rl_bits/agent/StateAction.h:35:7: note: ‘rl::agent::StateAction’
class StateAction {
^
/usr/local/include/rl_bits/agent/StateAction.h:35:7: note: ‘rl::agent::StateAction’
In file included from /home/dean/analytic-engine-rl/src/app.cpp:11:0:
/home/dean/analytic-engine-rl/include/app.h:40:77: error: template argument 2 is invalid
const multimap<rl::FLOAT, rl::StateAction<STATE, ACTION>> &rewardMultimap);
^
/home/dean/analytic-engine-rl/include/app.h:40:77: error: template argument 4 is invalid
/home/dean/analytic-engine-rl/include/app.h:40:28: error: invalid use of template-name ‘std::multimap’ without an argument list
const multimap<rl::FLOAT, rl::StateAction<STATE, ACTION>> &rewardMultimap);
^
/home/dean/analytic-engine-rl/include/app.h:40:36: error: expected ‘,’ or ‘...’ before ‘<’ token
const multimap<rl::FLOAT, rl::StateAction<STATE, ACTION>> &rewardMultimap);
^
In file included from /home/dean/analytic-engine-rl/src/app.cpp:14:0:
/home/dean/analytic-engine-rl/include/metric.h: In static member function ‘static std::vector<std::shared_ptr<PlotPattern
Just a quick peek. I think my link for rl is still wrong. It should be beta.4 not beta 3. Sorry about that, it is still under heavy development. I'll fix the links later. So try building beta.4 instead of 3.
Thanks! So far so good … got a /home/dean/analytic-engine-rl/build/analytic-engine-rl-cli
On Dec 12, 2016, at 11:30 AM, Joey Andres notifications@github.com wrote:
Just a quick peek. I think my link for rl is still wrong. It should be beta.4 https://github.com/JoeyAndres/rl/releases/tag/v2.0.1-beta.4 not beta 3. Sorry about that, it is still under heavy development. I'll fix the links later. So try building beta.4 instead of 3.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/CMPUT401Group/analytic-engine/issues/3#issuecomment-266511329, or mute the thread https://github.com/notifications/unsubscribe-auth/AK7laRowIQxPp4bTV_ub8s4PfMD9ta_0ks5rHZLMgaJpZM4LKwa5.
Ok, rebuilt everything against beta.4, and now still have this problem, but failing differently as below (Goal pattern was not found in the given metrics).
dean@STB-SIM2:~/analytic-engine$ ./test3.sh GraphiteAdapter.renderAllMetrics: 1 in 11 GraphiteAdapter.renderAllMetrics: 2 in 11 GraphiteAdapter.renderAllMetrics: 3 in 11 GraphiteAdapter.renderAllMetrics: 4 in 11 GraphiteAdapter.renderAllMetrics: 5 in 11 GraphiteAdapter.renderAllMetrics: 6 in 11 GraphiteAdapter.renderAllMetrics: 7 in 11 GraphiteAdapter.renderAllMetrics: 8 in 11 GraphiteAdapter.renderAllMetrics: 9 in 11 GraphiteAdapter.renderAllMetrics: 10 in 11 GraphiteAdapter.renderAllMetrics: 11 in 11 Min metric time: 1481504400 Max metric time: 1481508600 Metric time duration (max metric time - min metric time): 70min Min pattern time: 1481486400 Max pattern time: 1481490900 Goal pattern duration (Max pattern time - Min pattern time): 4500 Metric count with invalid resolution: 142581 Valid metrics: 0 Goal Pattern was not found in the given metrics. fs.js:549 return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode); ^
Error: ENOENT: no such file or directory, open '/home/dean/temp-result.json'
at Error (native)
at Object.fs.openSync (fs.js:549:18)
at Object.fs.readFileSync (fs.js:397:15)
at RLAdapter.train (/home/dean/analytic-engine/dist/rl-adapater.js:77:38)
at /home/dean/analytic-engine/dist/cli.js:325:45
at Object.
I get the same error when attempting to use prepared test-metrics.json in analytics-engine-rl test command line from the README.md.
Seems like a timestamp issue. Is this data from our test server, the one you provided?
On Mon, Dec 12, 2016, 3:55 PM deanbittner notifications@github.com wrote:
Ok, rebuilt everything against beta.4, and now still have this problem, but failing differently as below (Goal pattern was not found in the given metrics).
dean@STB-SIM2:~/analytic-engine$ ./test3.sh
GraphiteAdapter.renderAllMetrics: 1 in 11 GraphiteAdapter.renderAllMetrics: 2 in 11 GraphiteAdapter.renderAllMetrics: 3 in 11 GraphiteAdapter.renderAllMetrics: 4 in 11 GraphiteAdapter.renderAllMetrics: 5 in 11 GraphiteAdapter.renderAllMetrics: 6 in 11 GraphiteAdapter.renderAllMetrics: 7 in 11 GraphiteAdapter.renderAllMetrics: 8 in 11 GraphiteAdapter.renderAllMetrics: 9 in 11 GraphiteAdapter.renderAllMetrics: 10 in 11 GraphiteAdapter.renderAllMetrics: 11 in 11
Min metric time: 1481504400 Max metric time: 1481508600 Metric time duration (max metric time - min metric time): 70min Min pattern time: 1481486400 Max pattern time: 1481490900 Goal pattern duration (Max pattern time - Min pattern time): 4500 Metric count with invalid resolution: 142581 Valid metrics: 0 Goal Pattern was not found in the given metrics.
fs.js:549 return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode); ^
Error: ENOENT: no such file or directory, open '/home/dean/temp-result.json'
at Error (native) at Object.fs.openSync (fs.js:549:18) at Object.fs.readFileSync (fs.js:397:15) at RLAdapter.train (/home/dean/analytic-engine/dist/rl-adapater.js:77:38) at /home/dean/analytic-engine/dist/cli.js:325:45 at Object. (/home/dean/analytic-engine/dist/cli.js:353:4) at Module._compile (module.js:409:26) at Object.Module._extensions..js (module.js:416:10) at Module.load (module.js:343:32) at Function.Module._load (module.js:300:12)
dean@STB-SIM2:~/analytic-engine$ emacs config/default.json
— You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/CMPUT401Group/analytic-engine/issues/3#issuecomment-266580075, or mute the thread https://github.com/notifications/unsubscribe-auth/AD1x6HjXK1fz5fXt-cGHAPCpRWKwFKroks5rHdDzgaJpZM4LKwa5 .
Provide my the begin and end time and I'll debug this. Most difficult final is over.
On Mon, Dec 12, 2016, 4:02 PM Joey Andres yeojserdna@gmail.com wrote:
Seems like a timestamp issue. Is this data from our test server, the one you provided?
On Mon, Dec 12, 2016, 3:55 PM deanbittner notifications@github.com wrote:
Ok, rebuilt everything against beta.4, and now still have this problem, but failing differently as below (Goal pattern was not found in the given metrics).
dean@STB-SIM2:~/analytic-engine$ ./test3.sh
GraphiteAdapter.renderAllMetrics: 1 in 11 GraphiteAdapter.renderAllMetrics: 2 in 11 GraphiteAdapter.renderAllMetrics: 3 in 11 GraphiteAdapter.renderAllMetrics: 4 in 11 GraphiteAdapter.renderAllMetrics: 5 in 11 GraphiteAdapter.renderAllMetrics: 6 in 11 GraphiteAdapter.renderAllMetrics: 7 in 11 GraphiteAdapter.renderAllMetrics: 8 in 11 GraphiteAdapter.renderAllMetrics: 9 in 11 GraphiteAdapter.renderAllMetrics: 10 in 11 GraphiteAdapter.renderAllMetrics: 11 in 11
Min metric time: 1481504400 Max metric time: 1481508600 Metric time duration (max metric time - min metric time): 70min Min pattern time: 1481486400 Max pattern time: 1481490900 Goal pattern duration (Max pattern time - Min pattern time): 4500 Metric count with invalid resolution: 142581 Valid metrics: 0 Goal Pattern was not found in the given metrics.
fs.js:549 return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode); ^
Error: ENOENT: no such file or directory, open '/home/dean/temp-result.json'
at Error (native) at Object.fs.openSync (fs.js:549:18) at Object.fs.readFileSync (fs.js:397:15) at RLAdapter.train (/home/dean/analytic-engine/dist/rl-adapater.js:77:38) at /home/dean/analytic-engine/dist/cli.js:325:45 at Object. (/home/dean/analytic-engine/dist/cli.js:353:4) at Module._compile (module.js:409:26) at Object.Module._extensions..js (module.js:416:10) at Module.load (module.js:343:32) at Function.Module._load (module.js:300:12)
dean@STB-SIM2:~/analytic-engine$ emacs config/default.json
— You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/CMPUT401Group/analytic-engine/issues/3#issuecomment-266580075, or mute the thread https://github.com/notifications/unsubscribe-auth/AD1x6HjXK1fz5fXt-cGHAPCpRWKwFKroks5rHdDzgaJpZM4LKwa5 .
Hmmm … I am picking a current date and time from the live server, from yesterday.
Alternatively, I can pick a date/time that you know works? If you give me the date and time, I’ll give it a try. That data should be the same?
On Dec 12, 2016, at 4:04 PM, Joey Andres notifications@github.com wrote:
Provide my the begin and end time and I'll debug this. Most difficult final is over.
On Mon, Dec 12, 2016, 4:02 PM Joey Andres yeojserdna@gmail.com wrote:
Seems like a timestamp issue. Is this data from our test server, the one you provided?
On Mon, Dec 12, 2016, 3:55 PM deanbittner notifications@github.com wrote:
Ok, rebuilt everything against beta.4, and now still have this problem, but failing differently as below (Goal pattern was not found in the given metrics).
dean@STB-SIM2:~/analytic-engine$ ./test3.sh
GraphiteAdapter.renderAllMetrics: 1 in 11 GraphiteAdapter.renderAllMetrics: 2 in 11 GraphiteAdapter.renderAllMetrics: 3 in 11 GraphiteAdapter.renderAllMetrics: 4 in 11 GraphiteAdapter.renderAllMetrics: 5 in 11 GraphiteAdapter.renderAllMetrics: 6 in 11 GraphiteAdapter.renderAllMetrics: 7 in 11 GraphiteAdapter.renderAllMetrics: 8 in 11 GraphiteAdapter.renderAllMetrics: 9 in 11 GraphiteAdapter.renderAllMetrics: 10 in 11 GraphiteAdapter.renderAllMetrics: 11 in 11
Min metric time: 1481504400 Max metric time: 1481508600 Metric time duration (max metric time - min metric time): 70min Min pattern time: 1481486400 Max pattern time: 1481490900 Goal pattern duration (Max pattern time - Min pattern time): 4500 Metric count with invalid resolution: 142581 Valid metrics: 0 Goal Pattern was not found in the given metrics.
fs.js:549 return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode); ^
Error: ENOENT: no such file or directory, open '/home/dean/temp-result.json'
at Error (native) at Object.fs.openSync (fs.js:549:18) at Object.fs.readFileSync (fs.js:397:15) at RLAdapter.train (/home/dean/analytic-engine/dist/rl-adapater.js:77:38) at /home/dean/analytic-engine/dist/cli.js:325:45 at Object. (/home/dean/analytic-engine/dist/cli.js:353:4) at Module._compile (module.js:409:26) at Object.Module._extensions..js (module.js:416:10) at Module.load (module.js:343:32) at Function.Module._load (module.js:300:12)
dean@STB-SIM2:~/analytic-engine$ emacs config/default.json
— You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/CMPUT401Group/analytic-engine/issues/3#issuecomment-266580075, or mute the thread https://github.com/notifications/unsubscribe-auth/AD1x6HjXK1fz5fXt-cGHAPCpRWKwFKroks5rHdDzgaJpZM4LKwa5 .
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/CMPUT401Group/analytic-engine/issues/3#issuecomment-266582112, or mute the thread https://github.com/notifications/unsubscribe-auth/AK7lackgofyB_bvm1g1pB8CYYxJcq81uks5rHdMOgaJpZM4LKwa5.
Here's my script --
node --max-old-space-size=4096 ./dist/cli.js entailment_search --goal-metric invidi.webapp.localhost_localdomain.request.total_response_time.mean --goal-metric-time-begin 20:00_20161211 --goal-metric-time-end 20:15_20161211 --time-begin 20:00_20161211 --time-end 20:15_20161211 --iteration-count 10000 --out /home/dean/temp-result.json --dashboard-out /home/dean/dashboard.json
I will try the one from README.md again.
Different again ...
dean@STB-SIM2:~/analytic-engine$ sh -f test.sh GraphiteAdapter.renderAllMetrics: 1 in 11 GraphiteAdapter.renderAllMetrics: 2 in 11 GraphiteAdapter.renderAllMetrics: 3 in 11 GraphiteAdapter.renderAllMetrics: 4 in 11 GraphiteAdapter.renderAllMetrics: 5 in 11 GraphiteAdapter.renderAllMetrics: 6 in 11 GraphiteAdapter.renderAllMetrics: 7 in 11 GraphiteAdapter.renderAllMetrics: 8 in 11 GraphiteAdapter.renderAllMetrics: 9 in 11 GraphiteAdapter.renderAllMetrics: 10 in 11 /home/dean/analytic-engine/node_modules/sync-request/node_modules/http-response-object/index.js:40 throw err; ^
Error: Server responded with status code 504: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
The gateway did not receive a timely response from the upstream server or application.
at Response.getBody (/home/dean/analytic-engine/node_modules/sync-request/node_modules/http-response-object/index.js:34:15)
at RenderAPIAdapter.render (/home/dean/analytic-engine/dist/render-api-adapter.js:64:35)
at /home/dean/analytic-engine/dist/graphite-adapter.js:66:46
at Array.forEach (native)
at GraphiteAdapter.renderAllMetrics (/home/dean/analytic-engine/dist/graphite-adapter.js:65:21)
at RLAdapter.acquireMetrics (/home/dean/analytic-engine/dist/rl-adapater.js:51:23)
at RLAdapter.train (/home/dean/analytic-engine/dist/rl-adapater.js:65:12)
at /home/dean/analytic-engine/dist/cli.js:325:45
at Object.<anonymous> (/home/dean/analytic-engine/dist/cli.js:353:4)
at Module._compile (module.js:409:26)
dean@STB-SIM2:~/analytic-engine$ cat test.sh node ./dist/cli.js entailment_search --goal-metric invidi.webapp.localhost_localdomain.request.total_response_time.mean --goal-metric-time-begin 05:00_20160917 --goal-metric-time-end 12:00_20160917 --time-begin 00:00_20160917 --time-end 23:00_20160917 --iteration-count 10000 --out /tmp/temp-result.json --dashboard-out /tmp/dashboard.json
Looks like a fetch timeout error, maybe because this time period of the query is much longer than the other I did earlier.
@deanbittner It shouldn't be. I even made it fetch 1 week. Behind the scenes, I only fetch data point every couple of minutes (averaged over that time period) so I it is reasonable to manage in ram.
The command you gave me worked well. Yeah, that is weird I never got a 504 retrieving from cybera server. I'm training atm, and I'm sure the dashboard.json will be in /tmp/dashboard.json.
Ok, that's a good tip. I've looked for timeouts in the apache web server and found a few. I will try and make these arbitrarily large and see if it helps.
Ok, I'm back to the error that I've seen before where the target out file (/home/dean/temp-result.json or /tmp/temp-result.json) is not created. I'll paste the full error text after the next run. It goes through GraphiteAdapter.renderAllMetrics: 1 in 1 - 9 quite fast. GraphiteAdapter.renderAllMetrics: 1 in 10 stalls for a long time. I've set the timeout in the web server to an hour. And then, returns a NOENT error when trying to open the non-existent temp-result.json file. I can get the '/tmp/metrics.json' file if that helps.
If you have a working shell script and configuration that might help.
@deanbittner I used the following script with same time ranges posted above:
node ./dist/cli.js entailment_search --goal-metric invidi.webapp.localhost_localdomain.request.total_response_time.mean --goal-metric-time-begin 05:00_20160917 --goal-metric-time-end 12:00_20160917 --time-begin 00:00_20160917 --time-end 23:00_20160917 --iteration-count 10000 --out /tmp/temp-result.json --dashboard-out /tmp/dashboard.json
I'm intrested to see those error. That's because I get the following:
GraphiteAdapter.renderAllMetrics: 1 in 11
GraphiteAdapter.renderAllMetrics: 2 in 11
GraphiteAdapter.renderAllMetrics: 3 in 11
GraphiteAdapter.renderAllMetrics: 4 in 11
GraphiteAdapter.renderAllMetrics: 5 in 11
GraphiteAdapter.renderAllMetrics: 6 in 11
GraphiteAdapter.renderAllMetrics: 7 in 11
GraphiteAdapter.renderAllMetrics: 8 in 11
GraphiteAdapter.renderAllMetrics: 9 in 11
GraphiteAdapter.renderAllMetrics: 10 in 11
GraphiteAdapter.renderAllMetrics: 11 in 11
Min metric time: 1474070400
Max metric time: 1474153200
Metric time duration (max metric time - min metric time): 1380min
Min pattern time: 1474088400
Max pattern time: 1474113600
Goal pattern duration (Max pattern time - Min pattern time): 25200
Metric count with invalid resolution: 0
Valid metrics: 11043
Allocating Memory.
Finished Allocating Memory.
Traning: 0%
Traning: 0.01%
# So on..
As you can see there should be training session goes on.
OK ... here's the error now ... the target file doesn't exist ... /home/dean/temp-result.json
GraphiteAdapter.renderAllMetrics: 11 in 11 Min metric time: 1481504400 Max metric time: 1481506200 Metric time duration (max metric time - min metric time): 30min Min pattern time: 1481486400 Max pattern time: 1481488200 Goal pattern duration (Max pattern time - Min pattern time): 1800 Metric count with invalid resolution: 143239 Valid metrics: 0 Goal Pattern was not found in the given metrics. fs.js:549 return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode); ^
Error: ENOENT: no such file or directory, open '/home/dean/temp-result.json'
at Error (native)
at Object.fs.openSync (fs.js:549:18)
at Object.fs.readFileSync (fs.js:397:15)
at RLAdapter.train (/home/dean/analytic-engine/dist/rl-adapater.js:77:38)
at /home/dean/analytic-engine/dist/cli.js:325:45
at Object.
@deanbittner
Due to the following line: Valid metrics: 0
, Im suspecting that you are retrieving different sets of data. I don't know why that is because our durations are the same. Can you send me the temp-result.json. I'm gonna try to see what's inside. I'm suspecting that even invidi.webapp.localhost_localdomain.request.total_response_time.mean is empty in that file.
I have a /tmp/metric.json file that is almost 16M from your command line. The metric is inside that one (invidi.webapp.localhost_localdomain.request.total_response_time.mean) I checked.
I do not get the tmp/temp-result.json, or in my case, /home/dean/temp-result.json file. There is no file with that name as indicated in the —out.
Trying your command line now.
On Dec 13, 2016, at 3:21 PM, Joey Andres notifications@github.com wrote:
@deanbittner https://github.com/deanbittner Due to the following line: Valid metrics: 0, Im suspecting that you are retrieving different sets of data. I don't know why that is because our durations are the same. Can you send me the temp-result.json. I'm gonna try to see what's inside. I'm suspecting that even invidi.webapp.localhost_localdomain.request.total_response_time.mean is empty in that file.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/CMPUT401Group/analytic-engine/issues/3#issuecomment-266880868, or mute the thread https://github.com/notifications/unsubscribe-auth/AK7laTikuBI5odH9i2UUO-ZhFij_HLoyks5rHxp-gaJpZM4LKwa5.
@deanbittner My /tmp/metric.json for the same time span is : 28M, which really makes me suspect even more that some data points are being dropped somehow.
I think I must have got it in progress. It's 37M which can make sense as you have a 'pruned' metric set and I might expect this one to be bigger.
hmmm ... your command line results as below. There is no /tmp/temp-result.json file, just the /tmp/metric.json and the /tmp/analytic-engine-rl-config.json
dean@STB-SIM2:~/analytic-engine$ node ./dist/cli.js entailment_search --goal-metric invidi.webapp.localhost_localdomain.request.total_response_time.mean --goal-metric-time-begin 05:00_20160917 --goal-metric-time-end 12:00_20160917 --time-begin 00:00_20160917 --time-end 23:00_20160917 --iteration-count 10000 --out /tmp/temp-result.json --dashboard-out /tmp/dashboard.json GraphiteAdapter.renderAllMetrics: 1 in 11 GraphiteAdapter.renderAllMetrics: 2 in 11 GraphiteAdapter.renderAllMetrics: 3 in 11 GraphiteAdapter.renderAllMetrics: 4 in 11 GraphiteAdapter.renderAllMetrics: 5 in 11 GraphiteAdapter.renderAllMetrics: 6 in 11 GraphiteAdapter.renderAllMetrics: 7 in 11 GraphiteAdapter.renderAllMetrics: 8 in 11 GraphiteAdapter.renderAllMetrics: 9 in 11 GraphiteAdapter.renderAllMetrics: 10 in 11 /home/dean/analytic-engine/node_modules/sync-request/index.js:27 throw new Error(res.stderr.toString()); ^
Error: /home/dean/analytic-engine/node_modules/sync-request/node_modules/then-request/node_modules/promise/lib/done.js:10 throw err; ^
Error: toString failed at Buffer.toString (buffer.js:456:11) at stringify (/home/dean/analytic-engine/node_modules/sync-request/lib/json-buffer/index.js:9:42) at stringify (/home/dean/analytic-engine/node_modules/sync-request/lib/json-buffer/index.js:29:37) at Object.stringify (/home/dean/analytic-engine/node_modules/sync-request/lib/json-buffer/index.js:29:37) at respond (/home/dean/analytic-engine/node_modules/sync-request/lib/worker.js:8:29) at request.done.respond.success (/home/dean/analytic-engine/node_modules/sync-request/lib/worker.js:16:5) at tryCallOne (/home/dean/analytic-engine/node_modules/sync-request/node_modules/then-request/node_modules/promise/lib/core.js:37:12) at /home/dean/analytic-engine/node_modules/sync-request/node_modules/then-request/node_modules/promise/lib/core.js:123:15 at flush (/home/dean/analytic-engine/node_modules/sync-request/node_modules/then-request/node_modules/promise/node_modules/asap/raw.js:50:29) at nextTickCallbackWith0Args (node.js:436:9)
at doRequest (/home/dean/analytic-engine/node_modules/sync-request/index.js:27:11)
at RenderAPIAdapter.render (/home/dean/analytic-engine/dist/render-api-adapter.js:63:49)
at /home/dean/analytic-engine/dist/graphite-adapter.js:66:46
at Array.forEach (native)
at GraphiteAdapter.renderAllMetrics (/home/dean/analytic-engine/dist/graphite-adapter.js:65:21)
at RLAdapter.acquireMetrics (/home/dean/analytic-engine/dist/rl-adapater.js:51:23)
at RLAdapter.train (/home/dean/analytic-engine/dist/rl-adapater.js:65:12)
at /home/dean/analytic-engine/dist/cli.js:325:45
at Object.<anonymous> (/home/dean/analytic-engine/dist/cli.js:353:4)
at Module._compile (module.js:409:26)
I copied the generated /tmp/analytic-engine-rl-config.json and the /tmp/metric.json and ran them directly with --
cd analytic-engine-rl/build ./analytic-engine-rl-cli ../test-metric.json ../test-config.json
I get -- terminate called after throwing an instance of 'std::invalid_argument' what(): parse error - unexpected end of input Aborted (core dumped)
I don't know what node is doing here. But that metrics.json is not a json since it never finished. To avoid caching json, I write a stream directly to a file and add a parenthesis to close it off. That never happened 11 in 11 is never executed. Base on the stack trace, the library itself is now failing for some reason.
I've attached my metric.json you should be able to do the training.
I will try yours. Here's mine. my-analytic-engine-rl-run.zip
... has my config too ...
Could I get your config as well?
I get this with your metrics and my config -- dean@STB-SIM2:~/analytic-engine-rl/build$ ./analytic-engine-rl-cli ../../joey_metric.json ../test-config.json Min metric time: 1474070400 Max metric time: 1474153200 Metric time duration (max metric time - min metric time): 1380min Min pattern time: 1481486400 Max pattern time: 1481488200 Goal pattern duration (Max pattern time - Min pattern time): 1800 Metric count with invalid resolution: 11043 Valid metrics: 0 Goal Pattern was not found in the given metrics.
My config:
{"timeBegin":1474070400000,"timeEnd":1474153200000,"goalPattern":{"metric":"invidi.webapp.localhost_localdomain.request.total_response_time.mean","timeBegin":1474088400,"timeEnd":1474113600},"iterationCount":10000,"initialReward":-1000,"reinforcementLearning":{"stepSize":0.1,"discountRate":0.9},"resultFile":"/home/dean/temp-result.json"}
If this works then I would need to revert that node part to make it more robust. The old version is simpler but wayyy slower.
Tell me if it works then I'll create a new branch with reverted piece of code on analytic-engine
I am getting this output so far ...
dean@STB-SIM2:~/analytic-engine-rl/build$ ./analytic-engine-rl-cli ../../joey_metric.json ../../joey_config.json Min metric time: 1474070400 Max metric time: 1474153200 Metric time duration (max metric time - min metric time): 1380min Min pattern time: 1474088400 Max pattern time: 1474113600 Goal pattern duration (Max pattern time - Min pattern time): 25200 Metric count with invalid resolution: 0 Valid metrics: 11043 Allocating Memory. Finished Allocating Memory. Traning: 0% Traning: 0.01% Traning: 0.02% Traning: 0.03% Traning: 0.04% Traning: 0.05% Traning: 0.06% Traning: 0.07% Traning: 0.08% Traning: 0.09% Traning: 0.1% Traning: 0.11% Traning: 0.12% Traning: 0.13% Traning: 0.14%
Did mine work for you?
No. Same error as yours. Im sure this is because GraphiteAdapter.renderAllMetrics: 11 in 11
is never retrieved.
Finished with your config and metrics.
Traning: 99.9% Traning: 99.91% Traning: 99.92% Traning: 99.93% Traning: 99.94% Traning: 99.95% Traning: 99.96% Traning: 99.97% Traning: 99.98% Traning: 99.99% Trained metric count: 11043
Trying to do an entailment run, not reaching conclusion.
Expect to find the default output in /tmp, but can't as below.
Console output follows.
GraphiteAdapter.renderAllMetrics: 1 in 11 GraphiteAdapter.renderAllMetrics: 2 in 11 GraphiteAdapter.renderAllMetrics: 3 in 11 GraphiteAdapter.renderAllMetrics: 4 in 11 GraphiteAdapter.renderAllMetrics: 5 in 11 GraphiteAdapter.renderAllMetrics: 6 in 11 GraphiteAdapter.renderAllMetrics: 7 in 11 GraphiteAdapter.renderAllMetrics: 8 in 11 GraphiteAdapter.renderAllMetrics: 9 in 11 GraphiteAdapter.renderAllMetrics: 10 in 11 GraphiteAdapter.renderAllMetrics: 11 in 11 fs.js:549 return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode); ^
Error: ENOENT: no such file or directory, open '/tmp/temp-result.json' at Error (native) at Object.fs.openSync (fs.js:549:18) at Object.fs.readFileSync (fs.js:397:15) at RLAdapter.train (/home/dean/analytic-engine/dist/rl-adapater.js:77:38) at /home/dean/analytic-engine/dist/cli.js:325:45 at Object. (/home/dean/analytic-engine/dist/cli.js:353:4)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)