Skip to content

Conversation

@Neerajpathak07
Copy link
Contributor

Progresses #124

This PR adds a type hint for the examples file keras_api_example.py.
Optimizing the function from:-

def get_model():

def load_data():

to:-

def get_model() -> keras.Model:
  """Builds and returns the CNN model."""

def load_data() -> Tuple[
    Tuple[np.ndarray, np.ndarray],
    Tuple[np.ndarray, np.ndarray],
]:

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

Successfully merging this pull request may close these issues.

1 participant