Nice2Predict icon indicating copy to clipboard operation
Nice2Predict copied to clipboard

Json error while training using json file

Open rohit-git7 opened this issue 6 years ago • 0 comments

Hi @onponomarev , I am trying to train the Javascript model using the JSON file available on the website. I am getting the following error: I0408 18:54:03.846069 15043 readerutil.h:105] String 0x7ffdf1c6c270 terminate called after throwing an instance of 'Json::LogicError' what(): in Json::Value::find(key, end, found): requires objectValue or nullValue *** Aborted at 1523193843 (unix time) try "date -d @1523193843" if you are using GNU date *** PC: @ 0x7f5da165d428 gsignal *** SIGABRT (@0x3e800003ac3) received by PID 15043 (TID 0x7f5da2af4880) from PID 15043; stack trace: *** @ 0x7f5da24d3390 (unknown) @ 0x7f5da165d428 gsignal @ 0x7f5da165f02a abort @ 0x7f5da1c9784d __gnu_cxx::__verbose_terminate_handler() @ 0x7f5da1c956b6 (unknown) @ 0x7f5da1c95701 std::terminate() @ 0x7f5da1c95919 __cxa_throw @ 0x6f4fde Json::throwLogicError() @ 0x6f9326 Json::Value::find() @ 0x6f94cf Json::Value::operator[]() @ 0x42c6ee JsonAdapter::JsonToQuery() @ 0x40d94b _ZZ4mainENKUlRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE_clES6_ @ 0x40dbf0 _ZNSt17_Function_handlerIFN11nice2protos5QueryERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEZ4mainEUlS9_E_E9_M_invokeERKSt9_Any_dataS9_ @ 0x41ee99 std::function<>::operator()() @ 0x418b9d ForeachInput<>() @ 0x415464 ParallelForeachInput<>() @ 0x412275 InitTrain<>() @ 0x410c5c LearningMain<>() @ 0x40da7a main @ 0x7f5da1648830 __libc_start_main @ 0x40d5a9 _start @ 0x0 (unknown) Please confirm if this is the right format of JSON. https://jsonformatter.org/40aecc Could you please help me in figuring out the issue? I tried debugging the issue but I need to understand thsi part of code in "train_internal.h". while (!reader->ReachedEnd()) { InputType record; if (!reader->Read(&record)) { continue; } Query query; proc(adapter(record)); What happens in the last line of the code?

Thanks, Rohit

rohit-git7 avatar Apr 08 '18 13:04 rohit-git7