Skip to content

Bug report - Data Transformation Normalise #189

@pollytur

Description

@pollytur

This actually would not work for any other folder name for the TreeDataset. For instance, if the folder is named 'videos'

Here is how this is solved inside neuropredictors for now. I would propose such a modification also to keep it back compatible.

`def init(self, data, stats_source="all", exclude=None, inputs_mean=None, inputs_std=None,
in_name=None, out_name=None, eye_name=None):

    self.exclude = exclude or []
    if in_name is None:
        in_name = "images" if "images" in data.statistics.keys() else "inputs"
    if out_name is None:    
        out_name = "responses" if "responses" in data.statistics.keys() else "targets"
    if eye_name is None:
        eye_name = "pupil_center" if "pupil_center" in data.data_keys else "eye_position"`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions