Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
chenyangkang committed Nov 19, 2024
1 parent d9570b3 commit 226abd2
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions stemflow/model/AdaSTEM.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,9 @@ def split(self, X_train: pd.core.frame.DataFrame, verbosity: Union[None, int] =
plt.title("Quadtree", fontsize=20)
else:
pass


X_train_indexes = X_train[[self.Temporal1, self.Spatio1, self.Spatio2]]

partial_get_one_ensemble_quadtree = partial(
get_one_ensemble_quadtree,
size=self.ensemble_fold,
Expand All @@ -346,7 +348,7 @@ def split(self, X_train: pd.core.frame.DataFrame, verbosity: Union[None, int] =
temporal_step=self.temporal_step,
temporal_bin_interval=self.temporal_bin_interval,
temporal_bin_start_jitter=self.temporal_bin_start_jitter,
data=X_train,
data=X_train_indexes,
Temporal1=self.Temporal1,
grid_len=self.grid_len,
grid_len_lon_upper_threshold=self.grid_len_upper_threshold,
Expand All @@ -371,13 +373,13 @@ def split(self, X_train: pd.core.frame.DataFrame, verbosity: Union[None, int] =
for ensemble_count in list(range(self.ensemble_fold))
)
if verbosity > 0:
output_generator = tqdm(output_generator, total=self.ensemble_fold, desc="Generating Ensemble: ")
output_generator = tqdm(output_generator, total=self.ensemble_fold, desc="Generating Ensembles: ")

ensemble_all_df_list = [i for i in output_generator]

else:
iter_func_ = (
tqdm(range(self.ensemble_fold), total=self.ensemble_fold, desc="Generating Ensemble: ")
tqdm(range(self.ensemble_fold), total=self.ensemble_fold, desc="Generating Ensembles: ")
if verbosity > 0
else range(self.ensemble_fold)
)
Expand Down

0 comments on commit 226abd2

Please sign in to comment.