In custom recipes, you can load datasets using the AdaptiveDataset class, which provides a convenient way to access dataset files and work with them in your training or inference tasks.
Dataset loading is done through the config feature.
In your recipe function, you can access the dataset file directly:
Copy
Ask AI
def my_recipe(config: MyConfig): # Get the dataset file path dataset_file = config.dataset.file # Use the dataset file with open(dataset_file, "r") as file: # Read and process your dataset data = file.read() # Your processing logic here