runExperiment {MacBehaviour}R Documentation

Run an Experiment Based on the Configuration

Description

Executes the experiment and saves the results to an Excel file.

Usage

runExperiment(gptConfig, savePath = "./output.xlsx")

Arguments

gptConfig

A list containing the configuration for the language model, including the system prompt, model specifications, and token settings.

savePath

The file path where the experiment results will be saved in Excel format. Defaults to './output.xlsx' in the current working directory.

Value

This function does not return a value but saves the experiment results to the specified Excel file. Upon completion, "Done." will be printed to the console.

Examples

## Not run: 

runExperiment(Experiment_config,"./output.xlsx")

#The first argument Experiment_config is generated by preCheck() function.

Experiment_config <- preCheck(data)

## End(Not run)

[Package MacBehaviour version 1.2.4 Index]