Skip to content

[FEATURE] Chainging the way Sample take strategy for adjust #54

@hadi-gharibi

Description

@hadi-gharibi

The existing implementation of the adjust function in the literal module, which relies on a separate mapper to import the appropriate function, complicates the process of adding new strategies. To address this issue, I propose introducing a new function signature that clearly indicates the minimal arguments for the Sample object and specifies the return type as TypedDict. Here's an example of how it could be implemented:

e.g:

return_func_sig = TypedDict({ 
        "weight": pd.DataFrame,
        "model": {
            "method": str,
            "X_matrix_columns": List[str],
            ...
            }
)

Callable[[pd.DataFrame, pd.DataFrame, ...], return_func_sig]

It should be possible to pass this callable as a strategy to adjust function and it would call this function instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions