view ludwig_evaluate.py @ 3:ad2cceec6268 draft default tip

planemo upload for repository https://github.com/goeckslab/Galaxy-Ludwig.git commit ac3a43f323353716470ccafaadf79d9c38314cff
author goeckslab
date Tue, 18 Mar 2025 22:09:48 +0000
parents f0be10937f5c
children
line wrap: on
line source

import logging
import pickle
import sys

from ludwig.evaluate import cli

from ludwig_experiment import convert_parquet_to_csv, \
    generate_html_report, make_visualizations

from model_unpickler import SafeUnpickler


logging.basicConfig(level=logging.INFO)

setattr(pickle, 'Unpickler', SafeUnpickler)

cli(sys.argv[1:])

ludwig_output_directory_name = ""

make_visualizations(ludwig_output_directory_name)

convert_parquet_to_csv(
    ludwig_output_directory_name
)

title = "Ludwig Evaluate"
generate_html_report(title, "")