首页 > 其他分享 >自适应神经模糊推理ANFIS价格预测实战 完整代码+数据

自适应神经模糊推理ANFIS价格预测实战 完整代码+数据

时间:2024-07-02 18:26:31浏览次数:22  
标签:实战 selection ANFIS pd mean import 模糊推理 data sklearn

直接看效果:

代码:

 

import numpy as np
import pandas as pd
from sklearn.model_selection import train_test_split
from sklearn.metrics import mean_squared_error, r2_score
from sklearn.preprocessing import MinMaxScaler
import numpy as np
import pandas as pd
from sklearn.model_selection import train_test_split
from sklearn.metrics import mean_squared_error, r2_score
from sklearn.preprocessing import MinMaxScaler
import skfuzzy as fuzz
import skfuzzy.control as ctrl
data = pd.read_excel("ReBCO01.xlsx")
print(data.columns)  # ['x1', 'X2', 'X3', 'y']
df = data.fillna(0)
# Split the data into features and target
X = df[['x1', 'X2&

标签:实战,selection,ANFIS,pd,mean,import,模糊推理,data,sklearn
From: https://blog.csdn.net/qq_38735017/article/details/140133730

相关文章