module documentation

Undocumented

Function apply_model Undocumented
Function get_gaplength_from_stimulus_filename Matches the number in the format $.$ms
Function get_levels_from_path No summary
Function get_model_output_dataframe Simple constructor of the model-output dataframe
Function process_dprime Undocumented
Function process_parameter Undocumented
@check_annotations
def apply_model(model, path, input_length): (source)

Undocumented

Parameters
model:torch.nn.ModuleUndocumented
path:Annotated[os.PathLike, PathExists]Undocumented
input_length:intUndocumented
Returns
torch.TensorUndocumented
def get_gaplength_from_stimulus_filename(fn): (source)

Matches the number in the format $.$ms

If multiple $.$ms exists, the last one will be used.

Example:

    /somefolder/gdt__12.5ms.pt              -> 12.5
    /somefolder/51.3/542.2ms/gdt__2.5ms.pt  -> 2.5
Parameters
fn:strfilepath
Returns
floatgap length as a float
def get_levels_from_path(path, regexp): (source)
Parameters
path:str|os.PathLike[str]
regexp:str
Returns
List[int]list of levels derived from folder names
def get_model_output_dataframe(): (source)

Simple constructor of the model-output dataframe

Returns
pd.DataFrameUndocumented
def process_dprime(df, experiment_parameter, gap_lengths, impairment='none'): (source)

Undocumented

def process_parameter(model, experiment_parameter, basepath, parent_regexp, input_length, experiment='', impairment='none'): (source)

Undocumented