Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make type hints more specific than Any in _generate_step_dtypes(self) #36

Open
diegomarvid opened this issue Nov 1, 2024 · 0 comments

Comments

@diegomarvid
Copy link
Collaborator

    # TODO(@palf): make type hints more specific than Any, however I don't know the return type of
    # the values in dtypes. [link to issue]
    @property
    def _generate_step_dtypes(self) -> dict[str, Any]:
        """
        Get the schema of the raw data produced by the GenerateStep during training.

        This schema is a dictionary mapping dataframe columns (after drops) to their observed types
        during training

        Returns
        -------
        dict[str, Any]
            A dictionary with columns in keys and their training types in values
        """
        return self["_generate_step_dtypes"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant