def model_info(request): """ 查看模型信息 :param request: :return: """ info = {"kind": "XGBoost"} if request.method == 'POST': kind = request.POST["kind"] res = query_model_info(kind) print(type(res)) return render(request, 'models/models_list.html', { "kind": kind, "datas": res }) return render(request, 'models/models_list.html', context=info)
def get_model_info(kind): res = query_model_info(kind) print(res) print(len(res)) print(type(res))
def lstm_model_info(request): # if request.method == 'POST': res = query_model_info("LSTM") return render(request, 'models/lstm_model_info.html', {"datas": res})
def xgboost_model_info(request): # if request.method == 'POST': res = query_model_info("XGBoost") return render(request, 'models/xgboost_model_info.html', {"datas": res})