when i train with my dataset,fedot usually fits it with weak model. #1401
Unanswered
guess-guess-who-i-am
asked this question in
Q&A
Replies: 1 comment 1 reply
-
|
Hello! In the past, we faced some issues with using ARIMA-like methods as a candidate model for optimiser. We will re-check it and answer with details and possible fixes. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
thank you for your reading. when i train with my dataset,fedot usually fits it with weak model.i think maybe i am not really familiar with fedot, so please help me.
my dataset:https://www.kaggle.com/datasets/rakannimer/air-passengers
graph structure:
final result(The number on the x-axis are huge because i use pd.to_numeric(df['Month'],downcast='float') to turn it into the form that fedot can process):
my code :
`
from fedot.api.main import Fedot
import pandas as pd
from fedot.core.repository.tasks import TsForecastingParams, Task, TaskTypesEnum
import matplotlib.pyplot as plt
import matplotlib
matplotlib.use('TkAgg')
df = pd.read_csv(r"C:\Users\23859\Desktop\AirPassengers.csv")
df['Month'] = pd.to_datetime(df['Month'])#Transform time series into manageable time series
df['Month'] = pd.to_numeric(df['Month'],downcast='float')
size = int(len(df)*0.7)
X_train = df.iloc[:size].values
X_test = df.iloc[size:].values
model = Fedot(problem='ts_forecasting',
task_params=Task(TaskTypesEnum.ts_forecasting,
TsForecastingParams(forecast_length=X_test.shape[0])).task_params,
timeout=60,
n_jobs=-1,
metric='mae')
model.fit(features=X_train[:,0],target=X_train[:,1])
y_pred = model.forecast(pre_history=X_test[:,0])
model.current_pipeline.show()
plt.plot(X_train[:,0], X_train[:,1], label='features')
plt.plot(X_test[:,0], X_test[:,1], label='target')
plt.plot(X_test[:,0], y_pred, label='fedot')
plt.grid()
plt.legend()
plt.show()
`
actually the problem can be solved by arima perfectly. and i find out that arima is in the operation list. so i don't know why fedot do not use arima instead.
arima result(from :https://www.youtube.com/watch?v=TSfdvQ0ARwI)

please give me a hand. thank you very much.
Beta Was this translation helpful? Give feedback.
All reactions