mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-08 15:05:17 +02:00
fix bug of old version param
This commit is contained in:
parent
7b06268f24
commit
735c612818
1 changed files with 1 additions and 1 deletions
|
|
@ -171,7 +171,7 @@ class OneHotEncode(DataPreprocessTool):
|
|||
|
||||
def __init__(self, features: list):
|
||||
self.features = features
|
||||
self.model = OneHotEncoder(handle_unknown="ignore", sparse=False)
|
||||
self.model = OneHotEncoder(handle_unknown="ignore", sparse_output=False)
|
||||
|
||||
def transform(self, df: pd.DataFrame) -> pd.DataFrame:
|
||||
ts_data = self.model.transform(df[self.features])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue