Skip to content

Instantly share code, notes, and snippets.

@john-adeojo
Created June 23, 2023 01:12
Show Gist options
  • Save john-adeojo/3a36e036b6a50ab521647f3a4c4929e9 to your computer and use it in GitHub Desktop.
Save john-adeojo/3a36e036b6a50ab521647f3a4c4929e9 to your computer and use it in GitHub Desktop.
from ludwig.api import LudwigModel
import requests
import yaml
# URL of the raw YAML file in the GitHub repository
url = 'https://raw.githubusercontent.com/john-adeojo/womartdata/main/ludwig_model.yaml'
# Send a GET request to the URL
response = requests.get(url)
# Raise an exception if the request was unsuccessful
response.raise_for_status()
# Load the YAML data from the response text
config = yaml.safe_load(response.text)
# Set your output directory path
output_dir = YOUR_DIRECTORY
# Set up your experiment
model = LudwigModel(config=config)
experiment_results = model.experiment(
dataset=df_sequences_train,
output_directory=output_dir
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment