-
Notifications
You must be signed in to change notification settings - Fork 51
Open
Labels
enhancementNew feature or requestNew feature or request
Milestone
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request