Combining ModelGapFiller & AutoML #432
Replies: 6 comments 50 replies
-
Hi, Darley Thank you for your interest in FEDOT's gap-filling functionality. However, there are some points I did not got from your post. Please help me to figure it out (and then I can help you):
|
Beta Was this translation helpful? Give feedback.
-
Hi Mikhail, I'm sorry about my poorly worded and bonkers question. Let me clarify your questions succinctly
The imports related to any TS work are from fedot.api.main import Fedot
from fedot.core.repository import tasks
from fedot.core.data.data import InputData
from fedot.utilities.ts_gapfilling import ModelGapFiller
from fedot.core.repository.dataset_types import DataTypesEnum
This code is a simplification of what I'm actually doing. I am performing some processing with pandas.
No, that would be |
Beta Was this translation helpful? Give feedback.
-
Does this make sense to you?
And when I checked the |
Beta Was this translation helpful? Give feedback.
-
I tried running the gapfill.py file, but firstly it gave this error: ---------------------------------------------------------------------------
Exception Traceback (most recent call last)
----> 1 pipeline = model.fit(_input)
...
Exception: The timeout argument should be None or a positive value. Given value: 0 I replaced Warning: window size of lagged transformation was changed from 308 to -2
...
ValueError: Expected 2D array, got 1D array instead:
array=[].
Reshape your data either using array.reshape(-1, 1) if your data has a single feature or array.reshape(1, -1) if it contains a single sample. I'm using the |
Beta Was this translation helpful? Give feedback.
-
I've seen something similar the following code in some examples input = InputData(idx=list(range(0, len(array))),
features=array,
target=array,
task=task, data_type=DataTypesEnum.ts) This can cause an error because |
Beta Was this translation helpful? Give feedback.
-
There's another problem going on at File "fedot/api/main.py", line 112, in fit
self.current_pipeline, self.best_models, self.history = self.helper.obtain_model(**self.composer_dict)
File "fedot/api/api_utils/composer.py", line 87, in obtain_model
self.current_model, self.best_models, self.history = self.compose_fedot_model(
File "fedot/api/api_utils/composer.py", line 202, in compose_fedot_model
pipeline_gp_composed = gp_composer.compose_pipeline(data=api_params['train_data'])
File "fedot/core/composer/gp_composer/gp_composer.py", line 137, in compose_pipeline
best_pipeline = self.optimiser.optimise(objective_function_for_pipeline,
File "fedot/core/optimisers/gp_comp/param_free_gp_optimiser.py", line 130, in optimise
self.requirements.pop_size = self.next_population_size(new_population)
File "fedot/core/optimisers/gp_comp/param_free_gp_optimiser.py", line 221, in next_population_size
fitness_improved, complexity_decreased = improvements_checker(offspring)
File "fedot/core/optimisers/gp_comp/param_free_gp_optimiser.py", line 211, in _check_so_improvements
best_in_offspring = self.get_best_individual(offspring, equivalents_from_current_pop=False)
File "fedot/core/optimisers/gp_comp/gp_optimiser.py", line 306, in get_best_individual
best_ind = min(individuals, key=lambda ind: ind.fitness)
TypeError: '>' not supported between instances of 'float' and 'NoneType' I've found this before, but forgot about it. Unfortunately I haven't had any luck in getting this back. If I'm not mistaken, the |
Beta Was this translation helpful? Give feedback.
-
Hi folks, I'm trying to combine ModelGapFiller and AutoML, my script is basically the one bellow
The
original_array
is the original data itself (without the value representing a missing unit). Here's the stacktraceI tracked down the error, at some point between
and
the
feature
insecondary_input
becomesarray([], dtype=float64)
, which is the problem.Would you know what I am doing wrong here? Is it feeding the raw data to the
Fedot
object?Beta Was this translation helpful? Give feedback.
All reactions