Created
June 23, 2023 01:12
-
-
Save john-adeojo/3a36e036b6a50ab521647f3a4c4929e9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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