You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
river version: 0.21.1 Python version: 3.12.3 Operating system: windows
Hello,
I dont' understand where to put the function degub_one to inspect the pipeline respect to loop of training? as your example here . Do I have to use it inside a loop with learn_one(x) funtion?
And also I am not su sure why I obtain Inf values of silhoutte metric with the function progressive_val_score
Data are attached below.
fromriverimportstreamfromriverimportcomposefromriverimportmetricsfromriverimportevaluatedataset_stock=stream.iter_csv('data.csv', drop=['Date'], converters=diz_conversion)
# diz onversione just conver all numeric cols in float forx, _indataset_stock:
print(x)
# get the last line of data fromriverimportclusterfromriverimportpreprocessingclustream=cluster.CluStream(
n_macro_clusters=3,
max_micro_clusters=50, time_window=20,
seed=0
)
model=compose.Pipeline(
preprocessing.StandardScaler(),
clustream
)
clu_metric=metrics.Silhouette()
print(model.debug_one(x)) # here I get all values equals 0 after rescaling them. evaluate.progressive_val_score(dataset_stock, model, clu_metric, print_every=50) # here I get inf values of silhoutte
Thanks!
The text was updated successfully, but these errors were encountered:
river version: 0.21.1
Python version: 3.12.3
Operating system: windows
Hello,
I dont' understand where to put the function degub_one to inspect the pipeline respect to loop of training? as your example here . Do I have to use it inside a loop with learn_one(x) funtion?
And also I am not su sure why I obtain Inf values of silhoutte metric with the function progressive_val_score
Data are attached below.
Thanks!
The text was updated successfully, but these errors were encountered: