视频演示:
效果演示:
主要代码:
import numpy as np
from sklearn.model_selection import train_test_split
from sklearn.ensemble import GradientBoostingRegressor, AdaBoostRegressor
from xgboost import XGBRegressor
from lightgbm import LGBMRegressor
from sklearn.metrics import mean_squared_error
from pyswarm import pso
import pandas as pd
import math
from data_read import date_process
train_x,train_y=date_process()
train_x=train_y.reshape(train_x.shape[0],-1)
X_train, X_test, y_train, y_test = train_test_split(np.array(train_x), np.ar