Get Started
- rupsycho.experiment_from_dict(json_data)[source]
Create a new experiment from a JSON dictionary.
- Parameters:
json_data (dict)
- Return type:
- rupsycho.experiment_from_file(path)[source]
Create a new experiment from a JSON file.
- Parameters:
path (str)
- Return type:
- rupsycho.experiments_from_dicts(json_data_list)[source]
Create multiple experiments from a list of JSON dictionaries.
- Parameters:
json_data_list (List[dict])
- Return type:
Iterator[ExperimentDocument]
- rupsycho.experiments_from_files(path_pattern)[source]
Create multiple experiments from a list of JSON files.
- Parameters:
path_pattern (str)
- Return type:
Iterator[ExperimentDocument]
- rupsycho.example_experiment_bfi(model_name='google/flan-t5-small', pipeline_type='text2text-generation', temperature=0.7, max_new_tokens=128, api_key=None)[source]
Create an example experiment with a specified model, pipeline type, and generative parameters.
- Parameters:
model_name (str) – Name of the Hugging Face model to use.
pipeline_type (str) – Type of pipeline to use (e.g., ‘text2text-generation’).
temperature (float) – Temperature setting for the generative model.
max_new_tokens (int) – Maximum number of new tokens to generate.
api_key (str | None) – Optional Hugging Face API key for accessing gated models.
- Returns:
Configured ExperimentDocument.
- Return type: