Skip to content

Instantly share code, notes, and snippets.

@pabloalcain
Created October 1, 2022 20:50
Show Gist options
  • Save pabloalcain/133a97523bf56e060cdfdc2b98063d98 to your computer and use it in GitHub Desktop.
Save pabloalcain/133a97523bf56e060cdfdc2b98063d98 to your computer and use it in GitHub Desktop.
import pandas as pd
class Dataset:
def __init__(self, filename):
dataset = pd.read_csv(filename)
self.features = dataset[["s-l", "s-w", "p-l", "p-w"]]
self.target = dataset["variety"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment