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.2 Python version: 3.10 Operating system: Windows
Describe the bug
Steps/code to reproduce
# Sample code to reproduce the problem# Please do your best to provide a Minimal, Reproducible Example: https://stackoverflow.com/help/minimal-reproducible-exampledefdefine_model(alpha):
regression=linear_model.LogisticRegression(intercept_lr=0,
optimizer=optim.SGD(0.0001),
loss=optim.losses.Quantile(alpha))
pipeline=compose.Pipeline(
# THIS IS THE LOCATION FOR FEATURE ENGINEERING
('features', compose.TransformerUnion(
compose.Select(‘var1’, ‘var2’),
('Target_30_days', feature_extraction.TargetAgg(
by=['group'],
how=utils.TimeRolling(stats.Mean(), dt.timedelta(days=30))
))
)),
('scale', preprocessing.StandardScaler()),
('lin_reg', preprocessing.TargetStandardScaler(
regression
))
)
returnpipelinedeftrain():
# set streaming data (ultimately want to connect to Kafka)sdf=self.rdm.stream_data()
i=0foridv, targetinsdf:
# get instance datet=idv[self.rdm.target_dt]
# Obtain prior prediction and update model in one goy_est=model.predict_one(idv)
# learnmodel.learn_one(x=idv, y=target, t=t)
river version: 0.21.2
Python version: 3.10
Operating system: Windows
Describe the bug
Steps/code to reproduce
This then throws the error:
The text was updated successfully, but these errors were encountered: