Spaces:
Sleeping
Sleeping
File size: 892 Bytes
e75a247 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
import wandb
import pandas as pd
# Authenticate with wandb
wandb.login()
# Define your entity and project name
entity = "fcc_ml" # replace with your entity
project = "mlpf_debug" # replace with your project name
# Initialize the wandb API
api = wandb.Api()
# Fetch the runs for the given project
runs = api.runs(f"{entity}/{project}")
# Extract required information
data = []
for run in runs:
run_name = run.name
run_url = run.url
print(dir(run))
1/0
run_command = run.command #run.config.get('command', 'No command specified') # Assumes 'command' is a config parameter
data.append({
"Run Name": run_name,
"Run URL": run_url,
"Run Command": run_command
})
# Create a DataFrame
df = pd.DataFrame(data)
# Print the DataFrame
print(df)
# Optionally, save to a CSV file
df.to_csv("/eos/home-g/gkrzmanc/wandb_runs.csv", index=False)
|