IncrementalTrees icon indicating copy to clipboard operation
IncrementalTrees copied to clipboard

using StreamingEXTC with dask dataframe

Open melaslalib opened this issue 2 years ago • 0 comments

i used incremental_trees.models.classification.streaming_extc import StreamingEXTC model = Incremental(StreamingEXTC(dask_feeding=True, # Turn dask on n_estimators_per_chunk=50, class_weight="balanced", random_state=42, n_jobs=-1)) model.fit(X_train, target_train,classes=[0 , 1] )

i split my data using : from dask_ml.model_selection import train_test_split X_train, X_test, target_train, target_test = train_test_split(df_packets, target, test_size=0.005,random_state=42,shuffle=True).

i get the next error always : ---> 16 model.fit(X_train, target_train,classes=[0 , 1] ) --> 579 self._fit_for_estimator(estimator, X, y, **fit_kwargs) ValueError: Found array with 0 sample(s) (shape=(0, 39)) while a minimum of 1 is required by StreamingEXTC.

how can i fix the error?

melaslalib avatar May 03 '23 14:05 melaslalib