Esempio n. 1
0
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)
Esempio n. 2
0
def get_model_info(kind):
    res = query_model_info(kind)
    print(res)
    print(len(res))
    print(type(res))
Esempio n. 3
0
def lstm_model_info(request):
    # if request.method == 'POST':
    res = query_model_info("LSTM")
    return render(request, 'models/lstm_model_info.html', {"datas": res})
Esempio n. 4
0
def xgboost_model_info(request):
    # if request.method == 'POST':
    res = query_model_info("XGBoost")
    return render(request, 'models/xgboost_model_info.html', {"datas": res})