|
@@ -247,13 +247,7 @@ def put_analysis_report_to_html(args, df_predict, df_accuracy):
|
|
|
f.write(html_content)
|
|
|
print("HTML report generated successfully!")
|
|
|
return path
|
|
|
-import lightgbm as lgb
|
|
|
-gbm_model = lgb.train(params,
|
|
|
- lgb_train,
|
|
|
- num_boost_round=500,
|
|
|
- eval_metric=custom_loss,
|
|
|
- valid_sets=[lgb_train, lgb_eval],
|
|
|
- )
|
|
|
+
|
|
|
@app.route('/analysis_report_small', methods=['POST'])
|
|
|
def analysis_report():
|
|
|
start_time = time.time()
|