using Custom Dataset #1143
-
I am using my custom dataset for my project - PhishingData.csv which has 11055 rows and 32 features and have converted it into dictionaries to evaluate using the below code: dataset = [(x, x.pop("Result")) for x in df.to_dict(orient = "records")] I would like to apply some models on my list dataset like the below from your River API reference model = anomaly.QuantileFilter(
In the following line if I replace datasets.CreditCard() with just my dataset it gives me the below error: AttributeError: 'list' object has no attribute 'take' How can i handle this list ?? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey hey 👋 So the datasets in the for x, y in dataset[:2500]:
... You could also create a River dataset by inheriting from the |
Beta Was this translation helpful? Give feedback.
Hey hey 👋
So the datasets in the
datasets
module areDataset
instances. Meaning they have a.take(k)
method. But your dataset is a list, so you don't have a.take(k)
method. What you can do is simply slice your list:You could also create a River dataset by inheriting from the
Dataset
base class, but that's not as straightforward.