| 124 | } |
| 125 | |
| 126 | bool CommandLineInterface::DoRL(const char pOp, const std::string* pAttr, const std::string* pVal) |
| 127 | { |
| 128 | agent* thisAgent = m_pAgentSML->GetSoarAgent(); |
| 129 | if (!pOp) |
| 130 | { |
| 131 | CLI_DoRL_print(*this, m_RawOutput, m_Result, ""); |
| 132 | |
| 133 | CLI_DoRL_print(*this, m_RawOutput, m_Result, |
| 134 | CLI_DoRL_generate_output("Soar-RL learning: ", thisAgent->rl_params->learning->get_string())); |
| 135 | |
| 136 | CLI_DoRL_print(*this, m_RawOutput, m_Result, |
| 137 | CLI_DoRL_generate_output("temporal-extension: ", thisAgent->rl_params->temporal_extension->get_string())); |
| 138 | |
| 139 | CLI_DoRL_print(*this, m_RawOutput, m_Result, ""); |
| 140 | CLI_DoRL_print(*this, m_RawOutput, m_Result, "Discount"); |
| 141 | CLI_DoRL_print(*this, m_RawOutput, m_Result, "--------"); |
| 142 | |
| 143 | CLI_DoRL_print(*this, m_RawOutput, m_Result, |
| 144 | CLI_DoRL_generate_output("discount-rate: ", thisAgent->rl_params->discount_rate->get_string())); |
| 145 | |
| 146 | CLI_DoRL_print(*this, m_RawOutput, m_Result, ""); |
| 147 | CLI_DoRL_print(*this, m_RawOutput, m_Result, "Learning"); |
| 148 | CLI_DoRL_print(*this, m_RawOutput, m_Result, "--------"); |
| 149 | |
| 150 | CLI_DoRL_print(*this, m_RawOutput, m_Result, |
| 151 | CLI_DoRL_generate_output("learning-policy: ", thisAgent->rl_params->learning_policy->get_string())); |
| 152 | |
| 153 | CLI_DoRL_print(*this, m_RawOutput, m_Result, |
| 154 | CLI_DoRL_generate_output("learning-rate: ", thisAgent->rl_params->learning_rate->get_string())); |
| 155 | |
| 156 | CLI_DoRL_print(*this, m_RawOutput, m_Result, |
| 157 | CLI_DoRL_generate_output("hrl-discount: ", thisAgent->rl_params->hrl_discount->get_string())); |
| 158 | |
| 159 | CLI_DoRL_print(*this, m_RawOutput, m_Result, ""); |
| 160 | CLI_DoRL_print(*this, m_RawOutput, m_Result, "Eligibility Traces"); |
| 161 | CLI_DoRL_print(*this, m_RawOutput, m_Result, "------------------"); |
| 162 | |
| 163 | CLI_DoRL_print(*this, m_RawOutput, m_Result, |
| 164 | CLI_DoRL_generate_output("eligibility-trace-decay-rate: ", thisAgent->rl_params->et_decay_rate->get_string())); |
| 165 | |
| 166 | CLI_DoRL_print(*this, m_RawOutput, m_Result, |
| 167 | CLI_DoRL_generate_output("eligibility-trace-tolerance: ", thisAgent->rl_params->et_tolerance->get_string())); |
| 168 | |
| 169 | CLI_DoRL_print(*this, m_RawOutput, m_Result, ""); |
| 170 | |
| 171 | |
| 172 | CLI_DoRL_print(*this, m_RawOutput, m_Result, "Experimental"); |
| 173 | CLI_DoRL_print(*this, m_RawOutput, m_Result, "------------"); |
| 174 | |
| 175 | CLI_DoRL_print(*this, m_RawOutput, m_Result, |
| 176 | CLI_DoRL_generate_output("chunk-stop: ", thisAgent->rl_params->chunk_stop->get_string())); |
| 177 | |
| 178 | CLI_DoRL_print(*this, m_RawOutput, m_Result, |
| 179 | CLI_DoRL_generate_output("decay-mode: ", thisAgent->rl_params->decay_mode->get_string())); |
| 180 | |
| 181 | CLI_DoRL_print(*this, m_RawOutput, m_Result, |
| 182 | CLI_DoRL_generate_output("meta: ", thisAgent->rl_params->meta->get_string())); |
| 183 |
no test coverage detected