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
File ~\MyEnv\venv\lib\site-packages\river\compose\union.py:303, in <genexpr>(.0)
299 def transform_many(self, X):
300 """Passes the data through each transformer and packs the results together."""
302 return pd.concat(
--> 303 (t.transform_many(X) for t in self.transformers.values()),
304 copy=False,
305 axis=1,
306 )
File ~\MyEnv\venv\lib\site-packages\river\compose\product.py:110, in TransformerProduct.transform_many(self, X)
106 # Default
107 return np.multiply(a, b)
109 return pd.DataFrame(
--> 110 {
111 "*".join(combo): functools.reduce(
112 multiply, (outputs[i][f] for i, f in enumerate(combo))
113 )
114 for combo in itertools.product(*outputs)
115 },
116 index=X.index,
117 )
File ~\MyEnv\venv\lib\site-packages\river\compose\product.py:111, in <dictcomp>(.0)
106 # Default
107 return np.multiply(a, b)
109 return pd.DataFrame(
110 {
--> 111 "*".join(combo): functools.reduce(
112 multiply, (outputs[i][f] for i, f in enumerate(combo))
113 )
114 for combo in itertools.product(*outputs)
115 },
116 index=X.index,
117 )
File ~\MyEnv\venv\lib\site-packages\river\compose\product.py:102, in TransformerProduct.transform_many.<locals>.multiply(a, b)
100 # Fast-track for sparse * numeric
101 if pd.api.types.is_sparse(a):
--> 102 return pd.arrays.SparseArray(a * b, fill_value=a.sparse.fill_value)
103 # Fast-track for numeric * sparse
104 if pd.api.types.is_sparse(b):
'SparseArray' object has no attribute 'sparse'
The problem happens in group1*group2*group2 place, if I use group1*group2 or group2*group2 or even group2*group2*group1 it works fine
The text was updated successfully, but these errors were encountered:
Hello I am trying to estimate simple model and get an error.
First lets create some data
Now model:
I get next error:
The problem happens in
group1*group2*group2
place, if I usegroup1*group2
orgroup2*group2
or evengroup2*group2*group1
it works fineThe text was updated successfully, but these errors were encountered: